completion: composer: Add shellcheck directives

pull/1807/head
Noah Gorny 2021-01-22 23:48:24 +02:00
parent dbfcb431a8
commit e9f28ff745
1 changed files with 2 additions and 0 deletions

View File

@ -114,6 +114,7 @@ function _composer() {
esac esac
# shellcheck disable=SC2207
COMPREPLY=($(compgen -W "${opts}" -- "${cur}")) COMPREPLY=($(compgen -W "${opts}" -- "${cur}"))
__ltrim_colon_completions "$cur" __ltrim_colon_completions "$cur"
@ -124,6 +125,7 @@ function _composer() {
if [[ "$cur" == "$com" ]]; then if [[ "$cur" == "$com" ]]; then
coms="about archive browse clear-cache config create-project depends diagnose dump-autoload exec global help init install licenses list outdated prohibits remove require run-script search self-update show status suggests update validate" coms="about archive browse clear-cache config create-project depends diagnose dump-autoload exec global help init install licenses list outdated prohibits remove require run-script search self-update show status suggests update validate"
# shellcheck disable=SC2207
COMPREPLY=($(compgen -W "${coms}" -- "${cur}")) COMPREPLY=($(compgen -W "${coms}" -- "${cur}"))
__ltrim_colon_completions "$cur" __ltrim_colon_completions "$cur"