public abstract class AbstractCli
extends java.lang.Object
Constructor and Description |
---|
AbstractCli() |
Modifier and Type | Method and Description |
---|---|
protected void |
doMain(java.lang.String[] args)
Main method which should be called from implementing class.
|
protected java.lang.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(java.util.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(java.util.List<org.springframework.boot.cli.command.Command> commands)
commands
- the commandsprotected void doMain(java.lang.String[] args)
args
- the program argsprotected void handleRunnerExitCode(org.springframework.boot.cli.command.CommandRunner runner, int exitCode)
protected java.lang.String getMainCommandName()