public class SetHistoryFileCommand extends AbstractCommand
log, name, paramParser
Constructor and Description |
---|
SetHistoryFileCommand() |
Modifier and Type | Method and Description |
---|---|
CliSession.Action |
getAction(CliSession session0,
ParseContext ctx,
boolean complete,
Map<String,Object> params)
Process command line parameters and return action.
|
String |
getHelpSummary()
Get summarized help (typically a single line).
|
protected Parser<?> |
getParser(String typeName)
Convert parameter spec type name into a
Parser . |
EnumSet<SessionMode> |
getSessionModes()
Get the
SessionMode (s) supported by this command. |
getExprParam, getExprParam, getHelpDetail, getName, 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
protected Parser<?> getParser(String typeName)
AbstractCommand
Parser
. Used for custom type names not supported by ParamParser
.
The implementation in AbstractCommand
supports all FieldType
s registered with the
database, plus:
getParser
in class AbstractCommand
typeName
- parameter type namepublic 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 session0, ParseContext ctx, boolean complete, Map<String,Object> params)
AbstractCommand
getAction
in class AbstractCommand
session0
- CLI sessionctx
- input to parsecomplete
- false if parse is "for real", true if only for tab completion calculationparams
- parsed parameters indexed by nameCopyright © 2022. All rights reserved.