/usr/share/bash-completion/completions/mbimcli is in libmbim-utils 1.14.2-2.1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 | # mbimcli(1) completion -*- shell-script -*-
_mbimcli()
{
local cur prev words cword split
_init_completion -s || return
case $prev in
'-d'|'--device')
_filedir
return 0
;;
'--no-open')
COMPREPLY=( $(compgen -W "[Transaction-ID]" -- $cur) )
return 0
;;
'--set-radio-state')
COMPREPLY=( $(compgen -W "[(on|off)]" -- $cur) )
return 0
;;
'--enter-pin')
COMPREPLY=( $(compgen -W "[current-PIN]" -- $cur) )
return 0
;;
'--change-pin')
COMPREPLY=( $(compgen -W "[(current-PIN),(new-PIN)]" -- $cur) )
return 0
;;
'--enable-pin')
COMPREPLY=( $(compgen -W "[current-PIN]" -- $cur) )
return 0
;;
'--disable-pin')
COMPREPLY=( $(compgen -W "[current-PIN]" -- $cur) )
return 0
;;
'--enter-puk')
COMPREPLY=( $(compgen -W "[(PUK),(new-PIN)]" -- $cur) )
return 0
;;
'--connect')
COMPREPLY=( $(compgen -W "[(APN),(PAP|CHAP|MSCHAPV2),(Username),(Password)]" -- $cur) )
return 0
;;
'--phonebook-read')
COMPREPLY=( $(compgen -W "[(Phonebook-index)]" -- $cur) )
return 0
;;
'--phonebook-write')
COMPREPLY=( $(compgen -W "[(Name),(Number)[,(Index)]]" -- $cur) )
return 0
;;
'--phonebook-delete')
COMPREPLY=( $(compgen -W "[(Phonebook-index)]" -- $cur) )
return 0
;;
'--dss-connect')
COMPREPLY=( $(compgen -W "[(UUID),(Session-ID)]" -- $cur) )
return 0
;;
'--dss-disconnect')
COMPREPLY=( $(compgen -W "[(UUID),(Session-ID)]" -- $cur) )
return 0
;;
'-V'|'--version')
return 0
;;
'-h'|'--help'|'--help-all'|'--help-basic-connect'|'--help-phonebook'|'--help-dss'|'--help-ms-firmware-id'|'--help-ms-host-shutdown')
return 0
;;
esac
$split && return 0
if [[ $cur == -* ]]; then
COMPREPLY=( $( compgen -W '$( _parse_help "$1" --help-all )' -- "$cur" ) )
[[ $COMPREPLY == *= ]] && compopt -o nospace
return 0
fi
} &&
complete -F _mbimcli mbimcli
# ex: ts=4 sw=4 et filetype=sh
|