Package de.hsh.graja.starter.apcli
Class StarterCommandProvider
- java.lang.Object
-
- de.hsh.graja.util.cli.CommandProvider
-
- de.hsh.graja.starter.apcli.StarterCommandProvider
-
- All Implemented Interfaces:
Comparable<CommandProvider>
public class StarterCommandProvider extends 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 Constructor Description StarterCommandProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
executeCommand(Logging log, String command, TreeMap<String,Object> options)
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
-
-
-
-
Method Detail
-
getCommands
protected String[] getCommands(Logging log)
- Specified by:
getCommands
in classCommandProvider
-
executeCommand
public void executeCommand(Logging log, String command, TreeMap<String,Object> options) throws CommandException
Description 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
-
-