onyo new
Creates a new asset in directory. The command opens a dialog that
asks for the field names defined by the asset name scheme, and after
creation opens the new asset file with the editor.
After the editing is done, the new file will be checked for the validity of
its YAML syntax and based on the rules in .onyo/validation/validation.yaml.
usage: onyo new [-h] [-I] [-t TEMPLATE] DIR
Positional Arguments
- DIR
add a new asset to DIR
Named Arguments
- -I, --non-interactive
do not prompt or open the editor; values must be piped in (e.g. echo “<type>n<make>n<model>n<serial>” | onyo new -I shelf/)
Default: False
- -t, --template
the template to seed the new asset
Default: “”