mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-06 17:05:34 +00:00
This change adds tab completion for the bcp-47 parameter in km-package-install. Fixes #5361
17 lines
470 B
Bash
17 lines
470 B
Bash
#!/usr/bin/env bash
|
|
|
|
_km-package-list-installed_completions()
|
|
{
|
|
local cur opts
|
|
COMPREPLY=()
|
|
cur="${COMP_WORDS[COMP_CWORD]}"
|
|
opts="-h --help -l --long -v --verbose -vv --veryverbose --version -u --user -o --os -s --shared"
|
|
|
|
if [[ ${cur} == -* ]] ; then
|
|
# shellcheck disable=SC2207
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
}
|
|
|
|
complete -F _km-package-list-installed_completions km-package-list-installed
|