Skip to content

Commit

Permalink
Expose batch subcommand (OpenAPITools#7608)
Browse files Browse the repository at this point in the history
Co-authored-by: Guillaume GILL <[email protected]>
  • Loading branch information
gillg and Guillaume GILL authored Oct 6, 2020
1 parent 8c11c8f commit 9236d56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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:"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9236d56

Please sign in to comment.