File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ The versions coincide with releases on pip. Only major versions will be released
1717 - adding namespaces to make module install, show, inspect easier (0.0.24)
1818 - added support for env section to render to bound environment file
1919 - added support for container features like gpu
20+ - allowing for a ` container:tag ` convention to be used for commands.
2021 - list defaults to showing modules/tags one per line, unless --short used
2122 - container url does not render in docs (0.0.23)
2223 - addition of tcl modules, removal of un-needed database (0.0.22)
Original file line number Diff line number Diff line change @@ -71,6 +71,10 @@ def container_dir(self, name):
7171 """
7272 Use a custom container directory, otherwise default to module dir.
7373 """
74+ # If the user provided a tag, tags are converted to folders
75+ if ":" in name :
76+ name = name .replace (":" , os .sep )
77+
7478 if not self .settings .container_base :
7579 return os .path .join (self .settings .module_base , name )
7680 return os .path .join (self .settings .container_base , name )
You can’t perform that action at this time.
0 commit comments