diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 7671853d66ef..5091cf3996d6 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -12,7 +12,7 @@ codegen="${cli}/target/openapi-generator-cli.jar" # We code in a list of commands here as source processing is potentially buggy (requires undocumented conventional use of annotations). # A list of known commands helps us determine if we should compile CLI. There's an edge-case where a new command not added to this # list won't be considered a "real" command. We can get around that a bit by checking CLI completions beforehand if it exists. -commands="config-help,generate,help,list,meta,validate,version" +commands="config-help,generate,batch,help,list,meta,validate,version" if [ $# == 0 ]; then echo "No command specified. Available commands:" diff --git a/modules/openapi-generator-cli/src/main/java/org/openapitools/codegen/cmd/GenerateBatch.java b/modules/openapi-generator-cli/src/main/java/org/openapitools/codegen/cmd/GenerateBatch.java index 98e3076b67ba..cb2ae60dbaf9 100644 --- a/modules/openapi-generator-cli/src/main/java/org/openapitools/codegen/cmd/GenerateBatch.java +++ b/modules/openapi-generator-cli/src/main/java/org/openapitools/codegen/cmd/GenerateBatch.java @@ -61,7 +61,7 @@ import java.util.stream.Stream; @SuppressWarnings({"unused", "MismatchedQueryAndUpdateOfCollection", "java:S106"}) -@Command(name = "batch", description = "Generate code in batch via external configs.", hidden = true) +@Command(name = "batch", description = "Generate code in batch via external configs.") public class GenerateBatch extends OpenApiGeneratorCommand { private static AtomicInteger failures = new AtomicInteger(0); private static AtomicInteger successes = new AtomicInteger(0);