mirror of
https://github.com/gryf/vboxmanage-bash-completion.git
synced 2025-12-17 11:30:23 +01:00
Updated import command
This commit is contained in:
23
VBoxManage
23
VBoxManage
@@ -1798,8 +1798,11 @@ _VBoxManage() {
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
import)
|
import)
|
||||||
items=(--options --dry-run -n --vmname --cloud --cloudprofile
|
items=(--basefolder --cloud --cloudbucket --cloudinstanceid
|
||||||
--cloudinstanceid --cloudbucket)
|
--cloudprofile --controller --cpus --description --disk
|
||||||
|
--dry-run --eula --group --ignore --memory --options --ostype
|
||||||
|
--port --scsitype --settingsfile --unit --vmname --vsys)
|
||||||
|
|
||||||
if [[ "${prev}" == "import" ]]; then
|
if [[ "${prev}" == "import" ]]; then
|
||||||
COMPREPLY=( $(compgen -o plusdirs -f -X '!@(*.ovf|*.ova)' \
|
COMPREPLY=( $(compgen -o plusdirs -f -X '!@(*.ovf|*.ova)' \
|
||||||
-- ${cur}) )
|
-- ${cur}) )
|
||||||
@@ -1809,10 +1812,20 @@ _VBoxManage() {
|
|||||||
COMPREPLY=( $(compgen -W "keepallmacs keepnatmacs
|
COMPREPLY=( $(compgen -W "keepallmacs keepnatmacs
|
||||||
importtovdi" -- ${cur}) )
|
importtovdi" -- ${cur}) )
|
||||||
;;
|
;;
|
||||||
|
--basefolder)
|
||||||
|
COMPREPLY=( $(compgen -o dirnames -- ${cur}) )
|
||||||
|
;;
|
||||||
|
|
||||||
|
--eula)=
|
||||||
|
COMPREPLY=( $(compgen -W "show accept" -- ${cur}) )
|
||||||
|
;;
|
||||||
|
--settingsfile)
|
||||||
|
COMPREPLY=( $(compgen -f -- ${cur}) )
|
||||||
|
;;
|
||||||
|
--scsitype)
|
||||||
|
COMPREPLY=( $(compgen -W "BusLogic LsiLogic" -- ${cur}) )
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
[[ " ${COMP_WORDS[@]} " != *" --dry-run"* &&
|
|
||||||
" ${COMP_WORDS[@]} " != *" -n"* ]] &&
|
|
||||||
items+=(-n --dry-run)
|
|
||||||
|
|
||||||
if [[ ${#COMPREPLY[@]} -eq 0 ]]; then
|
if [[ ${#COMPREPLY[@]} -eq 0 ]]; then
|
||||||
_get_excluded_items "${items[@]}"
|
_get_excluded_items "${items[@]}"
|
||||||
|
|||||||
Reference in New Issue
Block a user