| 1 |
# /usr/share/bash-completion/completions/licensecheck |
| 2 |
# Bash command completion for ‘licensecheck(1)’. |
| 3 |
# Documentation: ‘bash(1)’, section “Programmable Completion”. |
| 4 |
|
| 5 |
# Copyright © 2015, Nicholas Bamber <[email protected]> |
| 6 |
|
| 7 |
_licensecheck() |
| 8 |
{ |
| 9 |
local cur prev words cword i _options special _prefix |
| 10 |
_init_completion || return |
| 11 |
|
| 12 |
case $prev in |
| 13 |
--tail) |
| 14 |
COMPREPLY=( $( compgen -W '0 1000 2000 3000' -- "$cur" ) ) |
| 15 |
return 0 |
| 16 |
;; |
| 17 |
--lines) |
| 18 |
COMPREPLY=( $( compgen -W '120 200 300 400' -- "$cur" ) ) |
| 19 |
return 0 |
| 20 |
;; |
| 21 |
esac |
| 22 |
|
| 23 |
if [[ "$cur" == -* ]]; then |
| 24 |
_options='--verbose --no-verbose --lines --ignore --recursive --tail --check --copyright --machine --skipped' |
| 25 |
COMPREPLY=( $( compgen -W "${_options}" -- "$cur" ) ) |
| 26 |
else |
| 27 |
COMPREPLY=( $( compgen -o filenames -f -- "$cur" ) ) |
| 28 |
fi |
| 29 |
|
| 30 |
return 0 |
| 31 |
} && |
| 32 |
complete -F _licensecheck licensecheck |
| 33 |
|
| 34 |
|
| 35 |
# Local variables: |
| 36 |
# coding: utf-8 |
| 37 |
# mode: shell-script |
| 38 |
# indent-tabs-mode: nil |
| 39 |
# End: |
| 40 |
# vim: fileencoding=utf-8 filetype=sh expandtabs shiftwidth=4 : |