Merge pull request #9054 from tom-mi/master
Add completion for snapshot names for vagrant snapshot restore|delete
This commit is contained in:
commit
31689b6032
|
@ -140,6 +140,15 @@ _vagrant() {
|
|||
;;
|
||||
esac
|
||||
;;
|
||||
"snapshot")
|
||||
case "$prev" in
|
||||
"restore"|"delete")
|
||||
local snapshot_list=$(vagrant snapshot list)
|
||||
COMPREPLY=($(compgen -W "${snapshot_list}" -- ${cur}))
|
||||
return 0
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
|
|
Loading…
Reference in New Issue