CMDLINER-GENERIC-COMPLETION(1)

πŸ“¦ version 2.1.1, in arch rolling, nixos 26.05, nixpkgs unstable

πŸ’… CMDLINER-GENERIC-COMPLETION(1) πŸ’…

ok so this is a page from the Cmdliner Manual, bestie β€” welcome to the generic-completion era ✨

🌸 NAME 🌸

cmdliner-generic-completion β€” spits out generic completion scripts, no cap 🫢

πŸŽ€ SYNOPSIS πŸŽ€

cmdliner generic-completion [OPTION]… SHELL

πŸ’– DESCRIPTION πŸ’–

cmdliner generic-completion prints the generic cmdliner completion script for whichever shell you point it at. it's giving plug-and-play, literally.

Examples, because we love a demo πŸ‘‘

cmdliner generic-completion zsh
eval $(cmdliner generic-completion zsh)

ok so here's the tea πŸ”₯ β€” this script needs to be loaded in a shell for the tool-specific scripts output by the tool-completion command to actually work. like, it's the main character that makes the supporting cast function. iykyk.

then see command install generic-completion if you wanna install them. slay πŸŽ€

πŸ¦‹ ARGUMENTS πŸ¦‹

  • SHELL (required) β€” the shell you want to support. must be one of bash, zsh or pwsh. that's it, that's the list, no other options are invited to the party πŸ™ˆ

✨ COMMON OPTIONS ✨

  • --help[=FMT] (default=auto) β€” show this help in format FMT. the value FMT must be one of auto, pager, groff or plain. with auto, the format is pager or plain whenever the TERM env var is dumb or undefined. choose your fighter πŸ’…
  • --version β€” show version information. iconic, brief, does what it says πŸ‘‘

πŸ’€ EXIT STATUS πŸ’€

cmdliner generic-completion exits with:

  1. 0 β€” on success. we love a win 🌈
  2. 123 β€” on indiscriminate errors reported on standard error. messy but at least it's labeled 😭
  3. 124 β€” on command line parsing errors. bestie the syntax was not synta-ing πŸ’€
  4. 125 β€” on unexpected internal errors (bugs). not me... 🫠

🌟 SEE ALSO 🌟

cmdliner(1) β€” go read the parent, it's the blueprint fr fr 🧚


k bye ily β€” this was Cmdliner v2.1.1, same date as always, catch you on the next man page πŸ“πŸ’œ

πŸ“¦ where this page comes from