com.splunk
Class Command

java.lang.Object
  extended by 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
           
 
Method Summary
 Command addRule(java.lang.String name, java.lang.Class argType, java.lang.String description)
           
 Command addRule(java.lang.String name, java.lang.String description)
           
static Command create()
           
static Command create(java.lang.String appName)
           
static void error(java.lang.String message, java.lang.Object... args)
           
 org.apache.commons.cli.Options getRules()
           
 Command init()
           
 Command load(java.lang.String path)
           
 Command parse(java.lang.String[] argv)
           
 void printHelp()
           
static Command splunk()
           
static Command splunk(java.lang.String appName)
           
 Command splunkrc()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Method Detail

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()