/usr/share/bash-completion/completions/licensecheck is in devscripts 2.16.2ubuntu3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | # Debian licensecheck(1) completion -*- shell-script -*-
# Copyright: 2015, Nicholas Bamber <nicholas@periapt.co.uk>
_licensecheck()
{
local cur prev words cword i _options special _prefix
_init_completion || return
case $prev in
--tail)
COMPREPLY=( $( compgen -W '0 1000 2000 3000' -- "$cur" ) )
return 0
;;
--lines)
COMPREPLY=( $( compgen -W '120 200 300 400' -- "$cur" ) )
return 0
;;
esac
if [[ "$cur" == -* ]]; then
_options='--verbose --no-verbose --lines --ignore --recursive --tail --check --copyright --machine --skipped'
if [[ "$prev" == licensecheck ]]; then
_options+=' --no-conf'
fi
COMPREPLY=( $( compgen -W "${_options}" -- "$cur" ) )
else
COMPREPLY=( $( compgen -o filenames -f -- "$cur" ) )
fi
return 0
} &&
complete -F _licensecheck licensecheck
# ex: ts=4 sw=4 et filetype=sh
|