Package de.hsh.graja.core.apcli
Class BackendCommandProvider
java.lang.Object
de.hsh.graja.util.cli.CommandProvider
de.hsh.graja.core.apcli.BackendCommandProvider
- All Implemented Interfaces:
Comparable<CommandProvider>
This classprovides commands on the command line for various conversion tasks.
The commands are defined in various json files in the resources folder in the same package.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
This is themain
method of a command.protected String[]
getCommands
(Logging log) Methods inherited from class de.hsh.graja.util.cli.CommandProvider
compareTo, equals, getAdditionalAddModulesOption, getAdditionalModulePathOptionExample, getAdditionalModulePathOptionTemplate, getName, hashCode, provideCommands, validateCommand
-
Constructor Details
-
BackendCommandProvider
public BackendCommandProvider()
-
-
Method Details
-
getCommands
- Specified by:
getCommands
in classCommandProvider
-
executeCommand
public void executeCommand(Logging log, String command, TreeMap<String, Object> options) throws CommandExceptionDescription copied from class:CommandProvider
This is themain
method of a command. It is called byCommand.execute(Logging, String[])
.- Specified by:
executeCommand
in classCommandProvider
- Parameters:
log
- All output should go to this Logging instance- Throws:
CommandException
-