public class CD extends Command
Modifier and Type | Field and Description |
---|---|
static String[] |
commandPath |
Constructor and Description |
---|
CD() |
Modifier and Type | Method and Description |
---|---|
int |
execute(Location location,
List<String> args)
The abstract call to execute the Command
|
jline.console.completer.Completer |
getCompleter(Location currentLocation) |
static Location |
getLocation(Location location,
String locationName) |
String |
getUsageDescription() |
String |
getUsageExample() |
addArgument, addOption, addOption, checkArguments, confirm, confirm, defaultArgumentResultHandler, getCommandArgumentList, getCommandLine, getCommandLineOptions, getCommandPath, getUsageHeader, handleBooleanResponse, handleResponse, isCompleteArgumentList, printHelp, println, printUsage
public static final String[] commandPath
public CD() throws AlpacaException
AlpacaException
public int execute(Location location, List<String> args) throws AlpacaException
Command
execute
in class Command
location
- The location executing the command.args
- The command line arguments.AlpacaException
- Thrown if an unexpected error occurs while running the command.public jline.console.completer.Completer getCompleter(Location currentLocation)
getCompleter
in class Command
public String getUsageDescription()
getUsageDescription
in class Command
public String getUsageExample()
getUsageExample
in class Command
Copyright © 2017 ECG. All rights reserved.