Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- grahamperrin@pkg:~ % uclcmd
- Usage: uclcmd get [-cdeIjklmNquy] [-D char] [-f file] [-o file] variable
- uclcmd set [-cdIjmnuy] [-t type] [-D char] [-f file] [-i file] [-o file] variable [UCL]
- uclcmd merge [-cdIjmnuy] [-D char] [-f file] [-i file] [-o file] variable
- uclcmd remove [-cdIjmnuy] [-D char] [-f file] [-o file] variable
- COMMON OPTIONS:
- -c --cjson output compacted JSON
- -d --debug enable verbose debugging output
- -D --delimiter character to use as element delimiter (default is .)
- -e --expand Output the list of keys when encountering an object
- -f --file path to a file to read or write
- -I --foldcase fold all keys to lowercase (make matching insensitive)
- -j --json output pretty JSON
- -k --keys show key=value rather than just the value
- -l --shellvars keys are output with underscores as delimiter
- -m --msgpack output MSGPACK
- -n --noop do not save changes to file, only output to STDOUT
- -N --nonewline separate output with spaces rather than newlines
- -o --output file to write output to, defaults to STDOUT
- -q --noquotes do not enclose strings in quotes
- -t --type make the new element this type
- -u --ucl output universal config language
- -y --yaml output YAML
- variable The key of the variable to read, in object notation
- UCL A block of UCL to be written to the specified variable
- GET OPTIONS:
- SET OPTIONS:
- -i --input use indicated file as additional input (for combining)
- MERGE OPTIONS:
- -i --input use indicated file as additional input (for merging)
- REMOVE OPTIONS:
- EXAMPLES:
- uclcmd get --file vmconfig .name
- "value"
- uclcmd get --file vmconfig --keys --noquotes array.1.name
- array.1.name=value
- uclcmd get --file vmconfig --keys --shellvars array.1.name
- array_1_name="value"
- grahamperrin@pkg:~ % pkg iinfo uclcmd
- uclcmd-0.2.20211204
- grahamperrin@pkg:~ %
Advertisement
Add Comment
Please, Sign In to add comment