Package com.io7m.quarrel.core
Interface QCommandType
- All Superinterfaces:
QCommandOrGroupType
- All Known Implementing Classes:
ExCat,ExCmd0,ExCmd1,ExCow,ExDog,ExEverything,ExMeta,QCommandApplicationUsage,QCommandHelp,QCommandVersion,QCommandXS
The interface implemented by commands.
-
Method Summary
Modifier and TypeMethodDescriptiononExecute(QCommandContextType context) Execute the command.default QParametersPositionalTypeMethods inherited from interface com.io7m.quarrel.core.QCommandOrGroupType
isHidden, metadata
-
Method Details
-
onListNamedParameters
List<QParameterNamedType<?>> onListNamedParameters()- Returns:
- The named parameters for the command
-
onListPositionalParameters
- Returns:
- The positional parameters for the command
-
onExecute
Execute the command.- Parameters:
context- The command context- Returns:
- The result of execution
- Throws:
Exception- On errors
-