aws / aws/aws-sam-cli

feat: Shell completion

Open
#6,842 4 comments 6 reactions 0 assignees View on GitHub
type/feature
Dominant language
Python
Stars
6.7k
Forks
1.2k
Avg merge
1d 10h
Merged PRs (30d)
52

Description

### Support shell completion?

click has support for completion [documented here](https://click.palletsprojects.com/en/8.1.x/shell-completion/)

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

```sh
source <(sam completion)
```

Where we would detect if the completion is for `zsh` or `bash`, and error if the shell is unsupported.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.