Skip to content

Commit

Permalink
Use picocli 1.2.0 module
Browse files Browse the repository at this point in the history
  • Loading branch information
graemerocher committed Aug 2, 2019
1 parent 29085d4 commit 1355989
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 298 deletions.
2 changes: 1 addition & 1 deletion cli/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ repositories {
}

dependencies {
compile "info.picocli:picocli:$picocliVersion"
compile "info.picocli:picocli-groovy:$picocliVersion"
compile "org.apache.ant:ant:1.9.7"
compile dependencyModuleVersion("groovy", "groovy-ant")
compile dependencyModuleVersion("groovy", "groovy-json")
Expand Down
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ micronautSecurityVersion=1.2.0.RC1
micronautKafkaVersion=1.2.0
micronautHibernateValidatorVersion=1.2.0
micronautJmxVersion=1.2.0
micronautPicocliVersion=1.2.0.RC1
micronautPicocliVersion=1.2.0
micronautCassandraVersion=1.2.0
micronautRabbitMQVersion=1.1.1
micronautNetflixVersion=1.0.4
Expand All @@ -64,7 +64,7 @@ micronautRssVersion=1.0.0
micronautKubernetesVersion=1.0.0
junit5Version=5.5.0
javaxAnnotationApiVersion=1.3.2
picocliVersion=3.5.2
picocliVersion=4.0.1
reactiveStreamsVersion=1.0.2
jsr305Version=3.0.2
caffeineVersion=2.5.6
Expand Down Expand Up @@ -105,7 +105,7 @@ systemRulesVersion=1.19.0
gebVersion=2.3.1
seleniumVersion=3.13.0
webdriverBinariesVersion=1.4
graalVersion=19.0.0
graalVersion=19.1.1
h2Version=1.4.199
tomcatJdbcVersion=9.0.21
liquibaseVersion=3.6.3
Expand Down
31 changes: 1 addition & 30 deletions src/main/docs/guide/commandLineApps/picocli.adoc
Original file line number Diff line number Diff line change
@@ -1,32 +1,3 @@
https://github.com/remkop/picocli[Picocli] is a command line parser that supports usage help with ANSI colors, autocomplete and nested subcommands. It has an annotations API to create command line applications with almost no code, and a programmatic API for dynamic uses like creating Domain Specific Languages.

From the project Readme page:

[quote]
____
How it works: annotate your class and picocli initializes it from the command line arguments,
converting the input to strongly typed data. Supports git-like http://picocli.info/#_subcommands[subcommands]
(and nested http://picocli.info/#_nested_sub_subcommands[sub-subcommands]),
any option prefix style, POSIX-style http://picocli.info/#_short_options[grouped short options],
http://picocli.info/#_interactive_password_options[password options],
custom http://picocli.info/#_custom_type_converters[type converters] and more.
Parser http://picocli.info/#_tracing[tracing] facilitates troubleshooting.
It distinguishes between link:http://picocli.info/#_options[named options] and
http://picocli.info/#_positional_parameters[positional parameters] and allows both to be
http://picocli.info/#_strongly_typed_everything[strongly typed].
http://picocli.info/#_multiple_values[Multi-valued fields] can specify
an exact number of parameters or a http://picocli.info/#_arity[range] (e.g., `0..*`, `1..2`).
Supports http://picocli.info/#_maps[Map options] like `-Dkey1=val1 -Dkey2=val2`, where both key and value can be strongly typed.
It generates polished and easily tailored http://picocli.info/#_usage_help[usage help]
and http://picocli.info/#_version_help[version help],
using http://picocli.info/#_ansi_colors_and_styles[ANSI colors] where possible.
Picocli-based command line applications can have http://picocli.info/autocomplete.html[TAB autocompletion],
interactively showing users what options and subcommands are available.
Picocli can generate completion scripts for bash and zsh, and offers an API to easily create a https://github.com/jline/jline2[JLine] `Completer` for your application.
____

Micronaut features dedicated support for defining picocli `Command` instances. Micronaut applications built with picocli can be deployed with or without the presence of an HTTP server.

Combining picocli with Micronaut makes it easy to provide a rich, well-documented command line interface for your Microservices.
See the https://micronaut-projects.github.io/micronaut-picocli/latest/guide/[documentation for the Picocli integration] for more information.

This file was deleted.

153 changes: 0 additions & 153 deletions src/main/docs/guide/commandLineApps/picocli/picocliQuickStart.adoc

This file was deleted.

2 changes: 0 additions & 2 deletions src/main/docs/guide/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,6 @@ commandLineApps:
title: Standalone Command Line Applications
picocli:
title: Picocli Support
picocliGenerateProject: Generating a Project with the Micronaut CLI
picocliQuickStart: Picocli Quick Start
configurations:
title: Configurations
dataAccess:
Expand Down
15 changes: 8 additions & 7 deletions src/main/docs/guide/whatsNew.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -128,17 +128,18 @@ This version references the https://micronaut-projects.github.io/micronaut-rss/l

- Groovy `2.5.4` -> `2.5.6`
- Gradle `5.1.1` -> `Gradle 5.5` (for new applications)
- Micronaut SQL `1.1.1` -> `1.2.0.RC1`
- Micronaut Micrometer `1.1.0` -> `1.2.0.RC2`
- Micronaut SQL `1.1.1` -> `1.2.0`
- Micronaut Micrometer `1.1.0` -> `1.2.0`
- Micrometer `1.1.5` -> `1.2.0`
- Micronaut Security `1.1.1` -> `1.2.0.RC1`
- Micronaut Views `1.1.3` -> `1.2.0.RC1`
- Netty `4.1.30.Final` -> `4.1.37.Final`
- Micronaut Security `1.1.1` -> `1.2.0`
- Micronaut Views `1.1.3` -> `1.2.0`
- Micronaut Test `1.0.4` -> `1.1.0`
- Netty `4.1.30.Final` -> `4.1.38.Final`
- Neo4j Driver `1.7.2` -> `1.7.5`
- Mongo Driver `3.8.0` -> `3.10.1`
- Mongo Reactive Streams `1.10.0` -> `1.11.0`
- Open Tracing `0.33.10` -> `0.33.13`
- Kafka `2.1.1` -> `2.3.0`
- Snake YAML `1.23` -> `1.24`
- Lettuce `5.1.3.RELEASE` -> `5.1.7.RELEASE`
- JUnit `5.3.2` -> `5.5.0`
- JUnit `5.3.2` -> `5.5.0`
- Picocli `3.5.2` -> `4.0.1`

0 comments on commit 1355989

Please sign in to comment.