CLI Profile Commands
The cli profile lets you generate CLI commands to control your application.
Create-Command
Flag | Description | Example |
---|---|---|
| The language used for the command |
|
| Whether to overwrite existing files |
|
The create-command
command generates a standalone application that can be executed as a picocli Command. It follows a *Command
convention for generating the class name. It creates an associated test that will run the application and verify that a command line option was set.
$ mn create-command print
| Rendered template Command.java to destination src/main/java/example/PrintCommand.java
| Rendered template CommandTest.java to destination src/test/java/example/PrintCommandTest.java