public abstract class AbstractCli extends Object
| Constructor and Description |
|---|
AbstractCli() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doMain(String[] args)
Main method which should be called from implementing class.
|
protected String |
getMainCommandName()
Get a main command name which can be overwritten
if default is not suitable for user cli implementation.
|
protected void |
handleRunnerExitCode(org.springframework.boot.cli.command.CommandRunner runner,
int exitCode) |
protected void |
registerCommand(org.springframework.boot.cli.command.Command command)
Register command.
|
protected void |
registerCommands(List<org.springframework.boot.cli.command.Command> commands)
Register commands.
|
protected void registerCommand(org.springframework.boot.cli.command.Command command)
command - the commandprotected void registerCommands(List<org.springframework.boot.cli.command.Command> commands)
commands - the commandsprotected void doMain(String[] args)
args - the program argsprotected void handleRunnerExitCode(org.springframework.boot.cli.command.CommandRunner runner,
int exitCode)
protected String getMainCommandName()