Auto-completion for Bash¶
The opentf-ctl
tool supports commands auto-completion for Bash.
The auto-completion script needs to be installed separately.
This script depends on bash-autocompletion
package.
To enable opentf-ctl
commands auto-completion, run the following commands:
opentf-ctl completion bash | sudo tee /etc/bash_completion.d/opentf-ctl > /dev/null
sudo chmod a+r /etc/bash_completion.d/opentf-ctl
Then reload your shell or source the /etc/bash_completion.d/opentf-ctl
file in
the current session:
source /etc/bash_completion.d/opentf-ctl
The auto-completion supports full and partial auto-completion for commands, commands options and dynamical parameters like workflow ids:
opentf-ctl get workflow [tab]
9de3d8aa-3feb-4580-bf4b-1ba9daf41f99 cf877db8-7124-49fe-8721-bf057bc28b1c
e72d271f-168e-4dcd-8865-3dc7f56d3faa d0954316-9b1d-4b5f-9eff-b4d58e173951