scripts/completions/_deploypkg.zsh
Anna Schumaker 8a73ed3a61 Create a deploypkg.zsh command
For installing a package created through makepkg onto a remote machine

Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
2021-11-30 13:58:24 -05:00

10 lines
221 B
Bash

#compdef deploypkg.zsh
function _deploypkg.zsh() {
_arguments \
'1:package:_files -g "**/*.pkg.tar.*"' \
':destination: _alternative
"hosts:hosts: _ssh_hosts"
"domains:domains:($(virsh list --all --name))"'
}