Picocli Integration
The PicocliCommandRegistry implements both CommandRegistry (old API) and CommandGroup (new API), so picocli commands work with both the old and new shell infrastructure.
Basic Usage
Loading snippet: PicocliJLineExample...
How It Works
PicocliCommandRegistry wraps a picocli CommandLine and:
- Exposes each subcommand as a JLine
Command - Provides tab completion from picocli's option and subcommand definitions
- Generates
CommandDescriptionfor TailTipWidgets - Delegates execution to picocli's
CommandLine.execute()
Maven Dependencies
<dependency>
<groupId>org.jline</groupId>
<artifactId>jline-picocli</artifactId>
<version>${jline.version}</version>
</dependency>
<dependency>
<groupId>info.picocli</groupId>
<artifactId>picocli</artifactId>
<version>${picocli.version}</version>
</dependency>