@@ -15,15 +15,15 @@ proc ModulesHelp { } {
1515 puts stderr " - {{ image }}"
1616 puts stderr " Commands include:"
1717 puts stderr " - {|module_name|}-run:"
18- puts stderr " {{ command }} run -i{% if tty %}t{% endif %} -u `id -u`:`id -g` --rm {% if envfile %}--env-file {{ module_dir }}/{{ envfile }}{% endif %} {% if bindpaths %}-v {{ bindpaths }} {% endif %} -v . -w . <container>"
18+ puts stderr " {{ command }} run -i{% if tty %}t{% endif %} -u `id -u`:`id -g` --rm {% if envfile %}--env-file {{ module_dir }}/{{ envfile }} {% endif %} {% if bindpaths %}-v {{ bindpaths }} {% endif %} -v . -w . <container>"
1919 puts stderr " - {|module_name|}-shell:"
20- puts stderr " {{ command }} run -i{% if tty %}t{% endif %} -u `id -u`:`id -g` --rm --entrypoint {{ shell }}{ % if envfile %} --env-file {{ module_dir }}/{{ envfile }}{% endif %} {% if bindpaths %}-v {{ bindpaths }} {% endif %} -v . -w . <container>"
20+ puts stderr " {{ command }} run -i{% if tty %}t{% endif %} -u `id -u`:`id -g` --rm --entrypoint \"\" { % if envfile %} --env-file {{ module_dir }}/{{ envfile }} {% endif %} {% if bindpaths %}-v {{ bindpaths }} {% endif %} -v . -w . <container>"
2121 puts stderr " - {|module_name|}-exec:"
22- puts stderr " {{ command }} run -i{% if tty %}t{% endif %} -u `id -u`:`id -g` --rm --entrypoint \"\" {% if envfile %} --env-file {{ module_dir }}/{{ envfile }}{% endif %} {% if bindpaths %}-v {{ bindpaths }} {% endif %} -v . -w . <container> $*"
22+ puts stderr " {{ command }} run -i{% if tty %}t{% endif %} -u `id -u`:`id -g` --rm --entrypoint \"\" {% if envfile %} --env-file {{ module_dir }}/{{ envfile }} {% endif %} {% if bindpaths %}-v {{ bindpaths }} {% endif %} -v . -w . <container> $*"
2323 puts stderr " - {|module_name|}-inspect:"
2424 puts stderr " {{ command }} inspect <container>"
2525{% if aliases %}{% for alias in aliases %} puts stderr " - {{ alias.name }}:"
26- puts stderr " {{ command }} run -i{% if tty %}t{% endif %} -u `id -u`:`id -g` --entrypoint {{ alias.entrypoint }} {% if envfile %}--envfile {{ module_dir }}/{{ envfile }} {% endif %}{% if bindpaths %}-v {{ bindpaths }} {% endif %}{% if alias.options %}{{ alias.options }} {% endif %} -v . -w . <container> {{ alias.args }}"
26+ puts stderr " {{ command }} run -i{% if tty %}t{% endif %} --rm - u `id -u`:`id -g` --entrypoint {{ alias.entrypoint }} {% if envfile %}--envfile {{ module_dir }}/{{ envfile }} {% endif %}{% if bindpaths %}-v {{ bindpaths }} {% endif %}{% if alias.options %}{{ alias.options }} {% endif %} -v . -w . <container> {{ alias.args }}"
2727{% endfor %}{% endif %}
2828
2929 puts stderr " For each of the above, you can export:"
@@ -59,7 +59,7 @@ conflict {{ name }}
5959set shellCmd " {{ command }} \$ {PODMAN_OPTS} run \$ {PODMAN_COMMAND_OPTS} -u `id -u`:`id -g` --rm -i{% if tty %}t{% endif %} --entrypoint {{ shell }} {% if envfile %}--env-file {{ module_dir }}/{{ envfile }}{% endif %} {% if bindpaths %}-v {{ bindpaths }} {% endif %} -v $workdir -w $workdir ${containerPath} "
6060
6161# execCmd needs entrypoint to be the executor
62- set execCmd " {{ command }} \$ {PODMAN_OPTS} run -i{% if tty %}t{% endif %} \$ {PODMAN_COMMAND_OPTS} -u `id -u`:`id -g` --rm {% if envfile %} --env-file {{ module_dir }}/{{ envfile }}{% endif %} {% if bindpaths %}-v {{ bindpaths }} -v $workdir -w $workdir {% endif %} "
62+ set execCmd " {{ command }} \$ {PODMAN_OPTS} run -i{% if tty %}t{% endif %} \$ {PODMAN_COMMAND_OPTS} -u `id -u`:`id -g` --rm {% if envfile %} --env-file {{ module_dir }}/{{ envfile }}{% endif %} {% if bindpaths %}-v {{ bindpaths }}{% endif %} -v $workdir -w $workdir "
6363set runCmd " {{ command }} \$ {PODMAN_OPTS} run -i{% if tty %}t{% endif %} \$ {PODMAN_COMMAND_OPTS} -u `id -u`:`id -g` --rm {% if envfile %}--env-file {{ module_dir }}/{{ envfile }}{% endif %} {% if bindpaths %}-v {{ bindpaths }} {% endif %} -v $workdir -w $workdir ${containerPath} "
6464set inspectCmd " {{ command }} \$ {PODMAN_OPTS} inspect ${containerPath} "
6565
@@ -68,7 +68,7 @@ set-alias {|module_name|}-shell "${shellCmd}"
6868
6969# exec functions to provide "alias" to module commands
7070{% if aliases %}{% for alias in aliases %}
71- set -alias {{ alias.name }} " ${execCmd} {% if alias.options %} {{ alias.options }} {% endif %} --entrypoint {{ alias.entrypoint }} ${containerPath} {{ alias.command }}"
71+ set -alias {{ alias.name }} " ${execCmd} {% if alias.options %} {{ alias.options }} {% endif %} --entrypoint {{ alias.entrypoint }} ${containerPath} {{ alias.args }}"
7272{% endfor %}{% endif %}
7373
7474# A customizable exec function
0 commit comments