org.apache.accumulo.core.util.shell.commands
public class ScriptCommand extends Shell.Command
Shell.Command.CompletionSet
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.cli.Option |
args |
protected org.apache.commons.cli.Option |
engine |
protected org.apache.commons.cli.Option |
file |
protected org.apache.commons.cli.Option |
function |
protected org.apache.commons.cli.Option |
list |
protected org.apache.commons.cli.Option |
object |
protected org.apache.commons.cli.Option |
out |
protected org.apache.commons.cli.Option |
script |
Constructor and Description |
---|
ScriptCommand() |
Modifier and Type | Method and Description |
---|---|
String |
description() |
int |
execute(String fullCommand,
org.apache.commons.cli.CommandLine cl,
Shell shellState) |
String |
getName() |
org.apache.commons.cli.Options |
getOptions() |
int |
numArgs()
If the number of arguments is not always zero (not including those arguments handled through Options), make sure to override the
Shell.Command.usage() method. |
getOptionsWithHelp, printHelp, printHelp, registerCompletion, registerCompletionForCommands, registerCompletionForNamespaces, registerCompletionForTables, registerCompletionForUsers, registerCompletionGeneral, usage
protected org.apache.commons.cli.Option list
protected org.apache.commons.cli.Option engine
protected org.apache.commons.cli.Option script
protected org.apache.commons.cli.Option file
protected org.apache.commons.cli.Option args
protected org.apache.commons.cli.Option out
protected org.apache.commons.cli.Option function
protected org.apache.commons.cli.Option object
public int execute(String fullCommand, org.apache.commons.cli.CommandLine cl, Shell shellState) throws Exception
execute
in class Shell.Command
Exception
public String description()
description
in class Shell.Command
public int numArgs()
Shell.Command
Shell.Command.usage()
method.
Otherwise, Shell.Command.usage()
does need to be overridden.numArgs
in class Shell.Command
public String getName()
getName
in class Shell.Command
public org.apache.commons.cli.Options getOptions()
getOptions
in class Shell.Command
Copyright © 2011–2016 The Apache Software Foundation. All rights reserved.