Class ChangeDirectoryCommand
- java.lang.Object
-
- jadex.platform.service.cli.ACliCommand
-
- jadex.platform.service.cli.commands.ChangeDirectoryCommand
-
- All Implemented Interfaces:
ICliCommand
public class ChangeDirectoryCommand extends ACliCommand
Change the current working directory of the shell.
-
-
Constructor Summary
Constructors Constructor Description ChangeDirectoryCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArgumentInfo[]getArgumentInfos(CliContext context)Get the argument infos.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.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.
-
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.
-
getArgumentInfos
public ArgumentInfo[] getArgumentInfos(CliContext context)
Get the argument infos.- Specified by:
getArgumentInfosin interfaceICliCommand- Overrides:
getArgumentInfosin classACliCommand- Parameters:
context- The context.- Returns:
- The argument infos.
-
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.
-
-