check- add- & rm-template
The three subcommands here to allow the user the addition and removal of custom templates to suit their needs.
check-template
usage: pyssianutils slurm check-template [-h] [--json JSONFILE] filepath
Positional Arguments
- filepath
path to the template that will be inspected
Named Arguments
- --json
If provided and it is an existing file, it will check the agreement between the template and the json. If it is a non-existing file it will create a basic json file containing the minimal information to be filled by the user with the specifics of the template that was inspected. If not provided it will only check the template.
add-template
usage: pyssianutils slurm add-template [-h] [--json JSONFILE] filepath [name]
Positional Arguments
- filepath
path to the template that will be added
- name
Name under which the template will be stored. If none is provided it will be based on the stem of the file, e.g. myfile.txt would be saved as 'myfile'
Named Arguments
- --json
If provided instead of adding a basic json file that needs to be modified it will assume that the provided json is correct and will store it with the template.
rm-template
usage: pyssianutils slurm rm-template [-h] name
Positional Arguments
- name
Name under which the template is stored.