Output shell completion script (Hidden Command)
stack complete [OPTIONS][Placeholder: Add detailed description of shell completion functionality and how to enable it]
This is a hidden command used to generate shell completion scripts for the stack tool.
| Option | Type | Description | Default |
|---|---|---|---|
--shell |
TEXT | Name of shell to generate completions for | bash |
bash- Bash shell completionzsh- Z shell completionfish- Fish shell completion- [Placeholder: Add other supported shells]
# Add to ~/.bashrc
eval "$(stack complete --shell bash)"
# Or save to completion directory
stack complete --shell bash > /etc/bash_completion.d/stack# Add to ~/.zshrc
eval "$(stack complete --shell zsh)"
# Or save to completion directory
stack complete --shell zsh > ~/.zsh/completions/_stack# Save to fish completion directory
stack complete --shell fish > ~/.config/fish/completions/stack.fish- Command name completion
- Subcommand completion
- Option name completion
- File path completion for relevant options
- Stack name completion
# Generate bash completion
stack complete --shell bash
# Generate zsh completion
stack complete --shell zsh
# Test completion (bash)
stack <TAB><TAB>
# Complete stack names
stack init --stack <TAB><TAB>
# Complete file paths
stack deploy --spec-file <TAB><TAB>[Placeholder: Add common completion issues and solutions]
- Shell documentation for completion systems
- stack config - Manage configuration settings