public class PkgCommand extends SubCommandContainerImpl
Constructor and Description |
---|
PkgCommand(PkgInstallSubCommand installSubCommand,
PkgListSubCommand listSubCommand) |
Modifier and Type | Method and Description |
---|---|
boolean |
consumes(CommandParser parser,
TerminalSession session) |
CommandResult |
execute(CommandParser parser,
TerminalSession session) |
java.lang.String |
getBaseCommand() |
java.util.List<SubCommand> |
getSubCommands() |
addAutoCompletEntries, getSubCommand
public PkgCommand(PkgInstallSubCommand installSubCommand, PkgListSubCommand listSubCommand)
public boolean consumes(CommandParser parser, TerminalSession session)
consumes
in interface TerminalCommandHook
consumes
in class SubCommandContainerImpl
public CommandResult execute(CommandParser parser, TerminalSession session) throws TerminalException
execute
in interface TerminalCommandHook
execute
in class SubCommandContainerImpl
TerminalException
public java.lang.String getBaseCommand()
public java.util.List<SubCommand> getSubCommands()