onyo set
Set the value of key for matching assets. If the key does not exist,
it is added and set appropriately.
Key names can be any valid YAML key name.
Multiple key=value pairs can be declared by joining with a ,. Quotes
can be used around value, which is necessary when it contains a comma,
whitespace, etc.
If no asset or directory is specified, the current working directory
is used. If Onyo is invoked from outside of the Onyo repository, the root of
the repository is used.
Changes are printed to the terminal in the style of diff.
Errors reading or parsing files print to STDERR, but do not halt Onyo. Any error encountered while writing a file will cause Onyo to error and exit immediately.
usage: onyo set [-h] [-d N] [-n] [-q] [-R] [-y] KEYS [PATH ...]
Positional Arguments
- KEYS
key-value pairs to set in assets; multiple pairs can be separated by commas (e.g. key=value,key2=value2)
- PATH
assets or directories for which to set values
Default: .
Named Arguments
- -d, --depth
descend at most “N” levels of directories below the starting-point; used only with –recursive
Default: -1
- -n, --dry-run
perform a non-interactive trial-run without making any changes
Default: False
- -q, --quiet
silence output (requires the –yes flag)
Default: False
- -R, --recursive
set values recursively for all assets in a directory
Default: False
- -y, --yes
respond “yes” to any prompts
Default: False