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