From b0cd1ffc161d0da3b7328b68166ab0c6187aefda Mon Sep 17 00:00:00 2001 From: Jeremy Voorhis Date: Fri, 13 Oct 2017 12:43:50 -0700 Subject: [PATCH] Add documentation for autocompletion setup. Based off of Vault docs at https://www.vaultproject.io/docs/commands/index.html --- website/source/docs/commands/index.html.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/website/source/docs/commands/index.html.md b/website/source/docs/commands/index.html.md index 39060745f..843a2db43 100644 --- a/website/source/docs/commands/index.html.md +++ b/website/source/docs/commands/index.html.md @@ -106,3 +106,18 @@ The set of machine-readable message types can be found in the documentation section. This section contains documentation on all the message types exposed by Packer core as well as all the components that ship with Packer by default. + +## Autocompletion + +The `packer` command features opt-in subcommand autocompletion that you can +enable for your shell with `packer -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: + +``` +$ packer p +plugin push +$ packer push - +-name -sensitive -token -var -var-file +```