Skip to content
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

Add basic autocompletion #3223

Merged
merged 6 commits into from
Aug 24, 2017
Merged

Add basic autocompletion #3223

merged 6 commits into from
Aug 24, 2017

Conversation

briankassouf
Copy link
Contributor

No description provided.

jefferai
jefferai previously approved these changes Aug 22, 2017
@jefferai jefferai added this to the 0.8.2 milestone Aug 23, 2017
@brianshumate
Copy link
Member

brianshumate commented Aug 24, 2017

👋 I accidentally duplicated some of this effort today, but here's the initial docs section I'd written for docs/commands/index in hopes that they provide a good starting point:

Autocompletion

The vault command features opt-in subcommand autocompletion that you can
enable for your shell with vault -autocomplete-install. After doing so,
you can invoke a new shell and use the feature.

For example, assume a tab is typed at the end of each prompt line:

$ vault au
audit-disable  audit-enable  audit-list  auth  auth-disable  auth-enable

$ vault s
seal  server  ssh  status  step-down

@jefferai
Copy link
Member

@brianshumate Probably should be vault -autocomplete-install :-D

@brianshumate
Copy link
Member

Corrected! 😉

@briankassouf
Copy link
Contributor Author

@brianshumate Thanks! Added that to the docs section

@briankassouf briankassouf merged commit 41db075 into master Aug 24, 2017
@briankassouf briankassouf deleted the autocomplete branch August 24, 2017 22:23
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.

3 participants