public abstract class CommandWithInfo extends Object implements Command
Constructor and Description |
---|
CommandWithInfo() |
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
A short description for the command indicating what it does.
|
org.apache.commons.cli.Options |
getOptions()
Returns the Options that the command is prepared to handle.
|
String |
getUsage()
How the user should invoke this command
|
boolean |
isAvailableInShell()
Whether the command is available to be invoked from within the shell.
|
boolean |
isAvailableOutsideShell()
Indicates if the command is available to be invoked from outside the
shell (from the main command line).
|
boolean |
isStorageRequired() |
public String getDescription()
Command
getDescription
in interface Command
public String getUsage()
Command
public org.apache.commons.cli.Options getOptions()
Command
getOptions
in interface Command
public boolean isStorageRequired()
isStorageRequired
in interface Command
public boolean isAvailableInShell()
Command
isAvailableInShell
in interface Command
public boolean isAvailableOutsideShell()
Command
isAvailableOutsideShell
in interface Command
Copyright © 2013. All Rights Reserved.