| Server IP : 50.21.180.56 / Your IP : 216.73.216.139 Web Server : Apache System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux User : ws67922704 ( 67922704) PHP Version : 8.5.13 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /kunden/proc/thread-self/root/proc/thread-self/root/usr/share/bash-completion/completions/ |
Upload File : |
# dmypy completion -*- shell-script -*-
_comp_cmd_dmypy()
{
local cur prev words cword comp_args
_comp_initialize -- "$@" || return
case $prev in
--help | --version | -[hV])
return
;;
--status-file)
_comp_compgen_filedir
return
;;
esac
local cmd="" has_cmd="" i
for ((i = 1; i < cword; i++)); do
if [[ ${words[i]} != -* && ${words[i - 1]} != --status-file ]]; then
cmd=${words[i]}
has_cmd=set
break
fi
done
case ${cmd-} in
check | run)
_comp_compgen_filedir '@(py|pyi)'
return
;;
esac
if [[ $cur == -* ]]; then
_comp_compgen_help
return
fi
if [[ ! $has_cmd ]]; then
local cmds=$("$1" --help 2>&1 |
command sed -ne '/positional arguments/{p;n;p;q;}' |
command sed -ne 's/{\(.*\)}/\1/p')
_comp_compgen -F , -- -W '$cmds'
return
fi
} &&
complete -F _comp_cmd_dmypy dmypy
# ex: filetype=sh