File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed
shpc/main/modules/templates Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -60,21 +60,21 @@ set runCmd "{{ command }} \${DOCKER_OPTS} run -i{% if tty %}t{% endif %} \${DOCK
60
60
set inspectCmd " {{ command }} \$ {DOCKER_OPTS} inspect ${containerPath} "
61
61
62
62
# set_shell_function takes bashStr and cshStr
63
- set -alias " {|module_name|}-shell" " ${shellCmd} "
63
+ set -alias {|module_name|}-shell " ${shellCmd} "
64
64
65
65
# exec functions to provide "alias" to module commands
66
66
{% if aliases %}{% for alias in aliases %}
67
- set -alias " {{ alias.name }}" " ${execCmd} {% if alias.options %} {{ alias.options }} {% endif %} --entrypoint {{ alias.entrypoint }} ${containerPath} {{ alias.command }} $*"
67
+ set -alias {{ alias.name }} " ${execCmd} {% if alias.options %} {{ alias.options }} {% endif %} --entrypoint {{ alias.entrypoint }} ${containerPath} {{ alias.command }} $*"
68
68
{% endfor %}{% endif %}
69
69
70
70
# A customizable exec function
71
- set -alias " {|module_name|}-exec" " ${execCmd} --entrypoint \"\" ${containerPath} $*"
71
+ set -alias {|module_name|}-exec " ${execCmd} --entrypoint \"\" ${containerPath} $*"
72
72
73
73
# Always provide a container run
74
- set -alias " {|module_name|}-run" " ${runCmd} $*"
74
+ set -alias {|module_name|}-run " ${runCmd} $*"
75
75
76
76
# Inspect runscript or deffile easily!
77
- set -alias " {|module_name|}-inspect" " ${inspectCmd} ${containerPath} $*"
77
+ set -alias {|module_name|}-inspect " ${inspectCmd} ${containerPath} $*"
78
78
79
79
# =====
80
80
# Module options
Original file line number Diff line number Diff line change @@ -72,23 +72,23 @@ set runCmd "singularity \${SINGULARITY_OPTS} run \${SINGULARITY_COMMAND_OPTS} {%
72
72
set inspectCmd " singularity \$ {SINGULARITY_OPTS} inspect \$ {SINGULARITY_COMMAND_OPTS} "
73
73
74
74
# set_shell_function takes bashStr and cshStr
75
- set -alias " {|module_name|}-shell" " ${shellCmd} $*"
75
+ set -alias {|module_name|}-shell " ${shellCmd} $*"
76
76
77
77
78
78
# exec functions to provide "alias" to module commands
79
79
{% if aliases %}{% for alias in aliases %}
80
- set -alias " {{ alias.name }}" " ${execCmd} {% if alias.options %} {{ alias.options }} {% endif %} ${containerPath} {{ alias.command }} $*"
80
+ set -alias {{ alias.name }} " ${execCmd} {% if alias.options %} {{ alias.options }} {% endif %} ${containerPath} {{ alias.command }} $*"
81
81
{% endfor %}{% endif %}
82
82
83
83
# A customizable exec function
84
- set -alias " {|module_name|}-exec" " ${execCmd} ${containerPath} \$ {SINGULARITY_COMMAND_ARGS} $*"
84
+ set -alias {|module_name|}-exec " ${execCmd} ${containerPath} \$ {SINGULARITY_COMMAND_ARGS} $*"
85
85
86
86
# Always provide a container run
87
- set -alias " {|module_name|}-run" " ${runCmd} $*"
87
+ set -alias {|module_name|}-run " ${runCmd} $*"
88
88
89
89
# Inspect runscript or deffile easily!
90
- set -alias " {|module_name|}-inspect-runscript" " ${inspectCmd} -r ${containerPath} "
91
- set -alias " {|module_name|}-inspect-deffile" " ${inspectCmd} -d ${containerPath} "
90
+ set -alias {|module_name|}-inspect-runscript " ${inspectCmd} -r ${containerPath} "
91
+ set -alias {|module_name|}-inspect-deffile " ${inspectCmd} -d ${containerPath} "
92
92
93
93
# =====
94
94
# Module options
You can’t perform that action at this time.
0 commit comments