Skip to main content

Module completions

Module completions 

Source
Expand description

Shell completion script generation for Ralph CLI.

Responsibilities:

  • Generate shell completion scripts for supported shells (bash, zsh, fish, PowerShell, Elvish).
  • Provide a CLI command to output completion scripts to stdout.

Not handled here:

  • Installation of completion scripts to system directories (user responsibility).
  • Runtime shell detection or automatic configuration.

Invariants/assumptions:

  • Completion scripts are generated using clap_complete and written to stdout.
  • Users redirect output to appropriate shell-specific completion directories.

Structs§

CompletionsArgs
Arguments for the completions command.

Enums§

Shell
Supported shells for completion generation.

Functions§

handle_completions
Generate and print shell completion script for the specified shell.