| Server IP : 37.9.174.138 / Your IP : 216.73.216.117 Web Server : Apache System : Linux vps6.backend.sk 6.12.100+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.100-1 (2026-07-30) x86_64 User : ftpuser ( 1001) PHP Version : 8.4.24 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/share/bash-completion/completions/ |
Upload File : |
# iscsiadm(1) completion -*- shell-script -*-
_comp_cmd_iscsiadm()
{
local cur prev words cword was_split comp_args
_comp_initialize -s -- "$@" || return
local noargopts='!(-*|*[motLU]*)'
# shellcheck disable=SC2254
case $prev in
--mode | -${noargopts}m)
_comp_compgen -- -W 'discovery node session iface fw host'
return
;;
--op | -${noargopts}o)
_comp_compgen -- -W 'new delete update show'
return
;;
--type | -${noargopts}t)
_comp_compgen -- -W 'sendtargets st slp isns fw'
return
;;
--loginall | --logoutall | -${noargopts}[LU])
_comp_compgen -- -W 'all manual automatic'
return
;;
esac
[[ $was_split ]] && return
local options
if ((cword > 1)); then
case ${words[2]} in
discovery)
options='--help --version --debug --print --interface --type \
--portal --login --op --name --value'
;;
node)
options='--help --version --debug --print --loginall \
--logoutall--show -T --portal --interface --login \
--logout --rescan --stats --op --name --value'
;;
session)
options='--help --version --debug --print --sid --logout \
--rescan --stats'
;;
iface)
options='--help --version --debug --print --interface --op \
--name --value'
;;
fw)
options='--login'
;;
host)
options='--print -H'
;;
esac
else
options='--mode'
fi
_comp_compgen -- -W "$options"
} &&
complete -F _comp_cmd_iscsiadm iscsiadm
# ex: filetype=sh