liveBook · Manning

QuarkusApplication

As explained in Quarkus in Action

QuarkusApplication is a Quarkus interface for defining the application entry point of a command-line application.

QuarkusApplication defines the entry point for a Quarkus command-line application. Annotate an implementing class with @QuarkusMain and implement run(String... args) to turn application logic into an executable command. section 4.10 section 4.8.2

A typical command-line application uses QuarkusApplication to:

  • Wait for asynchronous operations with await().indefinitely() before returning from the CLI invocation. section 4.8.2

Inventory command

An inventory CLI can expose add and remove operations, connect to the InventoryService gRPC server, and run with arguments such as `add KNIGHT Pontiac TransAM`. The command reports the inserted car after the remote operation completes.

How Quarkus in Action covers it

How deep it goes
Explains annotation, interface implementation, argument handling, and asynchronous completion, but defers broader CLI design guidance.
Examples
Demonstrates an inventory CLI that adds cars through InventoryService and confirms insertion from the command line.
What it assumes
Requires a Quarkus application with a configured gRPC client and an available InventoryService-style remote service.
What you can do after
Builds a Quarkus command-line tool that parses arguments, invokes a gRPC service, waits for completion, and reports results.
How it connects
Connects command-line applications with @QuarkusMain, gRPC clients, asynchronous computations, and native-image compilation.

This explainer was generated by Manning's knowledge graph from the text of Quarkus in Action. The section links point to the parts of the book it draws on.