mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-06 10:35:25 +00:00
a5349cfde5
* Filter deprecated generators from CLI list by default. * [gradle] Exclude deprecated generators from list by default, add "include" option to allow for customization of list task. * Update scripts to support the --include option of the list command * Update gradle/cli docs for generators listing with "include" option.
21 lines
359 B
Bash
Executable File
21 lines
359 B
Bash
Executable File
#!/bin/sh
|
|
|
|
SCRIPT="$0"
|
|
echo "# START SCRIPT: $SCRIPT"
|
|
|
|
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
|
|
|
|
\rm -rf docs/generators.md
|
|
|
|
cat > docs/generators.md << EOF
|
|
---
|
|
id: generators
|
|
title: Generators List
|
|
---
|
|
|
|
EOF
|
|
|
|
java -jar $executable list --docsite --include all >> docs/generators.md
|
|
|
|
echo "Wrote $(pwd)/docs/generators.md"
|