openapi-generator/modules/openapi-generator-cli
Jim Schubert 640fd87e3b [cli] Completions command for suggestions (#213)
* [cli] Completions command for suggestions

This takes airlift's 'suggest' command and reuses it as a different
command name, 'completion'. This gives us in-built CLI completions which
are useful in the repo-level container's docker-entrypoint.sh. This
previously parsed Java files for conventional usage of Command
annotations, which is potentially buggy. The new implementation relies
only on CLI to provide command completion suggestions.

As part of this, we can prepare for bash completion scripts which can be
added to our homebrew formula.  The new completion command will also
complete on command options, for example:

cli completion generate

This will provide all short and long form switches available to the
generate command.

* Add piggyback license onto licensed of file borrowed from airlift/airline
2018-06-10 19:33:00 +08:00
..
src [cli] Completions command for suggestions (#213) 2018-06-10 19:33:00 +08:00
Dockerfile Changes for Docker (#400) 2018-05-11 11:41:42 +08:00
pom.xml [cli] Write to stdout/stderr, allow redirection (#207) 2018-06-07 12:45:03 +08:00