scripts/completions/_cthon.zsh
Anna Schumaker 2adddd9e9c Create a cthon.zsh script
And a script to color the output. Additionally, I add a patch that goes
on top of the cthon04 git tree so we can test with nconnect

Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
2021-12-06 11:46:22 -05:00

17 lines
628 B
Bash

#compdef cthon.zsh
function _cthon.zsh() {
_arguments \
{-c,--client}'[the client to test]: : _alternative
"hosts\:hosts\: _ssh_hosts"
"domains\:domains\:($(virsh list --all --name))"' \
--nconnect'[number of connections]: :($(seq 1 32))' \
--krb5'[run tests with sec=krb5]' \
{-p,--mountpoint}'[the directory to mount the server]: : _files -/' \
{-r,--rdma}'[test using rdma]: :(rxe siw)' \
{-s,--server}'[the server to test against]: : _alternative
"hosts\:hosts\: _ssh_hosts"
"domains\:domains\:($(virsh list --all --name))"' \
{-x,--export}'[the exported directory on the server]: : _files -/'
}