Skip to main content

Crate trumly

Crate trumly 

Source
Expand description

The trumly command line. Run trumly help for every command and option (the text lives in HELP below).

This is the adapter that touches the disk. All the logic lives in trumly-core.

ModulesΒ§

render πŸ”’
How trumly check reads on a terminal: the trumly mark and context on one line, a fixed four-character status column (pass, warn, FAIL, so it reads with colour off), and one summary line. Colour is decoration on top of the words and is dropped for NO_COLOR, --no-color, a dumb terminal and anything that is not a terminal.

ConstantsΒ§

HELP πŸ”’
Everything the command line can do. Kept in one place so trumly help and the usage error say the same thing.

FunctionsΒ§

load_report πŸ”’
main πŸ”’
pack πŸ”’
packs_dir πŸ”’
An explicit packs folder (--packs DIR); otherwise the library searches its usual places (see trumly_fs::library).
positional πŸ”’
The positional arguments: everything that is not a flag or a flag’s value.
rename πŸ”’
trumly rename node|type|link-type ...: the edit is worked out by trumly-core, so the editor and an agent get the same result.
run πŸ”’
Runs the command and returns the process exit code. ? hands any Err(String) straight up.
telemetry πŸ”’