Skip to main content

shell_functions

Function shell_functions 

Source
pub fn shell_functions() -> String
Expand description

The generated half of templates/shell/choir.sh: one function per agent-facing command (D17).

Thin on purpose. A wrapper that only forwards its arguments cannot drift from the binary, and the arguments it forwards come from the same table --help prints — so a command renamed here renames the shell function in the same commit or the staleness test fails. Anything worth more than forwarding is a flow, which is judgement about order and lives in the hand-written half of that file.

sh rather than bash: the harnesses that will source this run whatever /bin/sh is, and nothing here needs an array or a [[-test.