mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-12 20:50:55 +00:00
18 lines
496 B
Bash
Executable File
18 lines
496 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
SCRIPT="$0"
|
|
|
|
if [[ "$1" != "" ]]; then
|
|
NAME="$1"
|
|
echo "# START SCRIPT: ${SCRIPT} ${NAME}"
|
|
else
|
|
echo "Missing argument to ${SCRIPT}."
|
|
echo " Usage: ${SCRIPT} generator-name"
|
|
echo " Example: ${SCRIPT} groovy"
|
|
exit 1;
|
|
fi
|
|
|
|
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
|
|
|
|
java -jar ${executable} config-help -g "${NAME}" --full-details --named-header --format markdown --markdown-header -o "docs/generators/${NAME}.md"
|