Skip to content

Commit

Permalink
Delete langs command (#1836)
Browse files Browse the repository at this point in the history
* Delete langs command

* Delete "langs" from docker entrypoint script

* langs -> list

* langs -> list
  • Loading branch information
ackintosh authored and jimschubert committed Jan 7, 2019
1 parent 60776b8 commit 6e45567
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 45 deletions.
2 changes: 1 addition & 1 deletion docker-entrypoint.sh
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="list,generate,meta,langs,help,config-help,validate,version"
commands="list,generate,meta,help,config-help,validate,version"

# if CLI jar exists, check $1 against completions available in the CLI
if [[ -f "${codegen}" && -n "$(java ${JAVA_OPTS} -jar "${codegen}" completion | grep "^$1\$" )" ]]; then
Expand Down
2 changes: 1 addition & 1 deletion docs/migration-guide.adoc
Expand Up @@ -20,7 +20,7 @@ Version `4.0.0` is a major release, which contains some breaking changes without
The option is replaced with `-g` (`--generator-name`).

* `-g` allows the same values as `-l`
* See `langs` command for the list of generator name
* See `list` command for the list of generator name

=== From 3.1.x to 3.2.0

Expand Down
Expand Up @@ -50,7 +50,6 @@ public static void main(String[] args) {
ListGenerators.class,
Generate.class,
Meta.class,
Langs.class,
Help.class,
ConfigHelp.class,
Validate.class,
Expand Down
Expand Up @@ -50,7 +50,7 @@ public class Generate implements Runnable {
private Boolean verbose;

@Option(name = {"-g", "--generator-name"}, title = "generator name",
description = "generator to use (see langs command for list)")
description = "generator to use (see list command for list)")
private String generatorName;

@Option(name = {"-o", "--output"}, title = "output directory",
Expand Down

This file was deleted.

0 comments on commit 6e45567

Please sign in to comment.