File: phpdoc-completion.sh

package info (click to toggle)
php-doc 20250827~git.abe740d%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 71,968 kB
  • sloc: xml: 985,760; php: 25,504; javascript: 671; sh: 177; makefile: 37
file content (36 lines) | stat: -rwxr-xr-x 758 bytes parent folder | download | duplicates (3)
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
# ex: ts=4 sw=4 et filetype=sh

_phpdoc()
{
    local cur opts
    COMPREPLY=()
    cur="${COMP_WORDS[COMP_CWORD]}"
    opts="
        --help
        --version
        --quiet
        --srcdir=
        --basedir=
        --rootdir=
        --enable-force-dom-save
        --enable-chm
        --enable-howto
        --with-lang=
        --disable-segfault-error
        --disable-segfault-speed
        --disable-version-files
        --disable-libxml-check
        --with-php=
        --with-partial=
        --generate=
        --output=
        --disable-broken-file-listing
        --redirect-stderr-to-stdout"

    if [[ ${cur} == -* ]] ; then
        COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
        return 0
    fi
}

complete -F _phpdoc phpdoc