Skip to content

Commit

Permalink
Merge pull request #43282 from jcarranzan/picocli-dev-mode-guide
Browse files Browse the repository at this point in the history
Documentation: Add a note related to quarkus-picocli in dev mode
  • Loading branch information
mkouba committed Sep 23, 2024
2 parents 4452e0f + 7c6eed7 commit bb58dbc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/src/main/asciidoc/picocli.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,10 @@ annotationProcessor 'info.picocli:picocli-codegen'
== Development Mode

In the development mode, i.e. when running `mvn quarkus:dev`, the application is executed and restarted every time the `Space bar` key is pressed. You can also pass arguments to your command line app via the `quarkus.args` system property, e.g. `mvn quarkus:dev -Dquarkus.args='--help'` and `mvn quarkus:dev -Dquarkus.args='-c -w --val 1'`. For gradle project arguments can be passed using `--quarkus-args`.
[NOTE]
====
If you're creating a typical Quarkus application (e.g., HTTP-based services) that includes command-line functionality, you'll need to handle the application's lifecycle differently. In the `Runnable.run()` method of your command, make sure to use `Quarkus.waitForExit()` or `Quarkus.asyncExit()`. This will prevent the application from shutting down prematurely and ensure a proper shutdown process.
====

== Kubernetes support

Expand Down

0 comments on commit bb58dbc

Please sign in to comment.