~dani.behzi/bash-completion/bash-completion

« back to all changes in this revision

Viewing changes to completions/vpnc

  • Committer: Package Import Robot
  • Author(s): Dimitri John Ledkov
  • Date: 2013-12-27 01:28:28 UTC
  • mfrom: (5.1.14 sid)
  • Revision ID: package-import@ubuntu.com-20131227012828-svk9wdy2ghic0cfh
Tags: 1:2.1-2ubuntu1
* Resync with Debian, remaining diff
  * debian/patches/disable-avahi-browse.diff: Disable avahi-browse since
    it scales poorly in the current form: refresh patch
  * mark Multi-Arch:foreign
  * debian/maintscript, debian/postinst:
    - clean etc conffiles on upgrade since completion files are in /usr
      with the new version
  * patches/101_bash_completion.oga_ogv.patch: Increase support for other
    OGG formats including .oga, .ogx, etc. (LP: #311525)

* Dropped changes:
  - patches/103_colormake.patch: Add support for colormake to the make
    completion rules. (LP: #743208)

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
    _init_completion || return
7
7
 
8
8
    case $prev in
9
 
        --pfs)
10
 
            COMPREPLY=( $( compgen -W 'nopfs dh1 dh2 dh5 server' -- "$cur" ) )
11
 
            return 0
12
 
            ;;
13
 
        --pfs)
14
 
            COMPREPLY=( $( compgen -W 'dh1 dh2 dh5' -- "$cur" ) )
15
 
            return 0
16
 
            ;;
17
 
        --pid-file|--script)
18
 
            _filedir
 
9
        --help|--long-help|--version|--id|--username|--domain|--ifname|\
 
10
        --application-version|--local-addr|--local-port|--udp-port|--dpd-idle|\
 
11
        --target-network)
19
12
            return 0
20
13
            ;;
21
14
        --gateway)
22
15
            _known_hosts_real "$cur"
23
16
            return 0
24
17
            ;;
 
18
        --vendor)
 
19
            COMPREPLY=( $( compgen -W 'cisco netscreen' -- "$cur" ) )
 
20
            return 0
 
21
            ;;
 
22
        --natt-mode)
 
23
            COMPREPLY=( $( compgen -W 'natt none force-natt cisco-udp' \
 
24
                -- "$cur" ) )
 
25
            return 0
 
26
            ;;
 
27
        --script|--pid-file|--ca-file)
 
28
            _filedir
 
29
            return 0
 
30
            ;;
 
31
        --dh)
 
32
            COMPREPLY=( $( compgen -W 'dh1 dh2 dh5' -- "$cur" ) )
 
33
            return 0
 
34
            ;;
 
35
        --pfs)
 
36
            COMPREPLY=( $( compgen -W 'nopfs dh1 dh2 dh5 server' -- "$cur" ) )
 
37
            return 0
 
38
            ;;
 
39
        --debug)
 
40
            COMPREPLY=( $( compgen -W '0 1 2 3 99' -- "$cur" ) )
 
41
            return 0
 
42
            ;;
 
43
        --auth-mode)
 
44
            COMPREPLY=( $( compgen -W 'psk cert hybrid' -- "$cur" ) )
 
45
            return 0
 
46
            ;;
 
47
        --ca-dir)
 
48
            _filedir -d
 
49
            return 0
 
50
            ;;
25
51
    esac
26
52
 
27
53
    if [[ "$cur" == -* ]]; then
28
 
        COMPREPLY=( $( compgen -W '--version --print-config --help \
29
 
            --long-help --gateway --id --username --udp --domain \
30
 
            --xauth-inter --script --dh --pfs --enable-1des \
31
 
            --application-version --ifname --debug --no-detach \
32
 
            --pid-file --local-port  --udp-port --disable-natt \
33
 
            --non-inter' -- "$cur" ) )
 
54
        COMPREPLY=( $( compgen -W '$( _parse_help "$1" --long-help )' \
 
55
            -- "$cur" ) )
34
56
    else
35
57
        COMPREPLY=( $( compgen -W '$( command ls /etc/vpnc )' -- "$cur" ) )
36
58
    fi