onyo show

Serialize assets and directories into a multidocument YAML stream.

The filesystem hierarchy is encoded in pseudokeys (e.g. onyo.path.parent). Directories are included in the stream as needed.

usage: onyo show [-h] [-b [BASE]] PATH [PATH ...]

Positional Arguments

PATH

Paths to serialize.

Named Arguments

-b, --base-path

Base path that pseudokey-paths are relative to. Default is the repository root.

Examples

Display the YAML record of an asset (file or directory):

$ onyo show accounting/Bingo\ Bob/laptop_lenovo_T490s.abc123

Print the YAML records of the entire repository:

$ onyo show .

Print the YAML record of a directory and all children, relative to the admin directory:

$ onyo show admin/Karl\ Krebs/ --base-path admin/