Skip to content

Commit

Permalink
Making completion work with openapi-generator-cli or openapi-generator (
Browse files Browse the repository at this point in the history
#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 6f4ba25
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/openapi-generator-cli-completion.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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.