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, defaultArgumentResultHandler, getCommandArgumentList, getCommandLine, getCommandLineOptions, getCommandPath, getCompleter, getUsageHeader, handleBooleanResponse, handleResponse, isCompleteArgumentList, printHelp, println, printUsage
public static final String[] commandPath
public Tree() throws co.ecg.alpaca.toolkit.exception.AlpacaException
co.ecg.alpaca.toolkit.exception.AlpacaException
public int execute(Location location, List<String> args) throws co.ecg.alpaca.toolkit.exception.AlpacaException
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 © 2016. All rights reserved.