Use Shell Completion
Angreal provides shell completion to make working with commands and arguments easier.
Shell completion helps you:
- Complete
angreal
commands automatically - Get template suggestions when using
angreal init
- Complete task names within Angreal projects
- Complete command arguments
Shell completion is automatically installed when you first run Angreal. To manually install:
# Install for current shell
angreal _completion install
# Generate completion script for specific shell
angreal _completion bash # For bash
angreal _completion zsh # For zsh
After installation, restart your shell or run:
# For bash
source ~/.bashrc
# For zsh
source ~/.zshrc
- Bash
- Zsh
# Type 'angreal ' and press TAB to see available commands
angreal [TAB]
init run test ...
# Type 'angreal i' and press TAB to complete to 'init'
angreal i[TAB]
# Type 'angreal init ' and press TAB to see available templates
angreal init [TAB]
python-cli django-api rust-project ...
# Type 'angreal init p' and press TAB to complete to 'python-cli'
angreal init p[TAB]
# Inside an Angreal project, type 'angreal ' and press TAB to see available tasks
angreal [TAB]
build test deploy ...
# Type 'angreal t' and press TAB to complete to 'test'
angreal t[TAB]
- Create Tasks - How to create tasks with completion support
- Create Templates - How to create templates with completion support