public BaseExecutor
Base executor interface that specifies the execute() method and various helper methods
Modifier and Type | Interface and Description |
---|---|
static class |
BaseExecutor.DefaultImpls
Base executor interface that specifies the execute() method and various helper methods
|
Modifier and Type | Method and Description |
---|---|
void |
execute(java.lang.String[] args,
net.namibsun.papio.lib.db.DbHandler dbHandler,
ActionMode mode)
Executes the Executor for a specified mode
|
boolean |
getUserConfirmation(java.lang.String message)
Prompts a yes/no question to the user
Takes the cliConfirm flag in the Config into consideration.
|
net.sourceforge.argparse4j.inf.Namespace |
handleParserError(net.sourceforge.argparse4j.inf.ArgumentParser parser,
java.lang.String[] args)
Handles a parser error. On error, a helpful message will be output and the program will exit.
|
void execute(java.lang.String[] args, net.namibsun.papio.lib.db.DbHandler dbHandler, ActionMode mode)
Executes the Executor for a specified mode
args
- : The command line arguments to parsedbHandler
- : The database handler to usemode
- : The mode for which to executenet.sourceforge.argparse4j.inf.Namespace handleParserError(net.sourceforge.argparse4j.inf.ArgumentParser parser, java.lang.String[] args)
Handles a parser error. On error, a helpful message will be output and the program will exit.
parser
- : The parser to useargs
- : The command line arguments to parseboolean getUserConfirmation(java.lang.String message)
Prompts a yes/no question to the user Takes the cliConfirm flag in the Config into consideration.
message
- : The message to show the user