o#
o is a tool for working with object notation.
Usage#
Commands#
| command | synopsis |
|---|---|
view |
o view [opts] [file...] |
eval |
o eval [opts] [file...] |
diff |
o diff [opts] <a> <b> \| diff [opts] -loop <cmd> |
get |
o get [opts] <kpath> [file...] |
list |
o list [opts] <kpath> [file...] |
match |
o match [opts] <match> [file...] |
patch |
o patch [opts] <patch> [file...] |
build |
o build [opts] [dir] |
dump |
o dump [opts] [file...] |
load |
o load [opts] [ir-file...] |
schema |
o schema <subcommand> |
system |
o system <subcommand> |
docs |
o docs <dir> |
help |
o help [command] |
completion |
bash|zsh|fish |
version |
version |
Options#
o options#
| option | type | default | description |
|---|---|---|---|
-b |
bool | encode with brackets | |
-x |
bool | expand <<: merge field while encoding | |
-color |
bool | colorize; on by default to a terminal, -color=false to suppress | |
-wire |
bool | output in compact format | |
-h, -help |
bool | show help for this command | |
-t, -tony |
bool | do i/o in tony | |
-j, -json |
bool | do i/o in json | |
-y, -yaml |
bool | do i/o in yaml | |
-o |
(filepath) | output file (default stdout) | |
-I, -ifmt |
(format) | input format: tony/t, json/j, yaml/y | |
-O, -ofmt |
(format) | output format: tony/t, json/j, yaml/y |
Boolean options take no argument and may be negated with a no- prefix, as in -no-debug.