public class QuitCommand extends AbstractCommand implements CliSession.Action
log, name, paramParser
Constructor and Description |
---|
QuitCommand() |
Modifier and Type | Method and Description |
---|---|
CliSession.Action |
getAction(CliSession session,
ParseContext ctx,
boolean complete,
Map<String,Object> params)
Process command line parameters and return action.
|
String |
getHelpSummary()
Get summarized help (typically a single line).
|
EnumSet<SessionMode> |
getSessionModes()
Get the
SessionMode (s) supported by this command. |
void |
run(CliSession session)
Perform some action using the given
CliSession while a transaction is open. |
getExprParam, getExprParam, getHelpDetail, getName, getParser, getUsage, parse
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyIdentifierScope
public String getHelpSummary()
AbstractCommand
getHelpSummary
in interface Command
getHelpSummary
in class AbstractCommand
public EnumSet<SessionMode> getSessionModes()
AbstractCommand
SessionMode
(s) supported by this command.
The implementation in AbstractCommand
returns an EnumSet
containing
SessionMode.CORE_API
and SessionMode.PERMAZEN
.
getSessionModes
in interface Command
getSessionModes
in class AbstractCommand
SessionMode
spublic CliSession.Action getAction(CliSession session, ParseContext ctx, boolean complete, Map<String,Object> params)
AbstractCommand
getAction
in class AbstractCommand
session
- CLI sessionctx
- input to parsecomplete
- false if parse is "for real", true if only for tab completion calculationparams
- parsed parameters indexed by namepublic void run(CliSession session) throws Exception
CliSession.Action
CliSession
while a transaction is open.run
in interface CliSession.Action
session
- session with open transactionException
- if an error occursCopyright © 2022. All rights reserved.