Class HelpCommand
- java.lang.Object
-
- jadex.platform.service.cli.ACliCommand
-
- jadex.platform.service.cli.commands.HelpCommand
-
- All Implemented Interfaces:
ICliCommand
public class HelpCommand extends ACliCommand
The help command can be used to display all available or a specific command.
-
-
Constructor Summary
Constructors Constructor Description HelpCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArgumentInfo[]getArgumentInfos(CliContext context)Get the argument types.java.lang.StringgetDescription()Get the command description.java.lang.StringgetExampleUsage()Get example usage(s).java.lang.String[]getNames()Get the command names (name including alias').ResultInfogetResultInfo(CliContext context, java.util.Map<java.lang.String,java.lang.Object> args)Get the result info.protected java.lang.StringgetShortCommandInfo(ICliCommand cmd)Get a short command info.java.lang.ObjectinvokeCommand(CliContext context, java.util.Map<java.lang.String,java.lang.Object> args)Invoke the command.-
Methods inherited from class jadex.platform.service.cli.ACliCommand
invokeCommand
-
-
-
-
Method Detail
-
getNames
public java.lang.String[] getNames()
Get the command names (name including alias').- Specified by:
getNamesin interfaceICliCommand- Specified by:
getNamesin classACliCommand- Returns:
- A string array of the command name and optional further alias names.
-
getDescription
public java.lang.String getDescription()
Get the command description.- Specified by:
getDescriptionin interfaceICliCommand- Overrides:
getDescriptionin classACliCommand- Returns:
- The command description.
-
getExampleUsage
public java.lang.String getExampleUsage()
Get example usage(s).- Specified by:
getExampleUsagein interfaceICliCommand- Overrides:
getExampleUsagein classACliCommand- Returns:
- Example usages.
-
getArgumentInfos
public ArgumentInfo[] getArgumentInfos(CliContext context)
Get the argument types.- Specified by:
getArgumentInfosin interfaceICliCommand- Overrides:
getArgumentInfosin classACliCommand- Parameters:
context- The context.- Returns:
- The argument infos.
-
invokeCommand
public java.lang.Object invokeCommand(CliContext context, java.util.Map<java.lang.String,java.lang.Object> args)
Invoke the command.- Specified by:
invokeCommandin interfaceICliCommand- Specified by:
invokeCommandin classACliCommand- Parameters:
context- The context.args- The arguments.
-
getResultInfo
public ResultInfo getResultInfo(CliContext context, java.util.Map<java.lang.String,java.lang.Object> args)
Get the result info.- Specified by:
getResultInfoin interfaceICliCommand- Overrides:
getResultInfoin classACliCommand- Parameters:
context- The context.- Returns:
- The result info.
-
getShortCommandInfo
protected java.lang.String getShortCommandInfo(ICliCommand cmd)
Get a short command info.- Parameters:
cmd- The command.
-
-