Usage
facet info, whose output lists the facet cat command for every printable file.
Examples
Flags
Print the location of the file on this machine instead of its content. The file is not opened.
Exit codes
Output
On a terminal, control characters and invisible or direction-changing Unicode, including tag characters, are shown as visible escapes (^[, <U+202E>, <U+E0041>), and a note on stderr says how many. Redirected or piped, the file’s bytes are written unchanged.
Errors go to stderr, so stdout only ever holds the file.
Details
Selecting a file
When a declared file’s path is exactly the same as an asset’s name, the file path wins; select the asset by its file path instead, such as
commands/cowsay.md. A path that starts with - goes after --, as in facet cat cowsay -- -notes.md, so it is not read as a flag. The commands facet info prints already account for both.
Only facet.json and the files the manifest declares can be selected. Anything else, including paths with .., is reported as matching nothing. For a facet read from a directory on this machine, a declared file that is a link, or that resolves outside the facet’s directory, is refused.