Permalink
Browse files

Making completion work with openapi-generator-cli or openapi-generator (

#2027)

Homebrew installs openapi-generator-cli as openapi-generator.  This will make bash completion work with either.
  • Loading branch information...
djpadz authored and wing328 committed Feb 2, 2019
1 parent 888068d commit 6f4ba25cd8eb8799ad4b8bc34ea91226d8978559
Showing with 3 additions and 1 deletion.
  1. +3 −1 scripts/openapi-generator-cli-completion.bash
@@ -43,4 +43,6 @@ _openapi_generator_cli_completions() {
fi
}

complete -F _openapi_generator_cli_completions openapi-generator-cli
for i in openapi-generator-cli openapi-generator; do
type $i > /dev/null 2>&1 && complete -F _openapi_generator_cli_completions $i
done

0 comments on commit 6f4ba25

Please sign in to comment.