Skip to content

Commit

Permalink
[bash completion] added clone bash completion
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeliao authored and ricab committed Oct 18, 2024
1 parent 9323388 commit d175ac4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion completions/bash/multipass
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ _multipass_complete()
prev_opts=false
multipass_cmds="authenticate transfer delete exec find help info launch list mount networks \
purge recover restart restore shell snapshot start stop suspend umount version get set \
alias aliases unalias"
clone alias aliases unalias"

if [[ "${multipass_cmds}" =~ " ${cmd} " || "${multipass_cmds}" =~ ^${cmd} || "${multipass_cmds}" =~ \ ${cmd}$ ]];
then
Expand Down Expand Up @@ -283,6 +283,9 @@ _multipass_complete()
"restore")
_add_nonrepeating_args "--destructive"
;;
"clone")
_add_nonrepeating_args "--name"
;;
"get")
_add_nonrepeating_args "--raw --keys"
;;
Expand Down Expand Up @@ -369,6 +372,9 @@ _multipass_complete()
"snapshot")
_multipass_instances "Stopped"
;;
"clone")
_multipass_instances "Stopped"
;;
"restore")
_multipass_restorable_snapshots
;;
Expand Down

0 comments on commit d175ac4

Please sign in to comment.