Skip to content

Commit 6f4ba25

Browse files
djpadzwing328
authored andcommitted
Making completion work with openapi-generator-cli or openapi-generator (OpenAPITools#2027)
Homebrew installs openapi-generator-cli as openapi-generator. This will make bash completion work with either.
1 parent 888068d commit 6f4ba25

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/openapi-generator-cli-completion.bash

+3-1
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,6 @@ _openapi_generator_cli_completions() {
4343
fi
4444
}
4545

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

0 commit comments

Comments
 (0)