aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmicli/qmicli-completion
blob: f35927ff567bd0294be2640e85c06e43a4f5b3b0 (plain)
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
# qmicli(1) completion                                      -*- shell-script -*-

_qmicli()
{
    local cur prev words cword split
    _init_completion -s || return

    case $prev in
        -d|--device)
            _filedir
            return 0
            ;;
        '--device-set-instance-id')
            COMPREPLY=( $(compgen -W "[Instance-ID]" -- $cur) )
            return 0
            ;;
        '--device-open-net')
            COMPREPLY=( $(compgen -W "[net-802-3|net-raw-ip|net-qos-header|net-no-qos-header]" -- $cur) )
            return 0
            ;;
        '--client-cid')
            COMPREPLY=( $(compgen -W "[CID]" -- $cur) )
            return 0
            ;;
        '--dms-uim-set-pin-protection')
            COMPREPLY=( $(compgen -W "[(PIN|PIN2),(disable|enable),(current-PIN)]" -- $cur) )
            return 0
            ;;
        '--dms-uim-verify-pin')
            COMPREPLY=( $(compgen -W "[(PIN|PIN2),(current-PIN)]" -- $cur) )
            return 0
            ;;
        '--dms-uim-unblock-pin')
            COMPREPLY=( $(compgen -W "[(PIN|PIN2),(PUK),(new-PIN)]" -- $cur) )
            return 0
            ;;
        '--dms-uim-change-pin')
            COMPREPLY=( $(compgen -W "[(PIN|PIN2),(old-PIN),(new-PIN)]" -- $cur) )
            return 0
            ;;
        '--dms-uim-get-ck-status')
            COMPREPLY=( $(compgen -W "[(pn|pu|pp|pc|pf)]" -- $cur) )
            return 0
            ;;
        '--dms-uim-set-ck-protection')
            COMPREPLY=( $(compgen -W "[(pn|pu|pp|pc|pf),(disable),(key)]" -- $cur) )
            return 0
            ;;
        '--dms-uim-unblock-ck')
            COMPREPLY=( $(compgen -W "[(pn|pu|pp|pc|pf),(key)]" -- $cur) )
            return 0
            ;;
        '--dms-set-operating-mode')
            COMPREPLY=( $(compgen -W "[(Operating-Mode)]" -- $cur) )
            return 0
            ;;
        '--dms-activate-automatic')
            COMPREPLY=( $(compgen -W "[Activation-Code]" -- $cur) )
            return 0
            ;;
        '--dms-activate-manual')
            COMPREPLY=( $(compgen -W "[SPC,SID,MDN,MIN]" -- $cur) )
            return 0
            ;;
        '--dms-set-user-lock-state')
            COMPREPLY=( $(compgen -W "[(disable|enable),(current-lock-code)]" -- $cur) )
            return 0
            ;;
        '--dms-set-user-lock-code')
            COMPREPLY=( $(compgen -W "[(old-lock-code),(new-lock-code)]" -- $cur) )
            return 0
            ;;
        '--dms-write-user-data')
            COMPREPLY=( $(compgen -W "[(User-data)]" -- $cur) )
            return 0
            ;;
        '--dms-restore-factory-defaults')
            COMPREPLY=( $(compgen -W "[(Service-Programming-Code)]" -- $cur) )
            return 0
            ;;
        '--dms-validate-service-programming-code')
            COMPREPLY=( $(compgen -W "[(Service-Programming-Code)]" -- $cur) )
            return 0
            ;;
        '--dms-select-stored-image')
            COMPREPLY=( $(compgen -W "[modem#,pri#]" -- $cur) )
            return 0
            ;;
        '--dms-delete-stored-image')
            COMPREPLY=( $(compgen -W "[modem#,pri#]" -- $cur) )
            return 0
            ;;
        '--nas-get-tx-rx-info')
            COMPREPLY=( $(compgen -W "[(Radio-Interface)]" -- $cur) )
            return 0
            ;;
        '--nas-set-system-selection-preference')
            COMPREPLY=( $(compgen -W "[cdma-1x|cdma-1xevdo|gsm|umts|lte|td-scdma]" -- $cur) )
            return 0
            ;;
        '--wds-start-network')
            COMPREPLY=( $(compgen -W "[(APN),(PAP|CHAP|BOTH),(Username),(Password)]" -- $cur) )
            return 0
            ;;
        '--wds-stop-network')
            COMPREPLY=( $(compgen -W "[Packet-data-handle]" -- $cur) )
            return 0
            ;;
        '--wds-get-profile-list')
            COMPREPLY=( $(compgen -W "[3gpp|3gpp2]" -- $cur) )
            return 0
            ;;
        '--wds-get-default-settings')
            COMPREPLY=( $(compgen -W "[3gpp|3gpp2]" -- $cur) )
            return 0
            ;;
        '--uim-read-transparent')
            COMPREPLY=( $(compgen -W "[0xNNNN,0xNNNN,...]" -- $cur) )
            return 0
            ;;
        '--uim-get-file-attributes')
            COMPREPLY=( $(compgen -W "[0xNNNN,0xNNNN,...]" -- $cur) )
            return 0
            ;;
        '--wda-set-data-format')
            COMPREPLY=( $(compgen -W "[raw-ip|802-3]" -- $cur) )
            return 0
            ;;
        '-V'|'--version')
            return 0
            ;;
        '-h'|'--help'|'--help-all'|'--help-dms'|'--help-nas'|'--help-wds'|'--help-pbm'|'--help-uim'|'--help-wda')
            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 _qmicli qmicli

# ex: ts=4 sw=4 et filetype=sh