AlaK4X
Linux lhjmq-records 5.15.0-118-generic #128-Ubuntu SMP Fri Jul 5 09:28:59 UTC 2024 x86_64



Your IP : 3.135.249.76


Current Path : /usr/share/bash-completion/completions/
Upload File :
Current File : //usr/share/bash-completion/completions/xmllint

# bash completion for xmllint(1)                           -*- shell-script -*-

_xmllint()
{
    local cur prev words cword
    _init_completion || return

    case $prev in
        -o | --output)
            _filedir
            return
            ;;
        --path | --dtdvalidfpi | --maxmem | --pattern | --xpath)
            # argument required but no completions available
            return
            ;;
        --dtdvalid)
            _filedir 'dtd?(.gz)'
            return
            ;;
        --relaxng)
            _filedir 'rng?(.gz)'
            return
            ;;
        --schema)
            _filedir 'xsd?(.gz)'
            return
            ;;
        --schematron)
            _filedir 'sch?(.gz)'
            return
            ;;
        --encode)
            _xfunc iconv _iconv_charsets
            return
            ;;
        --pretty)
            COMPREPLY=($(compgen -W '{0..2}' -- "$cur"))
            return
            ;;
    esac

    if [[ $cur == -* ]]; then
        COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur"))
        COMPREPLY=("${COMPREPLY[@]%:}")
        return
    fi

    _filedir '@(*ml|htm|svg?(z)|xs[dl]|rng|wsdl|jnlp|tld|dbk|docbook|page)?(.gz)'
} &&
    complete -F _xmllint xmllint

# ex: filetype=sh