Skip to main content

HELP

Constant HELP 

Source
pub(crate) const HELP: &str = "trumly  a system's design, as a typed graph in git

usage: trumly COMMAND [ARGS]      (new here? run: trumly quickstart)

Look at a model (DIR defaults to the current folder)
  check [--json] [--no-color] [DIR]
                              run every rule and list the findings (exit 1 when one fails)
  show ID [DIR]               one node: its links in and out, and its rule results
  index [DIR] [--write]       a markdown map of the whole model; --write saves .trumly/INDEX.md

Change a model
  rename node FROM TO [DIR]              give a node a new id; links, parents and rule filters follow
  rename type OLD NEW [DIR] [--keep-ids] rename a type everywhere it is used
  rename link-type OLD NEW [DIR]         rename a link type everywhere it is used

Packs (ready-made definitions: types, link types, rules, planes)
  pack list [DIR] [--packs PACKS]                    the packs available, and which the model has
  pack add NAME [DIR] [--only a,b] [--packs PACKS] [--force] [--use-existing | --replace-existing]
                                                     add a pack, with what it needs and includes
  pack remove NAME [DIR] [--force]                   take a pack out of the model
  pack status [DIR]                                  which packs the model has and what you changed in them
  pack check [NAME | PACK-FOLDER] [--packs PACKS]    lint packs: clashing names, stray nodes, missing types

Editor
  serve [DIR] [--port N] [--page FILE] [--packs PACKS] [--browse FOLDER]
                              a local API over the folder, and the editor when --page is given.
                              --browse sets the folder the editor may open other models from
                              (your home folder by default)

Anonymous usage data (off until you turn it on)
  telemetry status            whether it is on, and where it goes
  telemetry on | off          turn it on or off; off also deletes the install id and anything unsent
  telemetry show              exactly what has been kept and would be sent
  telemetry send              send what is waiting now (needs TRUMLY_TELEMETRY_URL)
  collector [--port N] [--file FILE] [--host ADDR]
                              a small server that collects those events (default 127.0.0.1:4748)
  DO_NOT_TRACK=1 or TRUMLY_TELEMETRY=off always wins.

Colour is off for NO_COLOR, --no-color and output that is not a terminal; the words say the same either way.

Other
  quickstart                  a short guide to getting going (also in docs/QUICKSTART.md)
  help, --help, -h            this text
  --version, -V               the version

--packs PACKS is a folder of packs (or set TRUMLY_PACKS). Without it trumly looks in ./packs, then
~/.trumly/packs, ~/.trumly/community, and the official packs built in.
";
Expand description

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