Package: black
Version: 18.9b0-1-6
Severity: minor

Dear Maintainer,

Please add bash-completion to this package.  Here is one that I wrote
that is available under the same license as black itself:

_have black &&
_black()
{
    local cur prev

    COMPREPLY=()
    cur=${COMP_WORDS[COMP_CWORD]}
    prev=${COMP_WORDS[COMP_CWORD-1]}

    case $prev in
        -l|--line-length|--include|--exclude)
            return 0;;
    esac
    if [[ "$cur" == -* ]]; then
        opts='-l -S -N -q -v -h'
        lopts='
            --check
            --config
            --diff
            --exclude
            --fast
            --include
            --line-length
            --quiet
            --safe
            --skip-numeric-underscore-normalization
            --skip-string-normalization
            --verbose
            --version
        '        
        COMPREPLY=( $(compgen -W "${opts[*]} ${lopts[*]}" -- $cur) )
    else
        _filedir
    fi
}
complete -F _black $filenames black



-- System Information:
Debian Release: 10.5
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable'), (100, 
'proposed-updates')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-9-amd64 (SMP w/8 CPU cores)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages black depends on:
ii  python3                3.7.3-1
ii  python3-appdirs        1.4.3-1
ii  python3-attr           18.2.0-1
ii  python3-click          7.0-1
ii  python3-pkg-resources  40.8.0-1
ii  python3-toml           0.10.0-1

black recommends no packages.

Versions of packages black suggests:
pn  python-black-doc  <none>

-- no debconf information

Reply via email to