fish-shell/share/completions/vmctl.fish
Fabian Homborg 65883e0e40 Restyle
Mostly line breaks, one instance of tabs!

For some reason clang-format insists on two spaces before a same-line comment?

(I continue to be unimpressed with super-strict line length limits,
but I continue to believe in automatic styling, so it is what it is)

[ci skip]
2020-02-17 14:14:05 +01:00

11 lines
551 B
Fish

function __fish_get_vmctl_vms
for line in (vmctl status | string match -e -v "MAXMEM")
set a (string split " " $line)
and printf "%s " $a[-1]
end
end
complete -c vmctl -xa 'console create load log reload reset start status stop pause unpause send receive' -n 'not __fish_seen_subcommand_from list console create load log reload reset start status stop pause unpause send receive'
complete -c vmctl -n '__fish_seen_subcommand_from console reload reset start status stop pause unpause send receive' -xa (__fish_get_vmctl_vms)