| Server IP : 172.67.191.97 / Your IP : 104.23.197.209 Web Server : Apache/2.4.63 (Ubuntu) System : Linux adminpruebas-Virtual-Machine 6.14.0-37-generic #37-Ubuntu SMP PREEMPT_DYNAMIC Fri Nov 14 22:10:32 UTC 2025 x86_64 User : www-data ( 33) PHP Version : 8.4.5 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 : |
# 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