biscuit

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

qmicli (5285B)


      1 # qmicli(1) completion                                      -*- shell-script -*-
      2 
      3 _qmicli()
      4 {
      5     local cur prev words cword split
      6     _init_completion -s || return
      7 
      8     case $prev in
      9         -d|--device)
     10             _filedir
     11             return 0
     12             ;;
     13         '--device-set-instance-id')
     14             COMPREPLY=( $(compgen -W "[Instance-ID]" -- $cur) )
     15             return 0
     16             ;;
     17         '--device-open-net')
     18             COMPREPLY=( $(compgen -W "[net-802-3|net-raw-ip|net-qos-header|net-no-qos-header]" -- $cur) )
     19             return 0
     20             ;;
     21         '--client-cid')
     22             COMPREPLY=( $(compgen -W "[CID]" -- $cur) )
     23             return 0
     24             ;;
     25         '--dms-uim-set-pin-protection')
     26             COMPREPLY=( $(compgen -W "[(PIN|PIN2),(disable|enable),(current-PIN)]" -- $cur) )
     27             return 0
     28             ;;
     29         '--dms-uim-verify-pin')
     30             COMPREPLY=( $(compgen -W "[(PIN|PIN2),(current-PIN)]" -- $cur) )
     31             return 0
     32             ;;
     33         '--dms-uim-unblock-pin')
     34             COMPREPLY=( $(compgen -W "[(PIN|PIN2),(PUK),(new-PIN)]" -- $cur) )
     35             return 0
     36             ;;
     37         '--dms-uim-change-pin')
     38             COMPREPLY=( $(compgen -W "[(PIN|PIN2),(old-PIN),(new-PIN)]" -- $cur) )
     39             return 0
     40             ;;
     41         '--dms-uim-get-ck-status')
     42             COMPREPLY=( $(compgen -W "[(pn|pu|pp|pc|pf)]" -- $cur) )
     43             return 0
     44             ;;
     45         '--dms-uim-set-ck-protection')
     46             COMPREPLY=( $(compgen -W "[(pn|pu|pp|pc|pf),(disable),(key)]" -- $cur) )
     47             return 0
     48             ;;
     49         '--dms-uim-unblock-ck')
     50             COMPREPLY=( $(compgen -W "[(pn|pu|pp|pc|pf),(key)]" -- $cur) )
     51             return 0
     52             ;;
     53         '--dms-set-operating-mode')
     54             COMPREPLY=( $(compgen -W "[(Operating-Mode)]" -- $cur) )
     55             return 0
     56             ;;
     57         '--dms-activate-automatic')
     58             COMPREPLY=( $(compgen -W "[Activation-Code]" -- $cur) )
     59             return 0
     60             ;;
     61         '--dms-activate-manual')
     62             COMPREPLY=( $(compgen -W "[SPC,SID,MDN,MIN]" -- $cur) )
     63             return 0
     64             ;;
     65         '--dms-set-user-lock-state')
     66             COMPREPLY=( $(compgen -W "[(disable|enable),(current-lock-code)]" -- $cur) )
     67             return 0
     68             ;;
     69         '--dms-set-user-lock-code')
     70             COMPREPLY=( $(compgen -W "[(old-lock-code),(new-lock-code)]" -- $cur) )
     71             return 0
     72             ;;
     73         '--dms-write-user-data')
     74             COMPREPLY=( $(compgen -W "[(User-data)]" -- $cur) )
     75             return 0
     76             ;;
     77         '--dms-restore-factory-defaults')
     78             COMPREPLY=( $(compgen -W "[(Service-Programming-Code)]" -- $cur) )
     79             return 0
     80             ;;
     81         '--dms-validate-service-programming-code')
     82             COMPREPLY=( $(compgen -W "[(Service-Programming-Code)]" -- $cur) )
     83             return 0
     84             ;;
     85         '--dms-select-stored-image')
     86             COMPREPLY=( $(compgen -W "[modem#,pri#]" -- $cur) )
     87             return 0
     88             ;;
     89         '--dms-delete-stored-image')
     90             COMPREPLY=( $(compgen -W "[modem#,pri#]" -- $cur) )
     91             return 0
     92             ;;
     93         '--nas-get-tx-rx-info')
     94             COMPREPLY=( $(compgen -W "[(Radio-Interface)]" -- $cur) )
     95             return 0
     96             ;;
     97         '--nas-set-system-selection-preference')
     98             COMPREPLY=( $(compgen -W "[cdma-1x|cdma-1xevdo|gsm|umts|lte|td-scdma]" -- $cur) )
     99             return 0
    100             ;;
    101         '--wds-start-network')
    102             COMPREPLY=( $(compgen -W "[(APN),(PAP|CHAP|BOTH),(Username),(Password)]" -- $cur) )
    103             return 0
    104             ;;
    105         '--wds-stop-network')
    106             COMPREPLY=( $(compgen -W "[Packet-data-handle]" -- $cur) )
    107             return 0
    108             ;;
    109         '--wds-get-profile-list')
    110             COMPREPLY=( $(compgen -W "[3gpp|3gpp2]" -- $cur) )
    111             return 0
    112             ;;
    113         '--wds-get-default-settings')
    114             COMPREPLY=( $(compgen -W "[3gpp|3gpp2]" -- $cur) )
    115             return 0
    116             ;;
    117         '--wds-bind-mux-data-port')
    118             COMPREPLY=( $(compgen -W "[(MuxId),(Ep-Iface-Number)]" -- $cur) )
    119             return 0
    120             ;;
    121         '--wds-set-ip-family')
    122             COMPREPLY=( $(compgen -W "[4|6]" -- $cur) )
    123             return 0
    124             ;;
    125         '--uim-read-transparent')
    126             COMPREPLY=( $(compgen -W "[0xNNNN,0xNNNN,...]" -- $cur) )
    127             return 0
    128             ;;
    129         '--uim-get-file-attributes')
    130             COMPREPLY=( $(compgen -W "[0xNNNN,0xNNNN,...]" -- $cur) )
    131             return 0
    132             ;;
    133         '--wda-set-data-format')
    134             COMPREPLY=( $(compgen -W "[raw-ip|802-3]" -- $cur) )
    135             return 0
    136             ;;
    137         '-V'|'--version')
    138             return 0
    139             ;;
    140         '-h'|'--help'|'--help-all'|'--help-dms'|'--help-nas'|'--help-wds'|'--help-pbm'|'--help-uim'|'--help-wda')
    141             return 0
    142             ;;
    143     esac
    144 
    145     $split && return 0
    146 
    147     if [[ $cur == -* ]]; then
    148         COMPREPLY=( $( compgen -W '$( _parse_help "$1" --help-all )' -- "$cur" ) )
    149         [[ $COMPREPLY == *= ]] && compopt -o nospace
    150         return 0
    151     fi
    152 } &&
    153 complete -F _qmicli qmicli
    154 
    155 # ex: ts=4 sw=4 et filetype=sh