public class Tree extends Command
Modifier and Type | Field and Description |
---|---|
static String[] |
commandPath |
Constructor and Description |
---|
Tree() |
Modifier and Type | Method and Description |
---|---|
int |
execute(Location location,
List<String> args)
The abstract call to execute the Command
|
String |
getUsageDescription() |
String |
getUsageExample() |
String |
markdownBranch(TreeNode<String> branch,
int depth,
HashMap<TreeNode<String>,Command> commandMap) |
void |
outputMarkdown(PrintStream out,
HashMap<String,TreeNode<String>> locationMap,
HashMap<String,HashMap<TreeNode<String>,Command>> commandMap) |
void |
outputPlainText(PrintStream out,
HashMap<String,TreeNode<String>> locationMap,
HashMap<String,HashMap<TreeNode<String>,Command>> commandMap) |
String |
plainTextBranch(TreeNode<String> branch,
int depth,
HashMap<TreeNode<String>,Command> commandMap) |
addArgument, addOption, addOption, checkArguments, confirm, confirm, defaultArgumentResultHandler, getCommandArgumentList, getCommandLine, getCommandLineOptions, getCommandPath, getCompleter, getUsageHeader, handleBooleanResponse, handleResponse, isCompleteArgumentList, printHelp, println, printUsage
public static final String[] commandPath
public Tree() 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 String getUsageDescription()
getUsageDescription
in class Command
public void outputPlainText(PrintStream out, HashMap<String,TreeNode<String>> locationMap, HashMap<String,HashMap<TreeNode<String>,Command>> commandMap)
public String plainTextBranch(TreeNode<String> branch, int depth, HashMap<TreeNode<String>,Command> commandMap)
public void outputMarkdown(PrintStream out, HashMap<String,TreeNode<String>> locationMap, HashMap<String,HashMap<TreeNode<String>,Command>> commandMap)
public String markdownBranch(TreeNode<String> branch, int depth, HashMap<TreeNode<String>,Command> commandMap)
public String getUsageExample()
getUsageExample
in class Command
Copyright © 2017 ECG. All rights reserved.