Skip to content

Commit

Permalink
Update bash auto-completion (#198)
Browse files Browse the repository at this point in the history
- Rename `run` to `upgrade`
- Replace `--no-interactive` with `--auto-approve` and remove  `--interactive`
- Drop `--parallel` option because we will always run steps in parallel
where possible
  • Loading branch information
agileshaw authored Dec 14, 2023
1 parent e390526 commit d4bf059
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions completions/bash/cou_bash_completion
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ _subcommand_args() {
opts="--help --quiet --verbose --model --backup --no-backup"
child_commands=""
;;
run)
opts="--help --quiet --verbose --parallel --model --interactive --no-interactive --backup --no-backup"
upgrade)
opts="--help --quiet --verbose --model ---auto-approve --backup --no-backup"
child_commands=""
;;
help)
opts=""
child_commands="plan run"
child_commands="plan upgrade"
;;
*)
opts=""
Expand All @@ -28,7 +28,7 @@ _cou_bash_completion() {
top_opts="--help --version"

# Define the available subcommands
subcommands="plan run help"
subcommands="plan upgrade help"

# Define completion for top-level options and subcommands
if [ $COMP_CWORD -eq 1 ]; then
Expand Down

0 comments on commit d4bf059

Please sign in to comment.