public class BaseAction extends java.lang.Object implements Action
Modifier and Type | Class and Description |
---|---|
static interface |
BaseAction.BaseActionArgs
Arguments for the BaseAction.
|
Modifier and Type | Field and Description |
---|---|
protected Framework |
framework |
protected CLIToolLogger |
main |
protected java.lang.String |
project |
Constructor and Description |
---|
BaseAction(CLIToolLogger main,
Framework framework,
BaseAction.BaseActionArgs args) |
BaseAction(CLIToolLogger main,
Framework framework,
org.apache.commons.cli.CommandLine cli) |
Modifier and Type | Method and Description |
---|---|
static BaseAction.BaseActionArgs |
createArgs(java.lang.String project,
boolean verbose)
Create BaseActionArgs instance
|
void |
exec()
Execute the action.
|
boolean |
isVerbose() |
protected static BaseAction.BaseActionArgs |
parseBaseActionArgs(org.apache.commons.cli.CommandLine cli) |
void |
setVerbose(boolean verbose) |
protected void |
validateInstall()
Check if software was installed and setup process was run
|
protected final CLIToolLogger main
protected final Framework framework
protected java.lang.String project
public BaseAction(CLIToolLogger main, Framework framework, org.apache.commons.cli.CommandLine cli)
public BaseAction(CLIToolLogger main, Framework framework, BaseAction.BaseActionArgs args)
public boolean isVerbose()
public void setVerbose(boolean verbose)
protected static BaseAction.BaseActionArgs parseBaseActionArgs(org.apache.commons.cli.CommandLine cli)
public static BaseAction.BaseActionArgs createArgs(java.lang.String project, boolean verbose)
project
- project nameverbose
- true if verbose output is onprotected void validateInstall()