Skip to content

Commit

Permalink
clap: Add help for completion setup
Browse files Browse the repository at this point in the history
Note that our completion support is incomplete pending solutions for
these two issues:

clap-rs/clap#568
clap-rs/clap#685
  • Loading branch information
emk committed Oct 10, 2016
1 parent df13134 commit fb5e679
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,21 @@ subcommands:
- "fish"
required: true
help: "The name of shell for which to generate an autocompletion script"
after_help: |
To set up shell auto-completion for bash:
cage generate completion bash
source cage.bash-completion
And set up your ~/.profile or ~/.bash_profile to source this file on
each login.
To set up shell auto-completion for fish:
cage generate completion fish
source cage.fish
mkdir -p ~/.config/fish/completions
mv cage.fish ~/.config/fish/completions
- secrets:
about: "Generate config/secrets.yml for local secret storage"
- vault:
Expand Down

0 comments on commit fb5e679

Please sign in to comment.