public class Cli
extends java.lang.Object
| Constructor | Description |
|---|---|
Cli(io.dropwizard.util.JarLocation location,
Bootstrap<?> bootstrap,
java.io.OutputStream stdOut,
java.io.OutputStream stdErr) |
Create a new CLI interface for a application and its bootstrapped environment.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.io.PrintWriter |
getStdErr() |
|
java.io.PrintWriter |
getStdOut() |
|
boolean |
run(java.lang.String... arguments) |
Runs the command line interface given some arguments.
|
public Cli(io.dropwizard.util.JarLocation location,
Bootstrap<?> bootstrap,
java.io.OutputStream stdOut,
java.io.OutputStream stdErr)
location - the location of the applicationbootstrap - the bootstrap for the applicationstdOut - standard outstdErr - standard errpublic boolean run(java.lang.String... arguments)
throws java.lang.Exception
arguments - the command line argumentsjava.lang.Exception - if something goes wrongpublic java.io.PrintWriter getStdOut()
public java.io.PrintWriter getStdErr()
Copyright © 2018. All rights reserved.