CMDLINER-INS...IC-COMPLETION(1)

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

πŸ’… NAME πŸ’…

cmdliner-install-generic-completion β€” install generic completion scripts, bestie. This one lives in the Cmdliner Manual and is literally here to help you install generic completion scripts. Periodt.

✨ SYNOPSIS ✨

cmdliner install generic-completion [--dry-run] [--shell=SHELL]
[--update-opam-install=PKG.install] [OPTION]… SHAREDIR

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so cmdliner install generic-completion installs the generic completion script of given shells into a share directory according to specific shell conventions. Directories are created if needed β€” yes, it handles that for you. Use option --dry-run to see which paths would be written. Examples:

cmdliner install generic-completion /usr/local/share # All supported shells
cmdliner install generic-completion --shell zsh /usr/local/share

To inspect the actual scripts use the command generic-completion. Iconic.

πŸŽ€ ARGUMENTS πŸŽ€

  • SHAREDIR (required) β€” SHAREDIR is the share directory to install to. That’s the destination, bestie.

πŸ’– OPTIONS πŸ’–

  • --dry-run β€” Do not install; output paths that would be written. It’s the β€œlook, don’t touch” mode.
  • -s SHELL, --shell=SHELL β€” (absent=All supported shells) SHELL is the shell to support, and it must be one of bash, zsh or pwsh. Repeatable, so you can stack it.
  • --update-opam-install=PKG.install β€” Update or create an opam .install file PKG.install with install moves from the installed files to the corresponding opam install sections. Also performed if --dry-run is specified. Yes, even in dry-run.

🌈 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.
  • --version β€” Show version information. Slay.

πŸ”₯ EXIT STATUS πŸ”₯

cmdliner install generic-completion exits with:

  • 0 β€” on success.
  • 123 β€” on indiscriminate errors reported on standard error.
  • 124 β€” on command line parsing errors.
  • 125 β€” on unexpected internal errors (bugs).

⭐ SEE ALSO ⭐


Bye bestie 🫢 β€” source/version: Cmdliner v2.1.1; date: not shown on the page, so I’m not inventing one. πŸ’–

πŸ“¦ where this page comes from