fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

ccoVeilleFix typos in completions scripts0df6fa791

master
113.0 KiB1482 linesraw
1# virsh is the main interface for managing virtlib guest domains.
2# See: https://libvirt.org/virshcmdref.html
3
4set -l cmds attach-device attach-disk attach-interface autostart blkdeviotune blkiotune \
5    blockcommit blockcopy blockjob blockpull blockresize change-media console cpu-baseline \
6    cpu-compare cpu-stats create define desc destroy detach-device detach-disk detach-interface \
7    domdisplay domfsfreeze domfsthaw domfsinfo domfstrim domhostname domid domif-setlink domiftune \
8    domjobabort domjobinfo domname domrename dompmsuspend dompmwakeup domuuid domxml-from-native \
9    domxml-to-native dump dumpxml edit event inject-nmi iothreadinfo iothreadpin iothreadadd \
10    iothreaddel send-key send-process-signal lxc-enter-namespace managedsave managedsave-remove \
11    managedsave-edit managedsave-dumpxml managedsave-define memtune perf metadata migrate \
12    migrate-setmaxdowntime migrate-getmaxdowntime migrate-compcache migrate-setspeed \
13    migrate-getspeed migrate-postcopy numatune qemu-attach qemu-monitor-command \
14    qemu-monitor-event qemu-agent-command reboot reset restore resume save save-image-define \
15    save-image-dumpxml save-image-edit schedinfo screenshot set-lifecycle-action set-user-password \
16    setmaxmem setmem setvcpus shutdown start suspend ttyconsole undefine update-device vcpucount \
17    vcpuinfo vcpupin emulatorpin vncdisplay guestvcpus setvcpu domblkthreshold domblkerror \
18    domblkinfo domblklist domblkstat domcontrol domif-getlink domifaddr domiflist domifstat \
19    dominfo dommemstat domstate domstats domtime list allocpages capabilities cpu-models \
20    domcapabilities freecell freepages hostname maxvcpus node-memory-tune nodecpumap nodecpustats \
21    nodeinfo nodememstats nodesuspend sysinfo uri version iface-begin iface-bridge iface-commit \
22    iface-define iface-destroy iface-dumpxml iface-edit iface-list iface-mac iface-name \
23    iface-rollback iface-start iface-unbridge iface-undefine nwfilter-define nwfilter-dumpxml \
24    nwfilter-edit nwfilter-list nwfilter-undefine net-autostart net-create net-define net-destroy \
25    net-dhcp-leases net-dumpxml net-edit net-event net-info net-list net-name net-start \
26    net-undefine net-update net-uuid nodedev-create nodedev-destroy nodedev-detach nodedev-dumpxml \
27    nodedev-list nodedev-reattach nodedev-reset nodedev-event secret-define secret-dumpxml \
28    secret-event secret-get-value secret-list secret-set-value secret-undefine snapshot-create \
29    snapshot-create-as snapshot-current snapshot-delete snapshot-dumpxml snapshot-edit snapshot-info \
30    snapshot-list snapshot-parent snapshot-revert find-storage-pool-sources-as \
31    find-storage-pool-sources pool-autostart pool-build pool-create-as pool-create pool-define-as \
32    pool-define pool-delete pool-destroy pool-dumpxml pool-edit pool-info pool-list pool-name \
33    pool-refresh pool-start pool-undefine pool-uuid pool-event vol-clone vol-create-as vol-create \
34    vol-create-from vol-delete vol-download vol-dumpxml vol-info vol-key vol-list \
35    vol-name vol-path vol-pool vol-resize vol-upload vol-wipe
36
37function __fish_virsh_get_domains --argument-names state --description "Prints the list of virtlib domains with the given state (running, shutoff, paused or transient)."
38    set -l filter
39    switch "$state"
40        case running paused shutoff
41            set filter --state-$state
42        case inactive transient
43            set filter --$state
44        case '*'
45            set filter --all
46    end
47
48    set -l desc (test -n "$state"; and echo (string sub -s1 -l1 -- $state | string upper)(string sub -s2 -- $state) domain; or echo Domain)
49    set -l domains (virsh list --name $filter | string match -v -r '^$')
50    set -q domains[1]
51    and printf "%s\t$desc\n" $domains
52end
53
54function __fish_virsh_get_networks
55    # Example of `virsh net-list --all` output:
56    #
57    #  Name                 State      Autostart     Persistent
58    # ----------------------------------------------------------
59    #  default              active     yes           yes
60    #  mynet                active     yes           yes
61    #
62
63    set -l header 'Name State Autostart Persistent'
64    set -l networks (virsh net-list --all | string replace -ar '[ \t]+' ' ' | string trim | string match -rv -- ---)
65
66    if not string match -q -- $header $networks[1]
67        return 1
68    end
69
70    set -l networks (string match -v -- $header $networks | string match -rv '^$')
71    for network in $networks
72        set -l network (string split ' ' $network)
73        set -l network_name $network[1]
74        set -l network_state $network[2]
75        set -l network_autostart $network[3]
76        set -l network_persistent $network[4]
77
78        set -l network_qualities $network_state (test $network_autostart = 'yes'; and echo 'autostart') (test $network_persistent = 'yes'; and echo 'persistent')
79        set -l show true
80        if set -q argv[1]
81            for filter in $argv
82                if not string match -q -- $filter $network_qualities
83                    set show false
84                    continue
85                end
86            end
87        end
88
89        if not test $show = true
90            continue
91        end
92
93        printf '%s\tNetwork (%s)\n' $network_name (string join ' ' $network_qualities)
94    end
95end
96
97# virsh
98complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -x
99complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -l connect -s -x -d "Specify hypervisor connection URI"
100complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -l debug -s d -x -a "0\t 1\t 2\t 3\t 4\t" -d "Specify debug level (0-4)"
101complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -l help -s h -d "Show help and exit"
102complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -l keepalive-interval -s k -x -a "0\tDisable\ keepalive" -d "Set keepalive interval (secs)"
103complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -l keepalive-count -s K -x -d "Set number of possible missed keepalive messages"
104complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -l log -s l -r -d "Output logging to file"
105complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -l quiet -s q -d "Quiet mode"
106complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -l readonly -s r -d "Connect readonly"
107complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -l timing -s t -d "Show timing information"
108complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -s v -d "Show short version and exit"
109complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -s V -d "Show short version and exit"
110complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -l version -a "short\tShort\ version long\tLong\ version" -d "Show version"
111
112# virsh attach-device
113complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a attach-device -d "Attach device from an XML file"
114complete -c virsh -n "__fish_seen_subcommand_from attach-device" -l persistent -d "Make live change persistent"
115complete -c virsh -n "__fish_seen_subcommand_from attach-device" -l config -d "Affect next boot"
116complete -c virsh -n "__fish_seen_subcommand_from attach-device" -l live -d "Affect running domain"
117complete -c virsh -n "__fish_seen_subcommand_from attach-device" -l current -d "Affect current domain"
118
119# virsh attach-disk
120complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a attach-disk -d "Attach disk device"
121complete -c virsh -n "__fish_seen_subcommand_from attach-disk" -l targetbus -d "Target bus of disk device"
122complete -c virsh -n "__fish_seen_subcommand_from attach-disk" -l driver -d "Driver of disk device"
123complete -c virsh -n "__fish_seen_subcommand_from attach-disk" -l subdriver -d "Subdriver of disk device"
124complete -c virsh -n "__fish_seen_subcommand_from attach-disk" -l iothread -d "IOThread to be used by supported device"
125complete -c virsh -n "__fish_seen_subcommand_from attach-disk" -l cache -d "Cache mode of disk device"
126complete -c virsh -n "__fish_seen_subcommand_from attach-disk" -l io -d "IO policy of disk device"
127complete -c virsh -n "__fish_seen_subcommand_from attach-disk" -l type -d "Target device type"
128complete -c virsh -n "__fish_seen_subcommand_from attach-disk" -l mode -d "Mode of device reading and writing"
129complete -c virsh -n "__fish_seen_subcommand_from attach-disk" -l sourcetype -d "Type of source" -x -a "block file"
130complete -c virsh -n "__fish_seen_subcommand_from attach-disk" -l serial -d "Serial of disk device"
131complete -c virsh -n "__fish_seen_subcommand_from attach-disk" -l wwn -d "Wwn of disk device"
132complete -c virsh -n "__fish_seen_subcommand_from attach-disk" -l rawio -d "Needs rawio capability"
133complete -c virsh -n "__fish_seen_subcommand_from attach-disk" -l address -d "Address of disk device"
134complete -c virsh -n "__fish_seen_subcommand_from attach-disk" -l multifunction -d "Use multifunction pci under specified address"
135complete -c virsh -n "__fish_seen_subcommand_from attach-disk" -l print-xml -d "Print XML document rather than attach the disk"
136complete -c virsh -n "__fish_seen_subcommand_from attach-disk" -l persistent -d "Make live change persistent"
137complete -c virsh -n "__fish_seen_subcommand_from attach-disk" -l config -d "Affect next boot"
138complete -c virsh -n "__fish_seen_subcommand_from attach-disk" -l live -d "Affect running domain"
139complete -c virsh -n "__fish_seen_subcommand_from attach-disk" -l current -d "Affect current domain"
140
141# virsh attach-interface
142complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a attach-interface -d "Attach network interface"
143complete -c virsh -n "__fish_seen_subcommand_from attach-interface" -l target -d "Target network name"
144complete -c virsh -n "__fish_seen_subcommand_from attach-interface" -l mac -d "MAC address"
145complete -c virsh -n "__fish_seen_subcommand_from attach-interface" -l script -d "Script used to bridge network interface"
146complete -c virsh -n "__fish_seen_subcommand_from attach-interface" -l model -d "Model type"
147complete -c virsh -n "__fish_seen_subcommand_from attach-interface" -l inbound -d "Control domain's incoming traffics"
148complete -c virsh -n "__fish_seen_subcommand_from attach-interface" -l outbound -d "Control domain's outgoing traffics"
149complete -c virsh -n "__fish_seen_subcommand_from attach-interface" -l persistent -d "Make live change persistent"
150complete -c virsh -n "__fish_seen_subcommand_from attach-interface" -l config -d "Affect next boot"
151complete -c virsh -n "__fish_seen_subcommand_from attach-interface" -l live -d "Affect running domain"
152complete -c virsh -n "__fish_seen_subcommand_from attach-interface" -l current -d "Affect current domain"
153complete -c virsh -n "__fish_seen_subcommand_from attach-interface" -l print-xml -d "Print XML document rather than attach the interface"
154complete -c virsh -n "__fish_seen_subcommand_from attach-interface" -l managed -d "Libvirt will automatically detach/attach the device from/to host"
155
156# virsh autostart
157complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a autostart -d "Autostart a domain"
158complete -c virsh -n "__fish_seen_subcommand_from autostart" -a '(__fish_virsh_get_domains)' -x
159complete -c virsh -n "__fish_seen_subcommand_from autostart" -l disable -d "Disable autostarting"
160
161# virsh blkdeviotune
162complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a blkdeviotune -d "Set or query a block device I/O tuning parameters"
163complete -c virsh -n "__fish_seen_subcommand_from blkdeviotune" -l total-bytes-sec -d "Total throughput limit, as scaled integer (default bytes)"
164complete -c virsh -n "__fish_seen_subcommand_from blkdeviotune" -l read-bytes-sec -d "Read throughput limit, as scaled integer (default bytes)"
165complete -c virsh -n "__fish_seen_subcommand_from blkdeviotune" -l write-bytes-sec -d "Write throughput limit, as scaled integer (default bytes)"
166complete -c virsh -n "__fish_seen_subcommand_from blkdeviotune" -l total-iops-sec -d "Total I/O operations limit per second"
167complete -c virsh -n "__fish_seen_subcommand_from blkdeviotune" -l read-iops-sec -d "Read I/O operations limit per second"
168complete -c virsh -n "__fish_seen_subcommand_from blkdeviotune" -l write-iops-sec -d "Write I/O operations limit per second"
169complete -c virsh -n "__fish_seen_subcommand_from blkdeviotune" -l total-bytes-sec-max -d "Total max, as scaled integer (default bytes)"
170complete -c virsh -n "__fish_seen_subcommand_from blkdeviotune" -l read-bytes-sec-max -d "Read max, as scaled integer (default bytes)"
171complete -c virsh -n "__fish_seen_subcommand_from blkdeviotune" -l write-bytes-sec-max -d "Write max, as scaled integer (default bytes)"
172complete -c virsh -n "__fish_seen_subcommand_from blkdeviotune" -l total-iops-sec-max -d "Total I/O operations max"
173complete -c virsh -n "__fish_seen_subcommand_from blkdeviotune" -l read-iops-sec-max -d "Read I/O operations max"
174complete -c virsh -n "__fish_seen_subcommand_from blkdeviotune" -l write-iops-sec-max -d "Write I/O operations max"
175complete -c virsh -n "__fish_seen_subcommand_from blkdeviotune" -l size-iops-sec -d "I/O size in bytes"
176complete -c virsh -n "__fish_seen_subcommand_from blkdeviotune" -l group-name -d "Group name to share I/O quota between multiple drives"
177complete -c virsh -n "__fish_seen_subcommand_from blkdeviotune" -l total-bytes-sec-max-length -d "Duration in seconds to allow total max bytes"
178complete -c virsh -n "__fish_seen_subcommand_from blkdeviotune" -l read-bytes-sec-max-length -d "Duration in seconds to allow read max bytes"
179complete -c virsh -n "__fish_seen_subcommand_from blkdeviotune" -l write-bytes-sec-max-length -d "Duration in seconds to allow write max bytes"
180complete -c virsh -n "__fish_seen_subcommand_from blkdeviotune" -l total-iops-sec-max-length -d "Duration in seconds to allow total I/O operations max"
181complete -c virsh -n "__fish_seen_subcommand_from blkdeviotune" -l read-iops-sec-max-length -d "Duration in seconds to allow read I/O operations max"
182complete -c virsh -n "__fish_seen_subcommand_from blkdeviotune" -l write-iops-sec-max-length -d "Duration in seconds to allow write I/O operations max"
183complete -c virsh -n "__fish_seen_subcommand_from blkdeviotune" -l config -d "Affect next boot"
184complete -c virsh -n "__fish_seen_subcommand_from blkdeviotune" -l live -d "Affect running domain"
185complete -c virsh -n "__fish_seen_subcommand_from blkdeviotune" -l current -d "Affect current domain"
186
187# virsh blkiotune
188complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a blkiotune -d "Get or set blkio parameters"
189complete -c virsh -n "__fish_seen_subcommand_from blkiotune" -l weight -d "IO Weight"
190complete -c virsh -n "__fish_seen_subcommand_from blkiotune" -l device-weights -d "Per-device IO Weights, in the form of /path/to/device,weight,..."
191complete -c virsh -n "__fish_seen_subcommand_from blkiotune" -l device-read-iops-sec -d "Per-device read I/O limit per second, in the form of /path/to/device,read_iops_sec,..."
192complete -c virsh -n "__fish_seen_subcommand_from blkiotune" -l device-write-iops-sec -d "Per-device write I/O limit per second, in the form of /path/to/device,write_iops_sec,..."
193complete -c virsh -n "__fish_seen_subcommand_from blkiotune" -l device-read-bytes-sec -d "Per-device bytes read per second, in the form of /path/to/device,read_bytes_sec,..."
194complete -c virsh -n "__fish_seen_subcommand_from blkiotune" -l device-write-bytes-sec -d "Per-device bytes wrote per second, in the form of /path/to/device,write_bytes_sec,..."
195complete -c virsh -n "__fish_seen_subcommand_from blkiotune" -l config -d "Affect next boot"
196complete -c virsh -n "__fish_seen_subcommand_from blkiotune" -l live -d "Affect running domain"
197complete -c virsh -n "__fish_seen_subcommand_from blkiotune" -l current -d "Affect current domain"
198
199# virsh blockcommit
200complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a blockcommit -d "Start a block commit operation"
201complete -c virsh -n "__fish_seen_subcommand_from blockcommit" -l bandwidth -d "Bandwidth limit in MiB/s"
202complete -c virsh -n "__fish_seen_subcommand_from blockcommit" -l base -d "Path of base file to commit into (default bottom of chain)"
203complete -c virsh -n "__fish_seen_subcommand_from blockcommit" -l shallow -d "Use backing file of top as base"
204complete -c virsh -n "__fish_seen_subcommand_from blockcommit" -l top -d "Path of top file to commit from (default top of chain)"
205complete -c virsh -n "__fish_seen_subcommand_from blockcommit" -l active -d "Trigger two-stage active commit of top file"
206complete -c virsh -n "__fish_seen_subcommand_from blockcommit" -l delete -d "Delete files that were successfully committed"
207complete -c virsh -n "__fish_seen_subcommand_from blockcommit" -l wait -d "Wait for job to complete (with --active, wait for job to sync)"
208complete -c virsh -n "__fish_seen_subcommand_from blockcommit" -l verbose -d "With --wait, display the progress"
209complete -c virsh -n "__fish_seen_subcommand_from blockcommit" -l timeout -d "Implies --wait, abort if copy exceeds timeout (in seconds)"
210complete -c virsh -n "__fish_seen_subcommand_from blockcommit" -l pivot -d "Implies --active --wait, pivot when commit is synced"
211complete -c virsh -n "__fish_seen_subcommand_from blockcommit" -l keep-overlay -d "Implies --active --wait, quit when commit is synced"
212complete -c virsh -n "__fish_seen_subcommand_from blockcommit" -l async -d "With --wait, don't wait for cancel to finish"
213complete -c virsh -n "__fish_seen_subcommand_from blockcommit" -l keep-relative -d "Keep the backing chain relatively referenced"
214complete -c virsh -n "__fish_seen_subcommand_from blockcommit" -l bytes -d "The bandwidth limit is in bytes/s rather than MiB/s"
215
216# virsh blockcopy
217complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a blockcopy -d "Start a block copy operation"
218complete -c virsh -n "__fish_seen_subcommand_from blockcopy" -l dest -d "Path of the copy to create"
219complete -c virsh -n "__fish_seen_subcommand_from blockcopy" -l bandwidth -d "Bandwidth limit in MiB/s"
220complete -c virsh -n "__fish_seen_subcommand_from blockcopy" -l shallow -d "Make the copy share a backing chain"
221complete -c virsh -n "__fish_seen_subcommand_from blockcopy" -l reuse-external -d "Reuse existing destination"
222complete -c virsh -n "__fish_seen_subcommand_from blockcopy" -l blockdev -d "Copy destination is block device instead of regular file"
223complete -c virsh -n "__fish_seen_subcommand_from blockcopy" -l wait -d "Wait for job to reach mirroring phase"
224complete -c virsh -n "__fish_seen_subcommand_from blockcopy" -l verbose -d "With --wait, display the progress"
225complete -c virsh -n "__fish_seen_subcommand_from blockcopy" -l timeout -d "Implies --wait, abort if copy exceeds timeout (in seconds)"
226complete -c virsh -n "__fish_seen_subcommand_from blockcopy" -l pivot -d "Implies --wait, pivot when mirroring starts"
227complete -c virsh -n "__fish_seen_subcommand_from blockcopy" -l finish -d "Implies --wait, quit when mirroring starts"
228complete -c virsh -n "__fish_seen_subcommand_from blockcopy" -l async -d "With --wait, don't wait for cancel to finish"
229complete -c virsh -n "__fish_seen_subcommand_from blockcopy" -l xml -d "Filename containing XML description of the copy destination"
230complete -c virsh -n "__fish_seen_subcommand_from blockcopy" -l format -d "Format of the destination file"
231complete -c virsh -n "__fish_seen_subcommand_from blockcopy" -l granularity -d "Power-of-two granularity to use during the copy"
232complete -c virsh -n "__fish_seen_subcommand_from blockcopy" -l buf-size -d "Maximum amount of in-flight data during the copy"
233complete -c virsh -n "__fish_seen_subcommand_from blockcopy" -l bytes -d "The bandwidth limit is in bytes/s rather than MiB/s"
234complete -c virsh -n "__fish_seen_subcommand_from blockcopy" -l transient-job -d "The copy job is not persisted if VM is turned off"
235
236# virsh blockjob
237complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a blockjob -d "Manage active block operations"
238complete -c virsh -n "__fish_seen_subcommand_from blockjob" -l abort -d "Abort the active job on the specified disk"
239complete -c virsh -n "__fish_seen_subcommand_from blockjob" -l async -d "Implies --abort; request but don't wait for job end"
240complete -c virsh -n "__fish_seen_subcommand_from blockjob" -l pivot -d "Implies --abort; conclude and pivot a copy or commit job"
241complete -c virsh -n "__fish_seen_subcommand_from blockjob" -l info -d "Get active job information for the specified disk"
242complete -c virsh -n "__fish_seen_subcommand_from blockjob" -l bytes -d "Get/set bandwidth in bytes rather than MiB/s"
243complete -c virsh -n "__fish_seen_subcommand_from blockjob" -l raw -d "Implies --info; output details rather than human summary"
244complete -c virsh -n "__fish_seen_subcommand_from blockjob" -l bandwidth -d "Set the bandwidth limit in MiB/s"
245
246# virsh blockpull
247complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a blockpull -d "Populate a disk from its backing image"
248complete -c virsh -n "__fish_seen_subcommand_from blockpull" -l bandwidth -d "Bandwidth limit in MiB/s"
249complete -c virsh -n "__fish_seen_subcommand_from blockpull" -l base -d "Path of backing file in chain for a partial pull"
250complete -c virsh -n "__fish_seen_subcommand_from blockpull" -l wait -d "Wait for job to finish"
251complete -c virsh -n "__fish_seen_subcommand_from blockpull" -l verbose -d "With --wait, display the progress"
252complete -c virsh -n "__fish_seen_subcommand_from blockpull" -l timeout -d "With --wait, abort if pull exceeds timeout (in seconds)"
253complete -c virsh -n "__fish_seen_subcommand_from blockpull" -l async -d "With --wait, don't wait for cancel to finish"
254complete -c virsh -n "__fish_seen_subcommand_from blockpull" -l keep-relative -d "Keep the backing chain relatively referenced"
255complete -c virsh -n "__fish_seen_subcommand_from blockpull" -l bytes -d "The bandwidth limit is in bytes/s rather than MiB/s"
256
257# virsh blockresize
258complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a blockresize -d "Resize block device of domain"
259
260# virsh change-media
261complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a change-media -d "Change media of CD or floppy drive"
262complete -c virsh -n "__fish_seen_subcommand_from change-media" -l source -d "Source of the media"
263complete -c virsh -n "__fish_seen_subcommand_from change-media" -l eject -d "Eject the media"
264complete -c virsh -n "__fish_seen_subcommand_from change-media" -l insert -d "Insert the media"
265complete -c virsh -n "__fish_seen_subcommand_from change-media" -l update -d "Update the media"
266complete -c virsh -n "__fish_seen_subcommand_from change-media" -l current -d "Alter live or persistent configuration of domain depending on hypervisor driver"
267complete -c virsh -n "__fish_seen_subcommand_from change-media" -l live -d "Alter live configuration of running domain"
268complete -c virsh -n "__fish_seen_subcommand_from change-media" -l config -d "Alter persistent configuration, effect observed on next boot"
269complete -c virsh -n "__fish_seen_subcommand_from change-media" -l force -d "Force media changing"
270complete -c virsh -n "__fish_seen_subcommand_from change-media" -l print-xml -d "Print XML document rather than change media"
271complete -c virsh -n "__fish_seen_subcommand_from change-media" -l block -d "Source media is a block device"
272
273# virsh console
274complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a console -d "Connect to the guest console"
275complete -c virsh -n "__fish_seen_subcommand_from console" -a '(__fish_virsh_get_domains running)' -x
276complete -c virsh -n "__fish_seen_subcommand_from console" -l devname -d "Character device name"
277complete -c virsh -n "__fish_seen_subcommand_from console" -l force -d "Force console connection (disconnect already connected sessions)"
278complete -c virsh -n "__fish_seen_subcommand_from console" -l safe -d "Only connect if safe console handling is supported"
279
280# virsh cpu-baseline
281complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a cpu-baseline -d "Compute baseline CPU"
282complete -c virsh -n "__fish_seen_subcommand_from cpu-baseline" -l features -d "Show features that are part of the CPU model type"
283complete -c virsh -n "__fish_seen_subcommand_from cpu-baseline" -l migratable -d "Do not include features that block migration"
284
285# virsh cpu-compare
286complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a cpu-compare -d "Compare host CPU with a CPU described by an XML file"
287complete -c virsh -n "__fish_seen_subcommand_from cpu-compare" -l error -d "Report error if CPUs are incompatible"
288
289# virsh cpu-stats
290complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a cpu-stats -d "Show domain cpu statistics"
291complete -c virsh -n "__fish_seen_subcommand_from cpu-stats" -l total -d "Show total statistics only"
292complete -c virsh -n "__fish_seen_subcommand_from cpu-stats" -l start -d "Show statistics from this CPU"
293complete -c virsh -n "__fish_seen_subcommand_from cpu-stats" -l count -d "Number of shown CPUs at most"
294
295# virsh create
296complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a create -d "Create a domain from an XML file"
297complete -c virsh -n "__fish_seen_subcommand_from create" -l console -d "Attach to console after creation"
298complete -c virsh -n "__fish_seen_subcommand_from create" -l paused -d "Leave the guest paused after creation"
299complete -c virsh -n "__fish_seen_subcommand_from create" -l autodestroy -d "Automatically destroy the guest when virsh disconnects"
300complete -c virsh -n "__fish_seen_subcommand_from create" -l pass-fds -d "Pass file descriptors N,M,... to the guest"
301complete -c virsh -n "__fish_seen_subcommand_from create" -l validate -d "Validate the XML against the schema"
302
303# virsh define
304complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a define -d "Define (but don't start) a domain"
305complete -c virsh -n "__fish_seen_subcommand_from define" -l validate -d "Validate the XML against the schema"
306
307# virsh desc
308complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a desc -d "Show or set domain's description or title"
309complete -c virsh -n "__fish_seen_subcommand_from desc" -l live -d "Modify/get running state"
310complete -c virsh -n "__fish_seen_subcommand_from desc" -l config -d "Modify/get persistent configuration"
311complete -c virsh -n "__fish_seen_subcommand_from desc" -l current -d "Modify/get current state configuration"
312complete -c virsh -n "__fish_seen_subcommand_from desc" -l title -d "Modify/get the title instead of description"
313complete -c virsh -n "__fish_seen_subcommand_from desc" -l edit -d "Open an editor to modify the description"
314
315# virsh destroy
316complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a destroy -d "Destroy (stop) a domain"
317complete -c virsh -n "__fish_seen_subcommand_from destroy" -l graceful -d "Terminate gracefully"
318
319# virsh detach-device
320complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a detach-device -d "Detach device from an XML file"
321complete -c virsh -n "__fish_seen_subcommand_from detach-device" -l persistent -d "Make live change persistent"
322complete -c virsh -n "__fish_seen_subcommand_from detach-device" -l config -d "Affect next boot"
323complete -c virsh -n "__fish_seen_subcommand_from detach-device" -l live -d "Affect running domain"
324complete -c virsh -n "__fish_seen_subcommand_from detach-device" -l current -d "Affect current domain"
325
326# virsh detach-disk
327complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a detach-disk -d "Detach disk device"
328complete -c virsh -n "__fish_seen_subcommand_from detach-disk" -l persistent -d "Make live change persistent"
329complete -c virsh -n "__fish_seen_subcommand_from detach-disk" -l config -d "Affect next boot"
330complete -c virsh -n "__fish_seen_subcommand_from detach-disk" -l live -d "Affect running domain"
331complete -c virsh -n "__fish_seen_subcommand_from detach-disk" -l current -d "Affect current domain"
332
333# virsh detach-interface
334complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a detach-interface -d "Detach network interface"
335complete -c virsh -n "__fish_seen_subcommand_from detach-interface" -l mac -d "MAC address"
336complete -c virsh -n "__fish_seen_subcommand_from detach-interface" -l persistent -d "Make live change persistent"
337complete -c virsh -n "__fish_seen_subcommand_from detach-interface" -l config -d "Affect next boot"
338complete -c virsh -n "__fish_seen_subcommand_from detach-interface" -l live -d "Affect running domain"
339complete -c virsh -n "__fish_seen_subcommand_from detach-interface" -l current -d "Affect current domain"
340
341# virsh domdisplay
342complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a domdisplay -d "Domain display connection URI"
343complete -c virsh -n "__fish_seen_subcommand_from domdisplay" -l include-password -d "Includes the password into the connection URI if available"
344complete -c virsh -n "__fish_seen_subcommand_from domdisplay" -l type -d "Select particular graphical display (e.g. "vnc", "spice", "rdp")"
345complete -c virsh -n "__fish_seen_subcommand_from domdisplay" -l all -d "Show all possible graphical displays"
346
347# virsh domfsfreeze
348complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a domfsfreeze -d "Freeze domain's mounted filesystems"
349
350# virsh domfsthaw
351complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a domfsthaw -d "Thaw domain's mounted filesystems"
352
353# virsh domfsinfo
354complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a domfsinfo -d "Get information of domain's mounted filesystems"
355
356# virsh domfstrim
357complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a domfstrim -d "Invoke fstrim on domain's mounted filesystems"
358complete -c virsh -n "__fish_seen_subcommand_from domfstrim" -l minimum -d "Just a hint to ignore contiguous free ranges smaller than this (Bytes)"
359complete -c virsh -n "__fish_seen_subcommand_from domfstrim" -l mountpoint -d "Which mount point to trim"
360
361# virsh domhostname
362complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a domhostname -d "Print the domain's hostname"
363
364# virsh domid
365complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a domid -d "Convert a domain name or UUID to domain id"
366
367# virsh domif-setlink
368complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a domif-setlink -d "Set link state of a virtual interface"
369complete -c virsh -n "__fish_seen_subcommand_from domif-setlink" -l config -d "Affect next boot"
370
371# virsh domiftune
372complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a domiftune -d "Get/set parameters of a virtual interface"
373complete -c virsh -n "__fish_seen_subcommand_from domiftune" -l inbound -d "Control domain's incoming traffics"
374complete -c virsh -n "__fish_seen_subcommand_from domiftune" -l outbound -d "Control domain's outgoing traffics"
375complete -c virsh -n "__fish_seen_subcommand_from domiftune" -l config -d "Affect next boot"
376complete -c virsh -n "__fish_seen_subcommand_from domiftune" -l live -d "Affect running domain"
377complete -c virsh -n "__fish_seen_subcommand_from domiftune" -l current -d "Affect current domain"
378
379# virsh domjobabort
380complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a domjobabort -d "Abort active domain job"
381
382# virsh domjobinfo
383complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a domjobinfo -d "Domain job information"
384complete -c virsh -n "__fish_seen_subcommand_from domjobinfo" -l completed -d "Return statistics of a recently completed job"
385
386# virsh domname
387complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a domname -d "Convert a domain id or UUID to domain name"
388
389# virsh domrename
390complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a domrename -d "Rename a domain"
391complete -c virsh -n "__fish_seen_subcommand_from domrename" -a '(__fish_virsh_get_domains)' -x
392
393# virsh dompmsuspend
394complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a dompmsuspend -d "Suspend a domain gracefully using power management functions"
395complete -c virsh -n "__fish_seen_subcommand_from dompmsuspend" -l duration -d "Duration in seconds"
396complete -c virsh -n "__fish_seen_subcommand_from dompmsuspend" -a '(__fish_virsh_get_domains running)' -x
397
398# virsh dompmwakeup
399complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a dompmwakeup -d "Wakeup a domain from pmsuspended state"
400complete -c virsh -n "__fish_seen_subcommand_from dompmwakeup" -a '(__fish_virsh_get_domains paused)' -x
401
402# virsh domuuid
403complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a domuuid -d "Convert a domain name or id to domain UUID"
404complete -c virsh -n "__fish_seen_subcommand_from domuuid" -a '(__fish_virsh_get_domains)' -x
405
406# virsh domxml-from-native
407complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a domxml-from-native -d "Convert native config to domain XML"
408
409# virsh domxml-to-native
410complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a domxml-to-native -d "Convert domain XML to native config"
411complete -c virsh -n "__fish_seen_subcommand_from domxml-to-native" -l domain -d "Domain name, id or UUID"
412complete -c virsh -n "__fish_seen_subcommand_from domxml-to-native" -l xml -d "Xml data file to export from"
413
414# virsh dump
415complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a dump -d "Dump the core of a domain to a file for analysis"
416complete -c virsh -n "__fish_seen_subcommand_from dump" -l live -d "Perform a live core dump if supported"
417complete -c virsh -n "__fish_seen_subcommand_from dump" -l crash -d "Crash the domain after core dump"
418complete -c virsh -n "__fish_seen_subcommand_from dump" -l bypass-cache -d "Avoid file system cache when dumping"
419complete -c virsh -n "__fish_seen_subcommand_from dump" -l reset -d "Reset the domain after core dump"
420complete -c virsh -n "__fish_seen_subcommand_from dump" -l verbose -d "Display the progress of dump"
421complete -c virsh -n "__fish_seen_subcommand_from dump" -l memory-only -d "Dump domain's memory only"
422complete -c virsh -n "__fish_seen_subcommand_from dump" -l format -d "Specify the format of memory-only dump"
423
424# virsh dumpxml
425complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a dumpxml -d "Domain information in XML"
426complete -c virsh -n "__fish_seen_subcommand_from dumpxml" -a '(__fish_virsh_get_domains)' -x
427complete -c virsh -n "__fish_seen_subcommand_from dumpxml" -l inactive -d "Show inactive defined XML"
428complete -c virsh -n "__fish_seen_subcommand_from dumpxml" -l security-info -d "Include security sensitive information in XML dump"
429complete -c virsh -n "__fish_seen_subcommand_from dumpxml" -l update-cpu -d "Update guest CPU according to host CPU"
430complete -c virsh -n "__fish_seen_subcommand_from dumpxml" -l migratable -d "Provide XML suitable for migrations"
431
432# virsh edit
433complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a edit -d "Edit XML configuration for a domain"
434complete -c virsh -n "__fish_seen_subcommand_from edit" -a '(__fish_virsh_get_domains)' -x
435complete -c virsh -n "__fish_seen_subcommand_from edit" -l skip-validate -d "Skip validation of the XML against the schema"
436
437# virsh event
438complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a event -d "Domain Events"
439complete -c virsh -n "__fish_seen_subcommand_from event" -l domain -d "Filter by domain name, id, or UUID"
440complete -c virsh -n "__fish_seen_subcommand_from event" -l event -d "Which event type to wait for"
441complete -c virsh -n "__fish_seen_subcommand_from event" -l all -d "Wait for all events instead of just one type"
442complete -c virsh -n "__fish_seen_subcommand_from event" -l loop -d "Loop until timeout or interrupt, rather than one-shot"
443complete -c virsh -n "__fish_seen_subcommand_from event" -l timeout -d "Timeout seconds"
444complete -c virsh -n "__fish_seen_subcommand_from event" -l list -d "List valid event types"
445complete -c virsh -n "__fish_seen_subcommand_from event" -l timestamp -d "Show timestamp for each printed event"
446
447# virsh inject-nmi
448complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a inject-nmi -d "Inject NMI to the guest"
449
450# virsh iothreadinfo
451complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a iothreadinfo -d "View domain IOThreads"
452complete -c virsh -n "__fish_seen_subcommand_from iothreadinfo" -l config -d "Affect next boot"
453complete -c virsh -n "__fish_seen_subcommand_from iothreadinfo" -l live -d "Affect running domain"
454complete -c virsh -n "__fish_seen_subcommand_from iothreadinfo" -l current -d "Affect current domain"
455
456# virsh iothreadpin
457complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a iothreadpin -d "Control domain IOThread affinity"
458complete -c virsh -n "__fish_seen_subcommand_from iothreadpin" -l config -d "Affect next boot"
459complete -c virsh -n "__fish_seen_subcommand_from iothreadpin" -l live -d "Affect running domain"
460complete -c virsh -n "__fish_seen_subcommand_from iothreadpin" -l current -d "Affect current domain"
461
462# virsh iothreadadd
463complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a iothreadadd -d "Add an IOThread to the guest domain"
464complete -c virsh -n "__fish_seen_subcommand_from iothreadadd" -l config -d "Affect next boot"
465complete -c virsh -n "__fish_seen_subcommand_from iothreadadd" -l live -d "Affect running domain"
466complete -c virsh -n "__fish_seen_subcommand_from iothreadadd" -l current -d "Affect current domain"
467
468# virsh iothreaddel
469complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a iothreaddel -d "Delete an IOThread from the guest domain"
470complete -c virsh -n "__fish_seen_subcommand_from iothreaddel" -l config -d "Affect next boot"
471complete -c virsh -n "__fish_seen_subcommand_from iothreaddel" -l live -d "Affect running domain"
472complete -c virsh -n "__fish_seen_subcommand_from iothreaddel" -l current -d "Affect current domain"
473
474# virsh send-key
475complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a send-key -d "Send keycodes to the guest"
476complete -c virsh -n "__fish_seen_subcommand_from send-key" -l codeset -d "The codeset of keycodes, default:linux"
477complete -c virsh -n "__fish_seen_subcommand_from send-key" -l holdtime -d "The time (in milliseconds) how long the keys will be held"
478
479# virsh send-process-signal
480complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a send-process-signal -d "Send signals to processes"
481
482# virsh lxc-enter-namespace
483complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a lxc-enter-namespace -d "LXC Guest Enter Namespace"
484complete -c virsh -n "__fish_seen_subcommand_from lxc-enter-namespace" -l noseclabel -d "Do not change process security label"
485
486# virsh managedsave
487complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a managedsave -d "Managed save of a domain state"
488complete -c virsh -n "__fish_seen_subcommand_from managedsave" -l bypass-cache -d "Avoid file system cache when saving"
489complete -c virsh -n "__fish_seen_subcommand_from managedsave" -l running -d "Set domain to be running on next start"
490complete -c virsh -n "__fish_seen_subcommand_from managedsave" -l paused -d "Set domain to be paused on next start"
491complete -c virsh -n "__fish_seen_subcommand_from managedsave" -l verbose -d "Display the progress of save"
492
493# virsh managedsave-remove
494complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a managedsave-remove -d "Remove managed save of a domain"
495
496# virsh managedsave-edit
497complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a managedsave-edit -d "Edit XML for a domain's managed save state file"
498complete -c virsh -n "__fish_seen_subcommand_from managedsave-edit" -l running -d "Set domain to be running on start"
499complete -c virsh -n "__fish_seen_subcommand_from managedsave-edit" -l paused -d "Set domain to be paused on start"
500
501# virsh managedsave-dumpxml
502complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a managedsave-dumpxml -d "Domain information of managed save state file in XML"
503complete -c virsh -n "__fish_seen_subcommand_from managedsave-dumpxml" -l security-info -d "Include security sensitive information in XML dump"
504
505# virsh managedsave-define
506complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a managedsave-define -d "Redefine the XML for a domain's managed save state file"
507complete -c virsh -n "__fish_seen_subcommand_from managedsave-define" -l running -d "Set domain to be running on start"
508complete -c virsh -n "__fish_seen_subcommand_from managedsave-define" -l paused -d "Set domain to be paused on start"
509
510# virsh memtune
511complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a memtune -d "Get or set memory parameters"
512complete -c virsh -n "__fish_seen_subcommand_from memtune" -l hard-limit -d "Max memory, as scaled integer (default KiB)"
513complete -c virsh -n "__fish_seen_subcommand_from memtune" -l soft-limit -d "Memory during contention, as scaled integer (default KiB)"
514complete -c virsh -n "__fish_seen_subcommand_from memtune" -l swap-hard-limit -d "Max memory plus swap, as scaled integer (default KiB)"
515complete -c virsh -n "__fish_seen_subcommand_from memtune" -l min-guarantee -d "Min guaranteed memory, as scaled integer (default KiB)"
516complete -c virsh -n "__fish_seen_subcommand_from memtune" -l config -d "Affect next boot"
517complete -c virsh -n "__fish_seen_subcommand_from memtune" -l live -d "Affect running domain"
518complete -c virsh -n "__fish_seen_subcommand_from memtune" -l current -d "Affect current domain"
519
520# virsh perf
521complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a perf -d "Get or set perf event"
522complete -c virsh -n "__fish_seen_subcommand_from perf" -l enable -d "Perf events which will be enabled"
523complete -c virsh -n "__fish_seen_subcommand_from perf" -l disable -d "Perf events which will be disabled"
524complete -c virsh -n "__fish_seen_subcommand_from perf" -l config -d "Affect next boot"
525complete -c virsh -n "__fish_seen_subcommand_from perf" -l live -d "Affect running domain"
526complete -c virsh -n "__fish_seen_subcommand_from perf" -l current -d "Affect current domain"
527
528# virsh metadata
529complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a metadata -d "Show or set domain's custom XML metadata"
530complete -c virsh -n "__fish_seen_subcommand_from metadata" -l live -d "Modify/get running state"
531complete -c virsh -n "__fish_seen_subcommand_from metadata" -l config -d "Modify/get persistent configuration"
532complete -c virsh -n "__fish_seen_subcommand_from metadata" -l current -d "Modify/get current state configuration"
533complete -c virsh -n "__fish_seen_subcommand_from metadata" -l edit -d "Use an editor to change the metadata"
534complete -c virsh -n "__fish_seen_subcommand_from metadata" -l key -d "Key to be used as a namespace identifier"
535complete -c virsh -n "__fish_seen_subcommand_from metadata" -l set -d "New metadata to set"
536complete -c virsh -n "__fish_seen_subcommand_from metadata" -l remove -d "Remove the metadata corresponding to an uri"
537
538# virsh migrate
539complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a migrate -d "Migrate domain to another host"
540complete -c virsh -n "__fish_seen_subcommand_from migrate" -l live -d "Live migration"
541complete -c virsh -n "__fish_seen_subcommand_from migrate" -l offline -d "Offline migration"
542complete -c virsh -n "__fish_seen_subcommand_from migrate" -l p2p -d "Peer-2-peer migration"
543complete -c virsh -n "__fish_seen_subcommand_from migrate" -l direct -d "Direct migration"
544complete -c virsh -n "__fish_seen_subcommand_from migrate" -l tunnelled -d "Tunnelled migration"
545complete -c virsh -n "__fish_seen_subcommand_from migrate" -l persistent -d "Persist VM on destination"
546complete -c virsh -n "__fish_seen_subcommand_from migrate" -l undefinesource -d "Undefine VM on source"
547complete -c virsh -n "__fish_seen_subcommand_from migrate" -l suspend -d "Do not restart the domain on the destination host"
548complete -c virsh -n "__fish_seen_subcommand_from migrate" -l copy-storage-all -d "Migration with non-shared storage with full disk copy"
549complete -c virsh -n "__fish_seen_subcommand_from migrate" -l copy-storage-inc -d "Migration with non-shared storage with incremental copy"
550complete -c virsh -n "__fish_seen_subcommand_from migrate" -l change-protection -d "Prevent any configuration changes to domain until migration ends"
551complete -c virsh -n "__fish_seen_subcommand_from migrate" -l unsafe -d "Force migration even if it may be unsafe"
552complete -c virsh -n "__fish_seen_subcommand_from migrate" -l verbose -d "Display the progress of migration"
553complete -c virsh -n "__fish_seen_subcommand_from migrate" -l compressed -d "Compress repeated pages during live migration"
554complete -c virsh -n "__fish_seen_subcommand_from migrate" -l auto-converge -d "Force convergence during live migration"
555complete -c virsh -n "__fish_seen_subcommand_from migrate" -l rdma-pin-all -d "Pin all memory before starting RDMA live migration"
556complete -c virsh -n "__fish_seen_subcommand_from migrate" -l abort-on-error -d "Abort on soft errors during migration"
557complete -c virsh -n "__fish_seen_subcommand_from migrate" -l postcopy -d "Enable post-copy migration; switch to it using migrate-postcopy command"
558complete -c virsh -n "__fish_seen_subcommand_from migrate" -l postcopy-after-precopy -d "Automatically switch to post-copy migration after one pass of pre-copy"
559complete -c virsh -n "__fish_seen_subcommand_from migrate" -l migrateuri -d "Migration URI, usually can be omitted"
560complete -c virsh -n "__fish_seen_subcommand_from migrate" -l graphicsuri -d "Graphics URI to be used for seamless graphics migration"
561complete -c virsh -n "__fish_seen_subcommand_from migrate" -l listen-address -d "Listen address that destination should bind to for incoming migration"
562complete -c virsh -n "__fish_seen_subcommand_from migrate" -l dname -d "Rename to new name during migration"
563complete -c virsh -n "__fish_seen_subcommand_from migrate" -l timeout -d "Run action specified by --timeout-* if live migration exceeds timeout"
564complete -c virsh -n "__fish_seen_subcommand_from migrate" -l timeout-suspend -d "Suspend the guest after timeout"
565complete -c virsh -n "__fish_seen_subcommand_from migrate" -l timeout-postcopy -d "Switch to post-copy after timeout"
566complete -c virsh -n "__fish_seen_subcommand_from migrate" -l xml -d "Filename containing updated XML for the target"
567complete -c virsh -n "__fish_seen_subcommand_from migrate" -l migrate-disks -d "Comma separated list of disks to be migrated"
568complete -c virsh -n "__fish_seen_subcommand_from migrate" -l disks-port -d "Port to use by target server for incoming disks migration"
569complete -c virsh -n "__fish_seen_subcommand_from migrate" -l comp-methods -d "Comma separated list of compression methods to be used"
570complete -c virsh -n "__fish_seen_subcommand_from migrate" -l comp-mt-level -d "Compress level for multithread compression"
571complete -c virsh -n "__fish_seen_subcommand_from migrate" -l comp-mt-threads -d "Number of compression threads for multithread compression"
572complete -c virsh -n "__fish_seen_subcommand_from migrate" -l comp-mt-dthreads -d "Number of decompression threads for multithread compression"
573complete -c virsh -n "__fish_seen_subcommand_from migrate" -l comp-xbzrle-cache -d "Page cache size for xbzrle compression"
574complete -c virsh -n "__fish_seen_subcommand_from migrate" -l auto-converge-initial -d "Initial CPU throttling rate for auto-convergence"
575complete -c virsh -n "__fish_seen_subcommand_from migrate" -l auto-converge-increment -d "CPU throttling rate increment for auto-convergence"
576complete -c virsh -n "__fish_seen_subcommand_from migrate" -l persistent-xml -d "Filename containing updated persistent XML for the target"
577complete -c virsh -n "__fish_seen_subcommand_from migrate" -l tls -d "Use TLS for migration"
578
579# virsh migrate-setmaxdowntime
580complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a migrate-setmaxdowntime -d "Set maximum tolerable downtime"
581
582# virsh migrate-getmaxdowntime
583complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a migrate-getmaxdowntime -d "Get maximum tolerable downtime"
584
585# virsh migrate-compcache
586complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a migrate-compcache -d "Get/set compression cache size"
587complete -c virsh -n "__fish_seen_subcommand_from migrate-compcache" -l size -d "Requested size of the cache (in bytes) used for compression"
588
589# virsh migrate-setspeed
590complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a migrate-setspeed -d "Set the maximum migration bandwidth"
591
592# virsh migrate-getspeed
593complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a migrate-getspeed -d "Get the maximum migration bandwidth"
594
595# virsh migrate-postcopy
596complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a migrate-postcopy -d "Switch running migration from pre-copy to post-copy"
597
598# virsh numatune
599complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a numatune -d "Get or set numa parameters"
600complete -c virsh -n "__fish_seen_subcommand_from numatune" -l mode -d "NUMA mode, one of strict, preferred and interleave"
601complete -c virsh -n "__fish_seen_subcommand_from numatune" -l nodeset -d "NUMA node selections to set"
602complete -c virsh -n "__fish_seen_subcommand_from numatune" -l config -d "Affect next boot"
603complete -c virsh -n "__fish_seen_subcommand_from numatune" -l live -d "Affect running domain"
604complete -c virsh -n "__fish_seen_subcommand_from numatune" -l current -d "Affect current domain"
605
606# virsh qemu-attach
607complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a qemu-attach -d "QEMU Attach"
608
609# virsh qemu-monitor-command
610complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a qemu-monitor-command -d "QEMU Monitor Command"
611complete -c virsh -n "__fish_seen_subcommand_from qemu-monitor-command" -l hmp -d "Command is in human monitor protocol"
612complete -c virsh -n "__fish_seen_subcommand_from qemu-monitor-command" -l pretty -d "Pretty-print any qemu monitor protocol output"
613
614# virsh qemu-monitor-event
615complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a qemu-monitor-event -d "QEMU Monitor Events"
616complete -c virsh -n "__fish_seen_subcommand_from qemu-monitor-event" -l domain -d "Filter by domain name, id or UUID"
617complete -c virsh -n "__fish_seen_subcommand_from qemu-monitor-event" -l event -d "Filter by event name"
618complete -c virsh -n "__fish_seen_subcommand_from qemu-monitor-event" -l pretty -d "Pretty-print any JSON output"
619complete -c virsh -n "__fish_seen_subcommand_from qemu-monitor-event" -l loop -d "Loop until timeout or interrupt, rather than one-shot"
620complete -c virsh -n "__fish_seen_subcommand_from qemu-monitor-event" -l timeout -d "Timeout seconds"
621complete -c virsh -n "__fish_seen_subcommand_from qemu-monitor-event" -l regex -d "Treat event as a regex rather than literal filter"
622complete -c virsh -n "__fish_seen_subcommand_from qemu-monitor-event" -l no-case -d "Treat event case-insensitively"
623complete -c virsh -n "__fish_seen_subcommand_from qemu-monitor-event" -l timestamp -d "Show timestamp for each printed event"
624
625# virsh qemu-agent-command
626complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a qemu-agent-command -d "QEMU Guest Agent Command"
627complete -c virsh -n "__fish_seen_subcommand_from qemu-agent-command" -l timeout -d "Timeout seconds. must be positive"
628complete -c virsh -n "__fish_seen_subcommand_from qemu-agent-command" -l async -d "Execute command without waiting for timeout"
629complete -c virsh -n "__fish_seen_subcommand_from qemu-agent-command" -l block -d "Execute command without timeout"
630complete -c virsh -n "__fish_seen_subcommand_from qemu-agent-command" -l pretty -d "Pretty-print the output"
631
632# virsh reboot
633complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a reboot -d "Reboot a domain"
634complete -c virsh -n "__fish_seen_subcommand_from reboot" -l mode -d "Shutdown mode" -x -a "acpi agent initctl signal paravirt"
635complete -c virsh -n "__fish_seen_subcommand_from reboot" -a '(__fish_virsh_get_domains running)' -x
636
637# virsh reset
638complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a reset -d "Reset a domain"
639
640# virsh restore
641complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a restore -d "Restore a domain from a saved state in a file"
642complete -c virsh -n "__fish_seen_subcommand_from restore" -l bypass-cache -d "Avoid file system cache when restoring"
643complete -c virsh -n "__fish_seen_subcommand_from restore" -l xml -d "Filename containing updated XML for the target"
644complete -c virsh -n "__fish_seen_subcommand_from restore" -l running -d "Restore domain into running state"
645complete -c virsh -n "__fish_seen_subcommand_from restore" -l paused -d "Restore domain into paused state"
646
647# virsh resume
648complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a resume -d "Resume a domain"
649complete -c virsh -n "__fish_seen_subcommand_from resume" -a '(__fish_virsh_get_domains paused)' -x
650
651# virsh save
652complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a save -d "Save a domain state to a file"
653complete -c virsh -n "__fish_seen_subcommand_from save" -a '(__fish_virsh_get_domains running)' -x
654complete -c virsh -n "__fish_seen_subcommand_from save" -l bypass-cache -d "Avoid file system cache when saving"
655complete -c virsh -n "__fish_seen_subcommand_from save" -l xml -d "Filename containing updated XML for the target"
656complete -c virsh -n "__fish_seen_subcommand_from save" -l running -d "Set domain to be running on restore"
657complete -c virsh -n "__fish_seen_subcommand_from save" -l paused -d "Set domain to be paused on restore"
658complete -c virsh -n "__fish_seen_subcommand_from save" -l verbose -d "Display the progress of save"
659
660# virsh save-image-define
661complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a save-image-define -d "Redefine the XML for a domain's saved state file"
662complete -c virsh -n "__fish_seen_subcommand_from save-image-define" -l running -d "Set domain to be running on restore"
663complete -c virsh -n "__fish_seen_subcommand_from save-image-define" -l paused -d "Set domain to be paused on restore"
664
665# virsh save-image-dumpxml
666complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a save-image-dumpxml -d "Saved state domain information in XML"
667complete -c virsh -n "__fish_seen_subcommand_from save-image-dumpxml" -l security-info -d "Include security sensitive information in XML dump"
668
669# virsh save-image-edit
670complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a save-image-edit -d "Edit XML for a domain's saved state file"
671complete -c virsh -n "__fish_seen_subcommand_from save-image-edit" -l running -d "Set domain to be running on restore"
672complete -c virsh -n "__fish_seen_subcommand_from save-image-edit" -l paused -d "Set domain to be paused on restore"
673
674# virsh schedinfo
675complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a schedinfo -d "Show/set scheduler parameters"
676complete -c virsh -n "__fish_seen_subcommand_from shechinfo" -a '(__fish_virsh_get_domains)' -x
677complete -c virsh -n "__fish_seen_subcommand_from schedinfo" -l weight -d "Weight for XEN_CREDIT"
678complete -c virsh -n "__fish_seen_subcommand_from schedinfo" -l cap -d "Cap for XEN_CREDIT"
679complete -c virsh -n "__fish_seen_subcommand_from schedinfo" -l current -d "Get/set current scheduler info"
680complete -c virsh -n "__fish_seen_subcommand_from schedinfo" -l config -d "Get/set value to be used on next boot"
681complete -c virsh -n "__fish_seen_subcommand_from schedinfo" -l live -d "Get/set value from running domain"
682
683# virsh screenshot
684complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a screenshot -d "Take a screenshot of a current domain console and store it into a file"
685complete -c virsh -n "__fish_seen_subcommand_from screenshot" -l file -d "Where to store the screenshot"
686complete -c virsh -n "__fish_seen_subcommand_from screenshot" -l screen -d "ID of a screen to take screenshot of"
687
688# virsh set-lifecycle-action
689complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a set-lifecycle-action -d "Change lifecycle actions"
690complete -c virsh -n "__fish_seen_subcommand_from set-lifecycle-action" -l config -d "Affect next boot"
691complete -c virsh -n "__fish_seen_subcommand_from set-lifecycle-action" -l live -d "Affect running domain"
692complete -c virsh -n "__fish_seen_subcommand_from set-lifecycle-action" -l current -d "Affect current domain"
693
694# virsh set-user-password
695complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a set-user-password -d "Set the user password inside the domain"
696complete -c virsh -n "__fish_seen_subcommand_from set-user-password" -l encrypted -d "The password is already encrypted"
697
698# virsh setmaxmem
699complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a setmaxmem -d "Change maximum memory limit"
700complete -c virsh -n "__fish_seen_subcommand_from setmaxmem" -l config -d "Affect next boot"
701complete -c virsh -n "__fish_seen_subcommand_from setmaxmem" -l live -d "Affect running domain"
702complete -c virsh -n "__fish_seen_subcommand_from setmaxmem" -l current -d "Affect current domain"
703
704# virsh setmem
705complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a setmem -d "Change memory allocation"
706complete -c virsh -n "__fish_seen_subcommand_from setmem" -l config -d "Affect next boot"
707complete -c virsh -n "__fish_seen_subcommand_from setmem" -l live -d "Affect running domain"
708complete -c virsh -n "__fish_seen_subcommand_from setmem" -l current -d "Affect current domain"
709
710# virsh setvcpus
711complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a setvcpus -d "Change number of virtual CPUs"
712complete -c virsh -n "__fish_seen_subcommand_from setvcpus" -l maximum -d "Set maximum limit on next boot"
713complete -c virsh -n "__fish_seen_subcommand_from setvcpus" -l config -d "Affect next boot"
714complete -c virsh -n "__fish_seen_subcommand_from setvcpus" -l live -d "Affect running domain"
715complete -c virsh -n "__fish_seen_subcommand_from setvcpus" -l current -d "Affect current domain"
716complete -c virsh -n "__fish_seen_subcommand_from setvcpus" -l guest -d "Modify cpu state in the guest"
717complete -c virsh -n "__fish_seen_subcommand_from setvcpus" -l hotpluggable -d "Make added vcpus hot(un)pluggable"
718
719# virsh shutdown
720complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a shutdown -d "Gracefully shutdown a domain"
721complete -c virsh -n "__fish_seen_subcommand_from shutdown" -a '(__fish_virsh_get_domains running)' -x
722complete -c virsh -n "__fish_seen_subcommand_from shutdown" -l mode -d "Shutdown mode" -x -a "acpi agent initctl signal paravirt"
723
724# virsh start
725complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a start -d "Start a (previously defined) inactive domain"
726complete -c virsh -n "__fish_seen_subcommand_from start" -a '(__fish_virsh_get_domains inactive)' -x
727complete -c virsh -n "__fish_seen_subcommand_from start" -l console -d "Attach to console after creation"
728complete -c virsh -n "__fish_seen_subcommand_from start" -l paused -d "Leave the guest paused after creation"
729complete -c virsh -n "__fish_seen_subcommand_from start" -l autodestroy -d "Automatically destroy the guest when virsh disconnects"
730complete -c virsh -n "__fish_seen_subcommand_from start" -l bypass-cache -d "Avoid file system cache when loading"
731complete -c virsh -n "__fish_seen_subcommand_from start" -l force-boot -d "Force fresh boot by discarding any managed save"
732complete -c virsh -n "__fish_seen_subcommand_from start" -l pass-fds -d "Pass file descriptors N,M,... to the guest"
733
734# virsh suspend
735complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a suspend -d "Suspend a domain"
736complete -c virsh -n "__fish_seen_subcommand_from suspend" -a '(__fish_virsh_get_domains running)' -x
737
738# virsh ttyconsole
739complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a ttyconsole -d "TTY console"
740
741# virsh undefine
742complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a undefine -d "Undefine a domain"
743complete -c virsh -n "__fish_seen_subcommand_from undefine" -l managed-save -d "Remove domain managed state file"
744complete -c virsh -n "__fish_seen_subcommand_from undefine" -l storage -d "Remove associated storage volumes"
745complete -c virsh -n "__fish_seen_subcommand_from undefine" -l remove-all-storage -d "Remove all associated storage volumes"
746complete -c virsh -n "__fish_seen_subcommand_from undefine" -l delete-snapshots -d "Delete snapshots associated with volume(s)"
747complete -c virsh -n "__fish_seen_subcommand_from undefine" -l wipe-storage -d "Wipe data on the removed volumes"
748complete -c virsh -n "__fish_seen_subcommand_from undefine" -l snapshots-metadata -d "Remove all domain snapshot metadata, if inactive"
749complete -c virsh -n "__fish_seen_subcommand_from undefine" -l nvram -d "Remove nvram file, if inactive"
750complete -c virsh -n "__fish_seen_subcommand_from undefine" -l keep-nvram -d "Keep nvram file, if inactive"
751
752# virsh update-device
753complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a update-device -d "Update device from an XML file"
754complete -c virsh -n "__fish_seen_subcommand_from update-device" -l persistent -d "Make live change persistent"
755complete -c virsh -n "__fish_seen_subcommand_from update-device" -l config -d "Affect next boot"
756complete -c virsh -n "__fish_seen_subcommand_from update-device" -l live -d "Affect running domain"
757complete -c virsh -n "__fish_seen_subcommand_from update-device" -l current -d "Affect current domain"
758complete -c virsh -n "__fish_seen_subcommand_from update-device" -l force -d "Force device update"
759
760# virsh vcpucount
761complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a vcpucount -d "Domain vcpu counts"
762complete -c virsh -n "__fish_seen_subcommand_from vcpucount" -l maximum -d "Get maximum count of vcpus"
763complete -c virsh -n "__fish_seen_subcommand_from vcpucount" -l active -d "Get number of currently active vcpus"
764complete -c virsh -n "__fish_seen_subcommand_from vcpucount" -l live -d "Get value from running domain"
765complete -c virsh -n "__fish_seen_subcommand_from vcpucount" -l config -d "Get value to be used on next boot"
766complete -c virsh -n "__fish_seen_subcommand_from vcpucount" -l current -d "Get value according to current domain state"
767complete -c virsh -n "__fish_seen_subcommand_from vcpucount" -l guest -d "Retrieve vcpu count from the guest instead of the hypervisor"
768
769# virsh vcpuinfo
770complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a vcpuinfo -d "Detailed domain vcpu information"
771complete -c virsh -n "__fish_seen_subcommand_from vcpuinfo" -l pretty -d "Return human readable output"
772
773# virsh vcpupin
774complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a vcpupin -d "Control or query domain vcpu affinity"
775complete -c virsh -n "__fish_seen_subcommand_from vcpupin" -l vcpu -d "Vcpu number"
776complete -c virsh -n "__fish_seen_subcommand_from vcpupin" -l cpulist -d "Host cpu number(s) to set, or omit option to query"
777complete -c virsh -n "__fish_seen_subcommand_from vcpupin" -l config -d "Affect next boot"
778complete -c virsh -n "__fish_seen_subcommand_from vcpupin" -l live -d "Affect running domain"
779complete -c virsh -n "__fish_seen_subcommand_from vcpupin" -l current -d "Affect current domain"
780
781# virsh emulatorpin
782complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a emulatorpin -d "Control or query domain emulator affinity"
783complete -c virsh -n "__fish_seen_subcommand_from emulatorpin" -l cpulist -d "Host cpu number(s) to set, or omit option to query"
784complete -c virsh -n "__fish_seen_subcommand_from emulatorpin" -l config -d "Affect next boot"
785complete -c virsh -n "__fish_seen_subcommand_from emulatorpin" -l live -d "Affect running domain"
786complete -c virsh -n "__fish_seen_subcommand_from emulatorpin" -l current -d "Affect current domain"
787
788# virsh vncdisplay
789complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a vncdisplay -d "Vnc display"
790
791# virsh guestvcpus
792complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a guestvcpus -d "Query or modify state of vcpu in the guest (via agent)"
793complete -c virsh -n "__fish_seen_subcommand_from guestvcpus" -l cpulist -d "List of cpus to enable or disable"
794complete -c virsh -n "__fish_seen_subcommand_from guestvcpus" -l enable -d "Enable cpus specified by cpulist"
795complete -c virsh -n "__fish_seen_subcommand_from guestvcpus" -l disable -d "Disable cpus specified by cpulist"
796
797# virsh setvcpu
798complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a setvcpu -d "Attach/detach vcpu or groups of threads"
799complete -c virsh -n "__fish_seen_subcommand_from setvcpu" -l enable -d "Enable cpus specified by cpumap"
800complete -c virsh -n "__fish_seen_subcommand_from setvcpu" -l disable -d "Disable cpus specified by cpumap"
801complete -c virsh -n "__fish_seen_subcommand_from setvcpu" -l config -d "Affect next boot"
802complete -c virsh -n "__fish_seen_subcommand_from setvcpu" -l live -d "Affect running domain"
803complete -c virsh -n "__fish_seen_subcommand_from setvcpu" -l current -d "Affect current domain"
804
805# virsh domblkthreshold
806complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a domblkthreshold -d "Set the threshold for block-threshold event"
807
808# virsh domblkerror
809complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a domblkerror -d "Show errors on block devices"
810
811# virsh domblkinfo
812complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a domblkinfo -d "Domain block device size information"
813complete -c virsh -n "__fish_seen_subcommand_from domblkinfo" -l human -d "Human readable output"
814
815# virsh domblklist
816complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a domblklist -d "List all domain blocks"
817complete -c virsh -n "__fish_seen_subcommand_from domblklist" -l inactive -d "Get inactive rather than running configuration"
818complete -c virsh -n "__fish_seen_subcommand_from domblklist" -l details -d "Additionally display the type and device value"
819
820# virsh domblkstat
821complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a domblkstat -d "Get device block stats for a domain"
822complete -c virsh -n "__fish_seen_subcommand_from domblkstat" -l device -d "Block device"
823complete -c virsh -n "__fish_seen_subcommand_from domblkstat" -l human -d "Print a more human readable output"
824
825# virsh domcontrol
826complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a domcontrol -d "Domain control interface state"
827
828# virsh domif-getlink
829complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a domif-getlink -d "Get link state of a virtual interface"
830complete -c virsh -n "__fish_seen_subcommand_from domif-getlink" -l config -d "Get persistent interface state"
831
832# virsh domifaddr
833complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a domifaddr -d "Get network interfaces' addresses for a running domain"
834complete -c virsh -n "__fish_seen_subcommand_from domifaddr" -l interface -d "Network interface name"
835complete -c virsh -n "__fish_seen_subcommand_from domifaddr" -l full -d "Always display names and MACs of interfaces"
836complete -c virsh -n "__fish_seen_subcommand_from domifaddr" -l source -d "Address source: 'lease' or 'agent'"
837
838# virsh domiflist
839complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a domiflist -d "List all domain virtual interfaces"
840complete -c virsh -n "__fish_seen_subcommand_from domiflist" -l inactive -d "Get inactive rather than running configuration"
841
842# virsh domifstat
843complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a domifstat -d "Get network interface stats for a domain"
844
845# virsh dominfo
846complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a dominfo -d "Domain information"
847
848# virsh dommemstat
849complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a dommemstat -d "Get memory statistics for a domain"
850complete -c virsh -n "__fish_seen_subcommand_from dommemstat" -l period -d "Period in seconds to set collection"
851complete -c virsh -n "__fish_seen_subcommand_from dommemstat" -l config -d "Affect next boot"
852complete -c virsh -n "__fish_seen_subcommand_from dommemstat" -l live -d "Affect running domain"
853complete -c virsh -n "__fish_seen_subcommand_from dommemstat" -l current -d "Affect current domain"
854
855# virsh domstate
856complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a domstate -d "Domain state"
857complete -c virsh -n "__fish_seen_subcommand_from domstate" -l reason -d "Also print reason for the state"
858
859# virsh domstats
860complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a domstats -d "Get statistics about one or multiple domains"
861complete -c virsh -n "__fish_seen_subcommand_from domstats" -l state -d "Report domain state"
862complete -c virsh -n "__fish_seen_subcommand_from domstats" -l cpu-total -d "Report domain physical cpu usage"
863complete -c virsh -n "__fish_seen_subcommand_from domstats" -l balloon -d "Report domain balloon statistics"
864complete -c virsh -n "__fish_seen_subcommand_from domstats" -l vcpu -d "Report domain virtual cpu information"
865complete -c virsh -n "__fish_seen_subcommand_from domstats" -l interface -d "Report domain network interface information"
866complete -c virsh -n "__fish_seen_subcommand_from domstats" -l block -d "Report domain block device statistics"
867complete -c virsh -n "__fish_seen_subcommand_from domstats" -l perf -d "Report domain perf event statistics"
868complete -c virsh -n "__fish_seen_subcommand_from domstats" -l list-active -d "List only active domains"
869complete -c virsh -n "__fish_seen_subcommand_from domstats" -l list-inactive -d "List only inactive domains"
870complete -c virsh -n "__fish_seen_subcommand_from domstats" -l list-persistent -d "List only persistent domains"
871complete -c virsh -n "__fish_seen_subcommand_from domstats" -l list-transient -d "List only transient domains"
872complete -c virsh -n "__fish_seen_subcommand_from domstats" -l list-running -d "List only running domains"
873complete -c virsh -n "__fish_seen_subcommand_from domstats" -l list-paused -d "List only paused domains"
874complete -c virsh -n "__fish_seen_subcommand_from domstats" -l list-shutoff -d "List only shutoff domains"
875complete -c virsh -n "__fish_seen_subcommand_from domstats" -l list-other -d "List only domains in other states"
876complete -c virsh -n "__fish_seen_subcommand_from domstats" -l raw -d "Do not pretty-print the fields"
877complete -c virsh -n "__fish_seen_subcommand_from domstats" -l enforce -d "Enforce requested stats parameters"
878complete -c virsh -n "__fish_seen_subcommand_from domstats" -l backing -d "Add backing chain information to block stats"
879
880# virsh domtime
881complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a domtime -d "Domain time"
882complete -c virsh -n "__fish_seen_subcommand_from domtime" -l now -d "Set to the time of the host running virsh"
883complete -c virsh -n "__fish_seen_subcommand_from domtime" -l pretty -d "Print domain's time in human readable form"
884complete -c virsh -n "__fish_seen_subcommand_from domtime" -l sync -d "Instead of setting given time, synchronize from domain's RTC"
885complete -c virsh -n "__fish_seen_subcommand_from domtime" -l time -d "Time to set"
886
887# virsh list
888complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a list -d "List domains"
889complete -c virsh -n "__fish_seen_subcommand_from list" -l inactive -d "List inactive domains"
890complete -c virsh -n "__fish_seen_subcommand_from list" -l all -d "List inactive & active domains"
891complete -c virsh -n "__fish_seen_subcommand_from list" -l transient -d "List transient domains"
892complete -c virsh -n "__fish_seen_subcommand_from list" -l persistent -d "List persistent domains"
893complete -c virsh -n "__fish_seen_subcommand_from list" -l with-snapshot -d "List domains with existing snapshot"
894complete -c virsh -n "__fish_seen_subcommand_from list" -l without-snapshot -d "List domains without a snapshot"
895complete -c virsh -n "__fish_seen_subcommand_from list" -l state-running -d "List domains in running state"
896complete -c virsh -n "__fish_seen_subcommand_from list" -l state-paused -d "List domains in paused state"
897complete -c virsh -n "__fish_seen_subcommand_from list" -l state-shutoff -d "List domains in shutoff state"
898complete -c virsh -n "__fish_seen_subcommand_from list" -l state-other -d "List domains in other states"
899complete -c virsh -n "__fish_seen_subcommand_from list" -l autostart -d "List domains with autostart enabled"
900complete -c virsh -n "__fish_seen_subcommand_from list" -l no-autostart -d "List domains with autostart disabled"
901complete -c virsh -n "__fish_seen_subcommand_from list" -l with-managed-save -d "List domains with managed save state"
902complete -c virsh -n "__fish_seen_subcommand_from list" -l without-managed-save -d "List domains without managed save"
903complete -c virsh -n "__fish_seen_subcommand_from list" -l uuid -d "List UUID's only"
904complete -c virsh -n "__fish_seen_subcommand_from list" -l name -d "List domain names only"
905complete -c virsh -n "__fish_seen_subcommand_from list" -l table -d "List table (default)"
906complete -c virsh -n "__fish_seen_subcommand_from list" -l managed-save -d "Mark inactive domains with managed save state"
907complete -c virsh -n "__fish_seen_subcommand_from list" -l title -d "Show domain title"
908
909# virsh allocpages
910complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a allocpages -d "Manipulate pages pool size"
911complete -c virsh -n "__fish_seen_subcommand_from allocpages" -l cellno -d "NUMA cell number"
912complete -c virsh -n "__fish_seen_subcommand_from allocpages" -l add -d "Instead of setting new pool size add pages to it"
913complete -c virsh -n "__fish_seen_subcommand_from allocpages" -l all -d "Set on all NUMA cells"
914
915# virsh capabilities
916complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a capabilities -d Capabilities
917
918# virsh cpu-models
919complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a cpu-models -d "CPU models"
920
921# virsh domcapabilities
922complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a domcapabilities -d "Domain capabilities"
923complete -c virsh -n "__fish_seen_subcommand_from domcapabilities" -l virttype -d "Virtualization type (/domain/@type)"
924complete -c virsh -n "__fish_seen_subcommand_from domcapabilities" -l emulatorbin -d "Path to emulator binary (/domain/devices/emulator)"
925complete -c virsh -n "__fish_seen_subcommand_from domcapabilities" -l arch -d "Domain architecture (/domain/os/type/@arch)"
926complete -c virsh -n "__fish_seen_subcommand_from domcapabilities" -l machine -d "Machine type (/domain/os/type/@machine)"
927
928# virsh freecell
929complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a freecell -d "NUMA free memory"
930complete -c virsh -n "__fish_seen_subcommand_from freecell" -l cellno -d "NUMA cell number"
931complete -c virsh -n "__fish_seen_subcommand_from freecell" -l all -d "Show free memory for all NUMA cells"
932
933# virsh freepages
934complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a freepages -d "NUMA free pages"
935complete -c virsh -n "__fish_seen_subcommand_from freepages" -l cellno -d "NUMA cell number"
936complete -c virsh -n "__fish_seen_subcommand_from freepages" -l pagesize -d "Page size (in kibibytes)"
937complete -c virsh -n "__fish_seen_subcommand_from freepages" -l all -d "Show free pages for all NUMA cells"
938
939# virsh hostname
940complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a hostname -d "Print the hypervisor hostname"
941
942# virsh maxvcpus
943complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a maxvcpus -d "Connection vcpu maximum"
944complete -c virsh -n "__fish_seen_subcommand_from maxvcpus" -l type -d "Domain type"
945
946# virsh node-memory-tune
947complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a node-memory-tune -d "Get or set node memory parameters"
948complete -c virsh -n "__fish_seen_subcommand_from node-memory-tune" -l shm-pages-to-scan -d "Number of pages to scan before the shared memory service goes to sleep"
949complete -c virsh -n "__fish_seen_subcommand_from node-memory-tune" -l shm-sleep-millisecs -d "Number of millisecs the shared memory service should sleep before next scan"
950complete -c virsh -n "__fish_seen_subcommand_from node-memory-tune" -l shm-merge-across-nodes -d "Specifies if pages from different numa nodes can be merged"
951
952# virsh nodecpumap
953complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a nodecpumap -d "Node cpu map"
954complete -c virsh -n "__fish_seen_subcommand_from nodecpumap" -l pretty -d "Return human readable output"
955
956# virsh nodecpustats
957complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a nodecpustats -d "Prints cpu stats of the node"
958complete -c virsh -n "__fish_seen_subcommand_from nodecpustats" -l cpu -d "Prints specified cpu statistics only"
959complete -c virsh -n "__fish_seen_subcommand_from nodecpustats" -l percent -d "Prints by percentage during 1 second"
960
961# virsh nodeinfo
962complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a nodeinfo -d "Node information"
963
964# virsh nodememstats
965complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a nodememstats -d "Prints memory stats of the node"
966complete -c virsh -n "__fish_seen_subcommand_from nodememstats" -l cell -d "Prints specified cell statistics only"
967
968# virsh nodesuspend
969complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a nodesuspend -d "Suspend the host node for a given time duration"
970
971# virsh sysinfo
972complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a sysinfo -d "Print the hypervisor sysinfo"
973
974# virsh uri
975complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a uri -d "Print the hypervisor canonical URI"
976
977# virsh version
978complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a version -d "Show version"
979complete -c virsh -n "__fish_seen_subcommand_from version" -l daemon -d "Report daemon version too"
980
981# virsh iface-begin
982complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a iface-begin -d "Create a snapshot of current interfaces settings"
983
984# virsh iface-bridge
985complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a iface-bridge -d "Create a bridge device and attach an existing network device to it"
986complete -c virsh -n "__fish_seen_subcommand_from iface-bridge" -l no-stp -d "Do not enable STP for this bridge"
987complete -c virsh -n "__fish_seen_subcommand_from iface-bridge" -l delay -d "Number of seconds to squelch traffic on newly connected ports"
988complete -c virsh -n "__fish_seen_subcommand_from iface-bridge" -l no-start -d "Don't start the bridge immediately"
989
990# virsh iface-commit
991complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a iface-commit -d "Commit changes made since iface-begin and free restore point"
992
993# virsh iface-define
994complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a iface-define -d "Define or modify an inactive persistent physical host interface"
995
996# virsh iface-destroy
997complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a iface-destroy -d "Destroy a physical host interface"
998
999# virsh iface-dumpxml
1000complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a iface-dumpxml -d "Interface information in XML"
1001complete -c virsh -n "__fish_seen_subcommand_from iface-dumpxml" -l inactive -d "Show inactive defined XML"
1002
1003# virsh iface-edit
1004complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a iface-edit -d "Edit XML configuration for a physical host interface"
1005
1006# virsh iface-list
1007complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a iface-list -d "List physical host interfaces"
1008complete -c virsh -n "__fish_seen_subcommand_from iface-list" -l inactive -d "List inactive interfaces"
1009complete -c virsh -n "__fish_seen_subcommand_from iface-list" -l all -d "List inactive & active interfaces"
1010
1011# virsh iface-mac
1012complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a iface-mac -d "Convert an interface name to interface MAC address"
1013
1014# virsh iface-name
1015complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a iface-name -d "Convert an interface MAC address to interface name"
1016
1017# virsh iface-rollback
1018complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a iface-rollback -d "Rollback to previous saved configuration created via iface-begin"
1019
1020# virsh iface-start
1021complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a iface-start -d "Start a physical host interface"
1022
1023# virsh iface-unbridge
1024complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a iface-unbridge -d "Undefine a bridge device after detaching its slave device"
1025complete -c virsh -n "__fish_seen_subcommand_from iface-unbridge" -l no-start -d "Don't start the un-slaved interface immediately"
1026
1027# virsh iface-undefine
1028complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a iface-undefine -d "Undefine a physical host interface"
1029
1030# virsh nwfilter-define
1031complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a nwfilter-define -d "Define or update a network filter"
1032
1033# virsh nwfilter-dumpxml
1034complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a nwfilter-dumpxml -d "Network filter information in XML"
1035
1036# virsh nwfilter-edit
1037complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a nwfilter-edit -d "Edit XML configuration for a network filter"
1038
1039# virsh nwfilter-list
1040complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a nwfilter-list -d "List network filters"
1041
1042# virsh nwfilter-undefine
1043complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a nwfilter-undefine -d "Undefine a network filter"
1044
1045# virsh net-autostart
1046complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a net-autostart -d "Autostart a network"
1047complete -c virsh -n "__fish_seen_subcommand_from net-autostart" -x -a '(__fish_virsh_get_networks)'
1048complete -c virsh -n "__fish_seen_subcommand_from net-autostart" -l disable -d "Disable autostarting"
1049
1050# virsh net-create
1051complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a net-create -d "Create a network from an XML file"
1052
1053# virsh net-define
1054complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a net-define -d "Define or modify an inactive persistent virtual network"
1055
1056# virsh net-destroy
1057complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a net-destroy -d "Destroy (stop) a network"
1058complete -c virsh -n "__fish_seen_subcommand_from net-destroy" -x -a '(__fish_virsh_get_networks active)'
1059
1060# virsh net-dhcp-leases
1061complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a net-dhcp-leases -d "Print lease info for a given network"
1062complete -c virsh -n "__fish_seen_subcommand_from net-dhcp-leases" -x -a '(__fish_virsh_get_networks active)'
1063complete -c virsh -n "__fish_seen_subcommand_from net-dhcp-leases" -l mac -d "MAC address"
1064
1065# virsh net-dumpxml
1066complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a net-dumpxml -d "Network information in XML"
1067complete -c virsh -n "__fish_seen_subcommand_from net-dumpxml" -x -a '(__fish_virsh_get_networks)'
1068complete -c virsh -n "__fish_seen_subcommand_from net-dumpxml" -l inactive -d "Show inactive defined XML"
1069
1070# virsh net-edit
1071complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a net-edit -d "Edit XML configuration for a network"
1072complete -c virsh -n "__fish_seen_subcommand_from net-edit" -x -a '(__fish_virsh_get_networks)'
1073
1074# virsh net-event
1075complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a net-event -d "Network Events"
1076complete -c virsh -n "__fish_seen_subcommand_from net-event" -l network -d "Filter by network name or UUID" -a '(__fish_virsh_get_networks)'
1077complete -c virsh -n "__fish_seen_subcommand_from net-event" -l event -d "Which event type to wait for"
1078complete -c virsh -n "__fish_seen_subcommand_from net-event" -l loop -d "Loop until timeout or interrupt, rather than one-shot"
1079complete -c virsh -n "__fish_seen_subcommand_from net-event" -l timeout -d "Timeout seconds"
1080complete -c virsh -n "__fish_seen_subcommand_from net-event" -l list -d "List valid event types"
1081complete -c virsh -n "__fish_seen_subcommand_from net-event" -l timestamp -d "Show timestamp for each printed event"
1082
1083# virsh net-info
1084complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a net-info -d "Network information"
1085complete -c virsh -n "__fish_seen_subcommand_from net-info" -x -a '(__fish_virsh_get_networks)'
1086
1087# virsh net-list
1088complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a net-list -d "List networks"
1089complete -c virsh -n "__fish_seen_subcommand_from net-list" -l inactive -d "List inactive networks"
1090complete -c virsh -n "__fish_seen_subcommand_from net-list" -l all -d "List inactive & active networks"
1091complete -c virsh -n "__fish_seen_subcommand_from net-list" -l persistent -d "List persistent networks"
1092complete -c virsh -n "__fish_seen_subcommand_from net-list" -l transient -d "List transient networks"
1093complete -c virsh -n "__fish_seen_subcommand_from net-list" -l autostart -d "List networks with autostart enabled"
1094complete -c virsh -n "__fish_seen_subcommand_from net-list" -l no-autostart -d "List networks with autostart disabled"
1095complete -c virsh -n "__fish_seen_subcommand_from net-list" -l uuid -d "List UUID's only"
1096complete -c virsh -n "__fish_seen_subcommand_from net-list" -l name -d "List network names only"
1097complete -c virsh -n "__fish_seen_subcommand_from net-list" -l table -d "List table (default)"
1098
1099# virsh net-name
1100complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a net-name -d "Convert a network UUID to network name"
1101
1102# virsh net-start
1103complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a net-start -d "Start a (previously defined) inactive network"
1104complete -c virsh -n "__fish_seen_subcommand_from net-start" -x -a '(__fish_virsh_get_networks inactive)'
1105
1106# virsh net-undefine
1107complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a net-undefine -d "Undefine a persistent network"
1108complete -c virsh -n "__fish_seen_subcommand_from net-undefine" -x -a '(__fish_virsh_get_networks)'
1109
1110# virsh net-update
1111complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a net-update -d "Update parts of an existing network's configuration"
1112complete -c virsh -n "__fish_seen_subcommand_from net-update" -x -a '(__fish_virsh_get_networks)'
1113complete -c virsh -n "__fish_seen_subcommand_from net-update" -l parent-index -d "Which parent object to search through"
1114complete -c virsh -n "__fish_seen_subcommand_from net-update" -l config -d "Affect next network startup"
1115complete -c virsh -n "__fish_seen_subcommand_from net-update" -l live -d "Affect running network"
1116complete -c virsh -n "__fish_seen_subcommand_from net-update" -l current -d "Affect current state of network"
1117
1118# virsh net-uuid
1119complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a net-uuid -d "Convert a network name to network UUID"
1120complete -c virsh -n "__fish_seen_subcommand_from net-uuid" -x -a '(__fish_virsh_get_networks)'
1121
1122# virsh nodedev-create
1123complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a nodedev-create -d "Create a device defined by an XML file on the node"
1124
1125# virsh nodedev-destroy
1126complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a nodedev-destroy -d "Destroy (stop) a device on the node"
1127
1128# virsh nodedev-detach
1129complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a nodedev-detach -d "Detach node device from its device driver"
1130complete -c virsh -n "__fish_seen_subcommand_from nodedev-detach" -l driver -d "Pci device assignment backend driver (e.g. 'vfio' or 'kvm')"
1131
1132# virsh nodedev-dumpxml
1133complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a nodedev-dumpxml -d "Node device details in XML"
1134
1135# virsh nodedev-list
1136complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a nodedev-list -d "Enumerate devices on this host"
1137complete -c virsh -n "__fish_seen_subcommand_from nodedev-list" -l tree -d "List devices in a tree"
1138complete -c virsh -n "__fish_seen_subcommand_from nodedev-list" -l cap -d "Capability names, separated by comma"
1139
1140# virsh nodedev-reattach
1141complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a nodedev-reattach -d "Reattach node device to its device driver"
1142
1143# virsh nodedev-reset
1144complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a nodedev-reset -d "Reset node device"
1145
1146# virsh nodedev-event
1147complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a nodedev-event -d "Node Device Events"
1148complete -c virsh -n "__fish_seen_subcommand_from nodedev-event" -l device -d "Filter by node device name"
1149complete -c virsh -n "__fish_seen_subcommand_from nodedev-event" -l event -d "Which event type to wait for"
1150complete -c virsh -n "__fish_seen_subcommand_from nodedev-event" -l loop -d "Loop until timeout or interrupt, rather than one-shot"
1151complete -c virsh -n "__fish_seen_subcommand_from nodedev-event" -l timeout -d "Timeout seconds"
1152complete -c virsh -n "__fish_seen_subcommand_from nodedev-event" -l list -d "List valid event types"
1153complete -c virsh -n "__fish_seen_subcommand_from nodedev-event" -l timestamp -d "Show timestamp for each printed event"
1154
1155# virsh secret-define
1156complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a secret-define -d "Define or modify a secret"
1157
1158# virsh secret-dumpxml
1159complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a secret-dumpxml -d "Secret attributes in XML"
1160
1161# virsh secret-event
1162complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a secret-event -d "Secret Events"
1163complete -c virsh -n "__fish_seen_subcommand_from secret-event" -l secret -d "Filter by secret name or UUID"
1164complete -c virsh -n "__fish_seen_subcommand_from secret-event" -l event -d "Which event type to wait for"
1165complete -c virsh -n "__fish_seen_subcommand_from secret-event" -l loop -d "Loop until timeout or interrupt, rather than one-shot"
1166complete -c virsh -n "__fish_seen_subcommand_from secret-event" -l timeout -d "Timeout seconds"
1167complete -c virsh -n "__fish_seen_subcommand_from secret-event" -l list -d "List valid event types"
1168complete -c virsh -n "__fish_seen_subcommand_from secret-event" -l timestamp -d "Show timestamp for each printed event"
1169
1170# virsh secret-get-value
1171complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a secret-get-value -d "Output a secret value"
1172
1173# virsh secret-list
1174complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a secret-list -d "List secrets"
1175complete -c virsh -n "__fish_seen_subcommand_from secret-list" -l ephemeral -d "List ephemeral secrets"
1176complete -c virsh -n "__fish_seen_subcommand_from secret-list" -l no-ephemeral -d "List non-ephemeral secrets"
1177complete -c virsh -n "__fish_seen_subcommand_from secret-list" -l private -d "List private secrets"
1178complete -c virsh -n "__fish_seen_subcommand_from secret-list" -l no-private -d "List non-private secrets"
1179
1180# virsh secret-set-value
1181complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a secret-set-value -d "Set a secret value"
1182
1183# virsh secret-undefine
1184complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a secret-undefine -d "Undefine a secret"
1185
1186# virsh snapshot-create
1187complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a snapshot-create -d "Create a snapshot from XML"
1188complete -c virsh -n "__fish_seen_subcommand_from snapshot-create" -l xmlfile -d "Domain snapshot XML"
1189complete -c virsh -n "__fish_seen_subcommand_from snapshot-create" -l redefine -d "Redefine metadata for existing snapshot"
1190complete -c virsh -n "__fish_seen_subcommand_from snapshot-create" -l current -d "With redefine, set current snapshot"
1191complete -c virsh -n "__fish_seen_subcommand_from snapshot-create" -l no-metadata -d "Take snapshot but create no metadata"
1192complete -c virsh -n "__fish_seen_subcommand_from snapshot-create" -l halt -d "Halt domain after snapshot is created"
1193complete -c virsh -n "__fish_seen_subcommand_from snapshot-create" -l disk-only -d "Capture disk state but not vm state"
1194complete -c virsh -n "__fish_seen_subcommand_from snapshot-create" -l reuse-external -d "Reuse any existing external files"
1195complete -c virsh -n "__fish_seen_subcommand_from snapshot-create" -l quiesce -d "Quiesce guest's file systems"
1196complete -c virsh -n "__fish_seen_subcommand_from snapshot-create" -l atomic -d "Require atomic operation"
1197complete -c virsh -n "__fish_seen_subcommand_from snapshot-create" -l live -d "Take a live snapshot"
1198
1199# virsh snapshot-create-as
1200complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a snapshot-create-as -d "Create a snapshot from a set of args"
1201complete -c virsh -n "__fish_seen_subcommand_from snapshot-create-as" -l name -d "Name of snapshot"
1202complete -c virsh -n "__fish_seen_subcommand_from snapshot-create-as" -l description -d "Description of snapshot"
1203complete -c virsh -n "__fish_seen_subcommand_from snapshot-create-as" -l print-xml -d "Print XML document rather than create"
1204complete -c virsh -n "__fish_seen_subcommand_from snapshot-create-as" -l no-metadata -d "Take snapshot but create no metadata"
1205complete -c virsh -n "__fish_seen_subcommand_from snapshot-create-as" -l halt -d "Halt domain after snapshot is created"
1206complete -c virsh -n "__fish_seen_subcommand_from snapshot-create-as" -l disk-only -d "Capture disk state but not vm state"
1207complete -c virsh -n "__fish_seen_subcommand_from snapshot-create-as" -l reuse-external -d "Reuse any existing external files"
1208complete -c virsh -n "__fish_seen_subcommand_from snapshot-create-as" -l quiesce -d "Quiesce guest's file systems"
1209complete -c virsh -n "__fish_seen_subcommand_from snapshot-create-as" -l atomic -d "Require atomic operation"
1210complete -c virsh -n "__fish_seen_subcommand_from snapshot-create-as" -l live -d "Take a live snapshot"
1211complete -c virsh -n "__fish_seen_subcommand_from snapshot-create-as" -l memspec -d "Memory attributes: [file=]name[,snapshot=type]"
1212
1213# virsh snapshot-current
1214complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a snapshot-current -d "Get or set the current snapshot"
1215complete -c virsh -n "__fish_seen_subcommand_from snapshot-current" -l name -d "List the name, rather than the full xml"
1216complete -c virsh -n "__fish_seen_subcommand_from snapshot-current" -l security-info -d "Include security sensitive information in XML dump"
1217complete -c virsh -n "__fish_seen_subcommand_from snapshot-current" -l snapshotname -d "Name of existing snapshot to make current"
1218
1219# virsh snapshot-delete
1220complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a snapshot-delete -d "Delete a domain snapshot"
1221complete -c virsh -n "__fish_seen_subcommand_from snapshot-delete" -l snapshotname -d "Snapshot name"
1222complete -c virsh -n "__fish_seen_subcommand_from snapshot-delete" -l current -d "Delete current snapshot"
1223complete -c virsh -n "__fish_seen_subcommand_from snapshot-delete" -l children -d "Delete snapshot and all children"
1224complete -c virsh -n "__fish_seen_subcommand_from snapshot-delete" -l children-only -d "Delete children but not snapshot"
1225complete -c virsh -n "__fish_seen_subcommand_from snapshot-delete" -l metadata -d "Delete only libvirt metadata, leaving snapshot contents behind"
1226
1227# virsh snapshot-dumpxml
1228complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a snapshot-dumpxml -d "Dump XML for a domain snapshot"
1229complete -c virsh -n "__fish_seen_subcommand_from snapshot-dumpxml" -l security-info -d "Include security sensitive information in XML dump"
1230
1231# virsh snapshot-edit
1232complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a snapshot-edit -d "Edit XML for a snapshot"
1233complete -c virsh -n "__fish_seen_subcommand_from snapshot-edit" -l snapshotname -d "Snapshot name"
1234complete -c virsh -n "__fish_seen_subcommand_from snapshot-edit" -l current -d "Also set edited snapshot as current"
1235complete -c virsh -n "__fish_seen_subcommand_from snapshot-edit" -l rename -d "Allow renaming an existing snapshot"
1236complete -c virsh -n "__fish_seen_subcommand_from snapshot-edit" -l clone -d "Allow cloning to new name"
1237
1238# virsh snapshot-info
1239complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a snapshot-info -d "Snapshot information"
1240complete -c virsh -n "__fish_seen_subcommand_from snapshot-info" -l snapshotname -d "Snapshot name"
1241complete -c virsh -n "__fish_seen_subcommand_from snapshot-info" -l current -d "Info on current snapshot"
1242
1243# virsh snapshot-list
1244complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a snapshot-list -d "List snapshots for a domain"
1245complete -c virsh -n "__fish_seen_subcommand_from snapshot-list" -l parent -d "Add a column showing parent snapshot"
1246complete -c virsh -n "__fish_seen_subcommand_from snapshot-list" -l roots -d "List only snapshots without parents"
1247complete -c virsh -n "__fish_seen_subcommand_from snapshot-list" -l leaves -d "List only snapshots without children"
1248complete -c virsh -n "__fish_seen_subcommand_from snapshot-list" -l no-leaves -d "List only snapshots that are not leaves (with children)"
1249complete -c virsh -n "__fish_seen_subcommand_from snapshot-list" -l metadata -d "List only snapshots that have metadata that would prevent undefine"
1250complete -c virsh -n "__fish_seen_subcommand_from snapshot-list" -l no-metadata -d "List only snapshots that have no metadata managed by libvirt"
1251complete -c virsh -n "__fish_seen_subcommand_from snapshot-list" -l inactive -d "Filter by snapshots taken while inactive"
1252complete -c virsh -n "__fish_seen_subcommand_from snapshot-list" -l active -d "Filter by snapshots taken while active (system checkpoints)"
1253complete -c virsh -n "__fish_seen_subcommand_from snapshot-list" -l disk-only -d "Filter by disk-only snapshots"
1254complete -c virsh -n "__fish_seen_subcommand_from snapshot-list" -l internal -d "Filter by internal snapshots"
1255complete -c virsh -n "__fish_seen_subcommand_from snapshot-list" -l external -d "Filter by external snapshots"
1256complete -c virsh -n "__fish_seen_subcommand_from snapshot-list" -l tree -d "List snapshots in a tree"
1257complete -c virsh -n "__fish_seen_subcommand_from snapshot-list" -l from -d "Limit list to children of given snapshot"
1258complete -c virsh -n "__fish_seen_subcommand_from snapshot-list" -l current -d "Limit list to children of current snapshot"
1259complete -c virsh -n "__fish_seen_subcommand_from snapshot-list" -l descendants -d "With --from, list all descendants"
1260complete -c virsh -n "__fish_seen_subcommand_from snapshot-list" -l name -d "List snapshot names only"
1261
1262# virsh snapshot-parent
1263complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a snapshot-parent -d "Get the name of the parent of a snapshot"
1264complete -c virsh -n "__fish_seen_subcommand_from snapshot-parent" -l snapshotname -d "Find parent of snapshot name"
1265complete -c virsh -n "__fish_seen_subcommand_from snapshot-parent" -l current -d "Find parent of current snapshot"
1266
1267# virsh snapshot-revert
1268complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a snapshot-revert -d "Revert a domain to a snapshot"
1269complete -c virsh -n "__fish_seen_subcommand_from snapshot-revert" -l snapshotname -d "Snapshot name"
1270complete -c virsh -n "__fish_seen_subcommand_from snapshot-revert" -l current -d "Revert to current snapshot"
1271complete -c virsh -n "__fish_seen_subcommand_from snapshot-revert" -l running -d "After reverting, change state to running"
1272complete -c virsh -n "__fish_seen_subcommand_from snapshot-revert" -l paused -d "After reverting, change state to paused"
1273complete -c virsh -n "__fish_seen_subcommand_from snapshot-revert" -l force -d "Try harder on risky reverts"
1274
1275# virsh find-storage-pool-sources-as
1276complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a find-storage-pool-sources-as -d "Find potential storage pool sources"
1277complete -c virsh -n "__fish_seen_subcommand_from find-storage-pool-sources-as" -l host -d "Optional host to query"
1278complete -c virsh -n "__fish_seen_subcommand_from find-storage-pool-sources-as" -l port -d "Optional port to query"
1279complete -c virsh -n "__fish_seen_subcommand_from find-storage-pool-sources-as" -l initiator -d "Optional initiator IQN to use for query"
1280
1281# virsh find-storage-pool-sources
1282complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a find-storage-pool-sources -d "Discover potential storage pool sources"
1283complete -c virsh -n "__fish_seen_subcommand_from find-storage-pool-sources" -l srcSpec -d "Optional file of source xml to query for pools"
1284
1285# virsh pool-autostart
1286complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a pool-autostart -d "Autostart a pool"
1287complete -c virsh -n "__fish_seen_subcommand_from pool-autostart" -l disable -d "Disable autostarting"
1288
1289# virsh pool-build
1290complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a pool-build -d "Build a pool"
1291complete -c virsh -n "__fish_seen_subcommand_from pool-build" -l no-overwrite -d "Do not overwrite any existing data"
1292complete -c virsh -n "__fish_seen_subcommand_from pool-build" -l overwrite -d "Overwrite any existing data"
1293
1294# virsh pool-create-as
1295complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a pool-create-as -d "Create a pool from a set of args"
1296complete -c virsh -n "__fish_seen_subcommand_from pool-create-as" -l print-xml -d "Print XML document, but don't define/create"
1297complete -c virsh -n "__fish_seen_subcommand_from pool-create-as" -l source-host -d "Source-host for underlying storage"
1298complete -c virsh -n "__fish_seen_subcommand_from pool-create-as" -l source-path -d "Source path for underlying storage"
1299complete -c virsh -n "__fish_seen_subcommand_from pool-create-as" -l source-dev -d "Source device for underlying storage"
1300complete -c virsh -n "__fish_seen_subcommand_from pool-create-as" -l source-name -d "Source name for underlying storage"
1301complete -c virsh -n "__fish_seen_subcommand_from pool-create-as" -l target -d "Target for underlying storage"
1302complete -c virsh -n "__fish_seen_subcommand_from pool-create-as" -l source-format -d "Format for underlying storage"
1303complete -c virsh -n "__fish_seen_subcommand_from pool-create-as" -l auth-type -d "Auth type to be used for underlying storage"
1304complete -c virsh -n "__fish_seen_subcommand_from pool-create-as" -l auth-username -d "Auth username to be used for underlying storage"
1305complete -c virsh -n "__fish_seen_subcommand_from pool-create-as" -l secret-usage -d "Auth secret usage to be used for underlying storage"
1306complete -c virsh -n "__fish_seen_subcommand_from pool-create-as" -l secret-uuid -d "Auth secret UUID to be used for underlying storage"
1307complete -c virsh -n "__fish_seen_subcommand_from pool-create-as" -l adapter-name -d "Adapter name to be used for underlying storage"
1308complete -c virsh -n "__fish_seen_subcommand_from pool-create-as" -l adapter-wwnn -d "Adapter wwnn to be used for underlying storage"
1309complete -c virsh -n "__fish_seen_subcommand_from pool-create-as" -l adapter-wwpn -d "Adapter wwpn to be used for underlying storage"
1310complete -c virsh -n "__fish_seen_subcommand_from pool-create-as" -l adapter-parent -d "Adapter parent to be used for underlying storage"
1311complete -c virsh -n "__fish_seen_subcommand_from pool-create-as" -l build -d "Build the pool as normal"
1312complete -c virsh -n "__fish_seen_subcommand_from pool-create-as" -l no-overwrite -d "Do not overwrite any existing data"
1313complete -c virsh -n "__fish_seen_subcommand_from pool-create-as" -l overwrite -d "Overwrite any existing data"
1314
1315# virsh pool-create
1316complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a pool-create -d "Create a pool from an XML file"
1317complete -c virsh -n "__fish_seen_subcommand_from pool-create" -l build -d "Build the pool as normal"
1318complete -c virsh -n "__fish_seen_subcommand_from pool-create" -l no-overwrite -d "Do not overwrite any existing data"
1319complete -c virsh -n "__fish_seen_subcommand_from pool-create" -l overwrite -d "Overwrite any existing data"
1320
1321# virsh pool-define-as
1322complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a pool-define-as -d "Define a pool from a set of args"
1323complete -c virsh -n "__fish_seen_subcommand_from pool-define-as" -l print-xml -d "Print XML document, but don't define/create"
1324complete -c virsh -n "__fish_seen_subcommand_from pool-define-as" -l source-host -d "Source-host for underlying storage"
1325complete -c virsh -n "__fish_seen_subcommand_from pool-define-as" -l source-path -d "Source path for underlying storage"
1326complete -c virsh -n "__fish_seen_subcommand_from pool-define-as" -l source-dev -d "Source device for underlying storage"
1327complete -c virsh -n "__fish_seen_subcommand_from pool-define-as" -l source-name -d "Source name for underlying storage"
1328complete -c virsh -n "__fish_seen_subcommand_from pool-define-as" -l target -d "Target for underlying storage"
1329complete -c virsh -n "__fish_seen_subcommand_from pool-define-as" -l source-format -d "Format for underlying storage"
1330complete -c virsh -n "__fish_seen_subcommand_from pool-define-as" -l auth-type -d "Auth type to be used for underlying storage"
1331complete -c virsh -n "__fish_seen_subcommand_from pool-define-as" -l auth-username -d "Auth username to be used for underlying storage"
1332complete -c virsh -n "__fish_seen_subcommand_from pool-define-as" -l secret-usage -d "Auth secret usage to be used for underlying storage"
1333complete -c virsh -n "__fish_seen_subcommand_from pool-define-as" -l secret-uuid -d "Auth secret UUID to be used for underlying storage"
1334complete -c virsh -n "__fish_seen_subcommand_from pool-define-as" -l adapter-name -d "Adapter name to be used for underlying storage"
1335complete -c virsh -n "__fish_seen_subcommand_from pool-define-as" -l adapter-wwnn -d "Adapter wwnn to be used for underlying storage"
1336complete -c virsh -n "__fish_seen_subcommand_from pool-define-as" -l adapter-wwpn -d "Adapter wwpn to be used for underlying storage"
1337complete -c virsh -n "__fish_seen_subcommand_from pool-define-as" -l adapter-parent -d "Adapter parent to be used for underlying storage"
1338
1339# virsh pool-define
1340complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a pool-define -d "Define or modify an inactive persistent storage pool"
1341
1342# virsh pool-delete
1343complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a pool-delete -d "Delete a pool"
1344
1345# virsh pool-destroy
1346complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a pool-destroy -d "Destroy (stop) a pool"
1347
1348# virsh pool-dumpxml
1349complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a pool-dumpxml -d "Pool information in XML"
1350complete -c virsh -n "__fish_seen_subcommand_from pool-dumpxml" -l inactive -d "Show inactive defined XML"
1351
1352# virsh pool-edit
1353complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a pool-edit -d "Edit XML configuration for a storage pool"
1354
1355# virsh pool-info
1356complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a pool-info -d "Storage pool information"
1357complete -c virsh -n "__fish_seen_subcommand_from pool-info" -l bytes -d "Return pool info in bytes"
1358
1359# virsh pool-list
1360complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a pool-list -d "List pools"
1361complete -c virsh -n "__fish_seen_subcommand_from pool-list" -l inactive -d "List inactive pools"
1362complete -c virsh -n "__fish_seen_subcommand_from pool-list" -l all -d "List inactive & active pools"
1363complete -c virsh -n "__fish_seen_subcommand_from pool-list" -l transient -d "List transient pools"
1364complete -c virsh -n "__fish_seen_subcommand_from pool-list" -l persistent -d "List persistent pools"
1365complete -c virsh -n "__fish_seen_subcommand_from pool-list" -l autostart -d "List pools with autostart enabled"
1366complete -c virsh -n "__fish_seen_subcommand_from pool-list" -l no-autostart -d "List pools with autostart disabled"
1367complete -c virsh -n "__fish_seen_subcommand_from pool-list" -l type -d "Only list pool of specified type(s) (if supported)"
1368complete -c virsh -n "__fish_seen_subcommand_from pool-list" -l details -d "Display extended details for pools"
1369complete -c virsh -n "__fish_seen_subcommand_from pool-list" -l uuid -d "List UUID of active pools only"
1370complete -c virsh -n "__fish_seen_subcommand_from pool-list" -l name -d "List name of active pools only"
1371
1372# virsh pool-name
1373complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a pool-name -d "Convert a pool UUID to pool name"
1374
1375# virsh pool-refresh
1376complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a pool-refresh -d "Refresh a pool"
1377
1378# virsh pool-start
1379complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a pool-start -d "Start a (previously defined) inactive pool"
1380complete -c virsh -n "__fish_seen_subcommand_from pool-start" -l build -d "Build the pool as normal"
1381complete -c virsh -n "__fish_seen_subcommand_from pool-start" -l no-overwrite -d "Do not overwrite any existing data"
1382complete -c virsh -n "__fish_seen_subcommand_from pool-start" -l overwrite -d "Overwrite any existing data"
1383
1384# virsh pool-undefine
1385complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a pool-undefine -d "Undefine an inactive pool"
1386
1387# virsh pool-uuid
1388complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a pool-uuid -d "Convert a pool name to pool UUID"
1389
1390# virsh pool-event
1391complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a pool-event -d "Storage Pool Events"
1392complete -c virsh -n "__fish_seen_subcommand_from pool-event" -l pool -d "Filter by storage pool name or UUID"
1393complete -c virsh -n "__fish_seen_subcommand_from pool-event" -l event -d "Which event type to wait for"
1394complete -c virsh -n "__fish_seen_subcommand_from pool-event" -l loop -d "Loop until timeout or interrupt, rather than one-shot"
1395complete -c virsh -n "__fish_seen_subcommand_from pool-event" -l timeout -d "Timeout seconds"
1396complete -c virsh -n "__fish_seen_subcommand_from pool-event" -l list -d "List valid event types"
1397complete -c virsh -n "__fish_seen_subcommand_from pool-event" -l timestamp -d "Show timestamp for each printed event"
1398
1399# virsh vol-clone
1400complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a vol-clone -d "Clone a volume"
1401complete -c virsh -n "__fish_seen_subcommand_from vol-clone" -l pool -d "Pool name or UUID"
1402complete -c virsh -n "__fish_seen_subcommand_from vol-clone" -l prealloc-metadata -d "Preallocate metadata (for qcow2 instead of full allocation)"
1403complete -c virsh -n "__fish_seen_subcommand_from vol-clone" -l reflink -d "Use btrfs COW lightweight copy"
1404
1405# virsh vol-create-as
1406complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a vol-create-as -d "Create a volume from a set of args"
1407complete -c virsh -n "__fish_seen_subcommand_from vol-create-as" -l allocation -d "Initial allocation size, as scaled integer (default bytes)"
1408complete -c virsh -n "__fish_seen_subcommand_from vol-create-as" -l format -d "File format type raw,bochs,qcow,qcow2,qed,vmdk"
1409complete -c virsh -n "__fish_seen_subcommand_from vol-create-as" -l backing-vol -d "The backing volume if taking a snapshot"
1410complete -c virsh -n "__fish_seen_subcommand_from vol-create-as" -l backing-vol-format -d "Format of backing volume if taking a snapshot"
1411complete -c virsh -n "__fish_seen_subcommand_from vol-create-as" -l prealloc-metadata -d "Preallocate metadata (for qcow2 instead of full allocation)"
1412complete -c virsh -n "__fish_seen_subcommand_from vol-create-as" -l print-xml -d "Print XML document, but don't define/create"
1413
1414# virsh vol-create
1415complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a vol-create -d "Create a vol from an XML file"
1416complete -c virsh -n "__fish_seen_subcommand_from vol-create" -l prealloc-metadata -d "Preallocate metadata (for qcow2 instead of full allocation)"
1417
1418# virsh vol-create-from
1419complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a vol-create-from -d "Create a vol, using another volume as input"
1420complete -c virsh -n "__fish_seen_subcommand_from vol-create-from" -l inputpool -d "Pool name or UUID of the input volume's pool"
1421complete -c virsh -n "__fish_seen_subcommand_from vol-create-from" -l prealloc-metadata -d "Preallocate metadata (for qcow2 instead of full allocation)"
1422complete -c virsh -n "__fish_seen_subcommand_from vol-create-from" -l reflink -d "Use btrfs COW lightweight copy"
1423
1424# virsh vol-delete
1425complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a vol-delete -d "Delete a vol"
1426complete -c virsh -n "__fish_seen_subcommand_from vol-delete" -l pool -d "Pool name or UUID"
1427complete -c virsh -n "__fish_seen_subcommand_from vol-delete" -l delete-snapshots -d "Delete snapshots associated with volume (must be supported by storage driver)"
1428
1429# virsh vol-download
1430complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a vol-download -d "Download volume contents to a file"
1431complete -c virsh -n "__fish_seen_subcommand_from vol-download" -l pool -d "Pool name or UUID"
1432complete -c virsh -n "__fish_seen_subcommand_from vol-download" -l offset -d "Volume offset to download from"
1433complete -c virsh -n "__fish_seen_subcommand_from vol-download" -l length -d "Amount of data to download"
1434complete -c virsh -n "__fish_seen_subcommand_from vol-download" -l sparse -d "Preserve sparseness of volume"
1435
1436# virsh vol-dumpxml
1437complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a vol-dumpxml -d "Vol information in XML"
1438complete -c virsh -n "__fish_seen_subcommand_from vol-dumpxml" -l pool -d "Pool name or UUID"
1439
1440# virsh vol-info
1441complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a vol-info -d "Storage vol information"
1442complete -c virsh -n "__fish_seen_subcommand_from vol-info" -l pool -d "Pool name or UUID"
1443complete -c virsh -n "__fish_seen_subcommand_from vol-info" -l bytes -d "Sizes are represented in bytes rather than pretty units"
1444complete -c virsh -n "__fish_seen_subcommand_from vol-info" -l physical -d "Return the physical size of the volume in allocation field"
1445
1446# virsh vol-key
1447complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a vol-key -d "Returns the volume key for a given volume name or path"
1448complete -c virsh -n "__fish_seen_subcommand_from vol-key" -l pool -d "Pool name or UUID"
1449
1450# virsh vol-list
1451complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a vol-list -d "List vols"
1452complete -c virsh -n "__fish_seen_subcommand_from vol-list" -l details -d "Display extended details for volumes"
1453
1454# virsh vol-name
1455complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a vol-name -d "Returns the volume name for a given volume key or path"
1456
1457# virsh vol-path
1458complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a vol-path -d "Returns the volume path for a given volume name or key"
1459complete -c virsh -n "__fish_seen_subcommand_from vol-path" -l pool -d "Pool name or UUID"
1460
1461# virsh vol-pool
1462complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a vol-pool -d "Returns the storage pool for a given volume key or path"
1463complete -c virsh -n "__fish_seen_subcommand_from vol-pool" -l uuid -d "Return the pool UUID rather than pool name"
1464
1465# virsh vol-resize
1466complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a vol-resize -d "Resize a vol"
1467complete -c virsh -n "__fish_seen_subcommand_from vol-resize" -l pool -d "Pool name or UUID"
1468complete -c virsh -n "__fish_seen_subcommand_from vol-resize" -l allocate -d "Allocate the new capacity, rather than leaving it sparse"
1469complete -c virsh -n "__fish_seen_subcommand_from vol-resize" -l delta -d "Use capacity as a delta to current size, rather than the new size"
1470complete -c virsh -n "__fish_seen_subcommand_from vol-resize" -l shrink -d "Allow the resize to shrink the volume"
1471
1472# virsh vol-upload
1473complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a vol-upload -d "Upload file contents to a volume"
1474complete -c virsh -n "__fish_seen_subcommand_from vol-upload" -l pool -d "Pool name or UUID"
1475complete -c virsh -n "__fish_seen_subcommand_from vol-upload" -l offset -d "Volume offset to upload to"
1476complete -c virsh -n "__fish_seen_subcommand_from vol-upload" -l length -d "Amount of data to upload"
1477complete -c virsh -n "__fish_seen_subcommand_from vol-upload" -l sparse -d "Preserve sparseness of volume"
1478
1479# virsh vol-wipe
1480complete -c virsh -n "not __fish_seen_subcommand_from $cmds" -a vol-wipe -d "Wipe a vol"
1481complete -c virsh -n "__fish_seen_subcommand_from vol-wipe" -l pool -d "Pool name or UUID"
1482complete -c virsh -n "__fish_seen_subcommand_from vol-wipe" -l algorithm -d "Perform selected wiping algorithm"