aboutsummaryrefslogtreecommitdiffstats
path: root/share/bash-completion
diff options
context:
space:
mode:
Diffstat (limited to 'share/bash-completion')
-rw-r--r--share/bash-completion/completions/enstate5
1 files changed, 3 insertions, 2 deletions
diff --git a/share/bash-completion/completions/enstate b/share/bash-completion/completions/enstate
index dc90101..3774be5 100644
--- a/share/bash-completion/completions/enstate
+++ b/share/bash-completion/completions/enstate
@@ -4,7 +4,7 @@
_enstate() {
local cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]}
- local commands="--plan --apply --stage --status --materialize --migrate --pack"
+ local commands="--plan --apply --stage --status --materialize --migrate --pack --forget"
# the settings, and those each command uses
local general="--config --unset --print-config"
local settings="$general --state-dir --run-dir --schema --sandbox --unit"
@@ -19,7 +19,7 @@ _enstate() {
for ((i = 1; i < COMP_CWORD; i++)); do
w=${COMP_WORDS[i]}
case $w in
- --plan | --apply | --stage | --status | --materialize | --migrate | --pack)
+ --plan | --apply | --stage | --status | --materialize | --migrate | --pack | --forget)
cmd=${w#--} ;;
--out | --config | --unset | --state-dir | --run-dir | --schema | --sandbox | --unit)
used="$used$w "
@@ -42,6 +42,7 @@ _enstate() {
plan | stage) options="--json $store --sandbox" ;;
apply) options="--json $store --sandbox --unit" ;;
status) options="--json $store" ;;
+ forget) options="$general --state-dir" ;;
materialize) options="--json $store --sandbox" ;;
migrate) options="--json --dry-run $store --sandbox" ;;
pack)