Classes#
BashComposer#
- class dls_utilpack.bash_composer.BashComposer(should_include_prolog=True)[source]#
Class which helps with composing bash scripts consistently and reliably.
- Parameters:
should_include_prolog (bool | None) – True if should emit a prolog on this bash script. Defaults to True.
- add(element)[source]#
Add element to be included in the bash script.
Possible element classes are: Print, Raw, Command, Prolog and LoadModules.
- add_load_modules(directories, modules)[source]#
Add shell commands for loading linux environment modules.