Skip to content

Add shell completion support#98

Merged
huseyinbabal merged 1 commit intomasterfrom
feature/shell-completion
Jan 16, 2026
Merged

Add shell completion support#98
huseyinbabal merged 1 commit intomasterfrom
feature/shell-completion

Conversation

@huseyinbabal
Copy link
Owner

Summary

  • Add shell completion support for bash, zsh, fish, and PowerShell
  • New taws completion <shell> subcommand to generate completion scripts

Usage

# Bash (add to ~/.bashrc)
eval "$(taws completion bash)"

# Zsh (add to ~/.zshrc)
eval "$(taws completion zsh)"

# Fish (add to ~/.config/fish/config.fish)
taws completion fish | source

# PowerShell (add to $PROFILE)
taws completion powershell | Out-String | Invoke-Expression

Features

  • Tab completion for all CLI flags (--profile, --region, --log-level, etc.)
  • Tab completion for flag values (e.g., log levels: off, error, warn, info, debug, trace)
  • Subcommand completion (completion, help)

Example

$ taws --pr<TAB>
$ taws --profile 

$ taws --log-level <TAB>
off    error  warn   info   debug  trace

$ taws comp<TAB>
$ taws completion 

$ taws completion <TAB>
bash  zsh  fish  powershell

Closes #97

- Add clap_complete dependency for shell completion generation
- Add 'taws completion <shell>' subcommand
- Support bash, zsh, fish, and PowerShell completions
- Update README with shell completion setup instructions

Usage:
  taws completion bash   # Generate bash completions
  taws completion zsh    # Generate zsh completions
  taws completion fish   # Generate fish completions
  taws completion powershell  # Generate PowerShell completions

Closes #97
@huseyinbabal huseyinbabal merged commit a3dec8a into master Jan 16, 2026
4 checks passed
@huseyinbabal huseyinbabal deleted the feature/shell-completion branch January 16, 2026 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bash autocompletion

1 participant