com.splunk
Class Command
java.lang.Object
com.splunk.Command
public class Command
- extends java.lang.Object
Field Summary |
java.lang.String[] |
args
|
static java.util.HashMap<java.lang.String,java.lang.Object> |
defaultValues
|
java.lang.Boolean |
help
|
java.util.HashMap<java.lang.String,java.lang.Object> |
opts
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
args
public java.lang.String[] args
opts
public java.util.HashMap<java.lang.String,java.lang.Object> opts
help
public java.lang.Boolean help
defaultValues
public static final java.util.HashMap<java.lang.String,java.lang.Object> defaultValues
create
public static Command create()
create
public static Command create(java.lang.String appName)
error
public static void error(java.lang.String message,
java.lang.Object... args)
getRules
public org.apache.commons.cli.Options getRules()
init
public Command init()
addRule
public Command addRule(java.lang.String name,
java.lang.String description)
addRule
public Command addRule(java.lang.String name,
java.lang.Class argType,
java.lang.String description)
load
public Command load(java.lang.String path)
parse
public Command parse(java.lang.String[] argv)
printHelp
public void printHelp()
splunk
public static Command splunk()
splunk
public static Command splunk(java.lang.String appName)
splunkrc
public Command splunkrc()