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§
- Completions
Args - 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.