Package io.dropwizard.core.cli
Class Cli
java.lang.Object
io.dropwizard.core.cli.Cli
The command-line runner for Dropwizard application.
-
Constructor Summary
ConstructorsConstructorDescriptionCli(io.dropwizard.util.JarLocation location, Bootstrap<?> bootstrap, OutputStream stdOut, OutputStream stdErr) Create a new CLI interface for an application and its bootstrapped environment. -
Method Summary
Modifier and TypeMethodDescriptionRuns the command line interface given some arguments.
-
Constructor Details
-
Cli
public Cli(io.dropwizard.util.JarLocation location, Bootstrap<?> bootstrap, OutputStream stdOut, OutputStream stdErr) Create a new CLI interface for an application and its bootstrapped environment.- Parameters:
location- the location of the applicationbootstrap- the bootstrap for the applicationstdOut- standard outstdErr- standard err
-
-
Method Details
-
run
Runs the command line interface given some arguments.- Parameters:
arguments- the command line arguments- Returns:
- the error or an empty optional if command succeeded
-
getStdOut
-
getStdErr
-