Jeden/Docs

CLI command

jeden completions zsh

Generate Jeden completions for zsh.

Exact invocation#

Shell
jeden completions zsh

Inputs and options#

  • Required shell selector: zsh; no output path is accepted because the script is written to stdout.

Output and state effect#

Prints a zsh completion program derived from the current usage and slash-command tables; redirect it into the shell's normal completion-loading location.

Refusals and boundaries#

  • The functionality is jeden.completions, read before the script is built, each exit 2: shell-missing (completions requires a shell, and the command line ends before one), shell-unknown (Jeden writes completions for bash, zsh and fish, and `<shell>` is none of them) and argument-unexpected (a word after the shell; the script goes to standard output). jeden errors show jeden.completions prints them with their tests in tests/cli/completions.mjs.
  • A command line of the wrong form (an unknown command or option, a missing, unexpected or invalid argument, a missing confirmation) prints the error and the usage and exits 2; a refusal that retrying unchanged can help (a dependency down or not answering, a rate limit) exits 69; any other refusal or failure exits 1. A refusal a functionality declares ends with fix: … and cause: <operation>.<cause>, and jeden errors show <operation> lists every cause of that functionality.