mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-06 10:35:25 +00:00
18 lines
488 B
Bash
Executable File
18 lines
488 B
Bash
Executable File
#!/bin/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"
|