-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Shell completion #6842
Comments
Hi @JamesKyburz thanks for the feature request! I'll bring this up with the team. |
As an alternative, you could try using Code Whisperer CLI and it gives smart auto-completion for SAM CLI commands. |
As an optimisation to prevent shells having to generate completions each startup, I recommend a change to the proposal for #! /bin/bash
sam completion > ${XDG_DATA_HOME:-~/.local/share}/bash-completion/completions/sam This is based off the bash-completion documentation:
Someone more familiar with |
Support shell completion?
click has support for completion documented here
Is there any reason we shouldn't support it?
Proposal
Was thinking something along the lines of adding the allowing the following in ~/.zshrc, or ~/.bashrc
Where we would detect if the completion is for
zsh
orbash
, and error if the shell is unsupported.The text was updated successfully, but these errors were encountered: