public class RegistryContainsSubCommand extends java.lang.Object implements RegistrySubCommandHook
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BASE_COMMAND |
Constructor and Description |
---|
RegistryContainsSubCommand(Registry registry) |
Modifier and Type | Method and Description |
---|---|
void |
addAutoCompletEntries(AutocompleteHelper autocompleteHelper,
TerminalSession session) |
boolean |
consumes(CommandParser parser,
TerminalSession session) |
CommandResult |
execute(CommandParser parser,
TerminalSession session) |
java.lang.String |
getBaseCommand() |
public static final java.lang.String BASE_COMMAND
public RegistryContainsSubCommand(Registry registry)
public java.lang.String getBaseCommand()
getBaseCommand
in interface SubCommand
public boolean consumes(CommandParser parser, TerminalSession session)
consumes
in interface TerminalCommandHook
@CliHelpMessage(messageClass=ScriptingMessages.class, name="contains", description="commandRegistry_sub_contains_description", nonOptArgs=@NonOptArgument(name="key",description="commandRegistryContains_key",mandatory=true)) public CommandResult execute(CommandParser parser, TerminalSession session) throws TerminalException
execute
in interface TerminalCommandHook
TerminalException
public void addAutoCompletEntries(AutocompleteHelper autocompleteHelper, TerminalSession session)
addAutoCompletEntries
in interface TerminalCommandHook