Expand description
didbot β the one command a person types, and nothing more than a
router.
didbot <verb> β¦ finds the binary that answers <verb> and replaces
itself with it, handing over the rest of the command line. The
first-party verbs are in verbs::FIRST_PARTY, each naming its binary,
so a verb whose binary is not installed is answered with what to install.
Any other word is didbot-<word> on PATH, which is how someone adds a
verb without touching this repository.
The dispatcher passes argv and nothing else. It adds nothing to the
environment and removes every variable in didbot_cli::env::CREDENTIALS
before handing off: a verb reached this way authenticates for itself, and
a program reachable by a typo on didbot- inherits no credential from the
shell that ran it.
didbot --list scans PATH for didbot-*, asks each for --version and
prints what it found. Every binary is versioned on its own, so a mix of
versions shows up here and fails nowhere.
ModulesΒ§
- path π
- Finding binaries on
PATH. - run π
- Running a verbβs binary: the hand-off, and the version probe
--listmakes. - verbs π
- The verbs
didbotknows by name.
StructsΒ§
- Cli π
EnumsΒ§
- Verb π
ConstantsΒ§
- PROGRAM π
- The spelling every refusal from this binary is prefixed with.