Class CLI
java.lang.Object
org.dogtagpki.cli.CLI
- Direct Known Subclasses:
ACMECLI, ActivityCLI, AuditCLI, AuthenticatorCLI, AuthorityCLI, CACertCLI, CACertRequestCLI, CACRLCLI, ClientCLI, CommandCLI, ConfigCLI, ConnectorCLI, FeatureCLI, GroupCLI, GroupMemberCLI, JobCLI, KRACertCLI, KRAConnectorCLI, KRAKeyCLI, MainCLI, NSSCertCLI, NSSCLI, NSSKeyCLI, OCSPCertCLI, PKCS11CertCLI, PKCS11CLI, PKCS11KeyCLI, PKCS12CertCLI, PKCS12CLI, PKCS12KeyCLI, PKCS7CertCLI, PKCS7CLI, PKIServerCLI, ProfileCLI, ProfileCLI, ProfileMappingCLI, PublisherCLI, PublisherOCSPCLI, RangeCLI, SDCLI, SDCLI, SDSubsystemCLI, SDTypeCLI, SecurityDomainCLI, SecurityDomainHostCLI, SelfTestCLI, SubsystemACLCLI, SubsystemCLI, SubsystemDBAccessCLI, SubsystemDBCLI, SubsystemDBIndexCLI, SubsystemDBReplicationAgreementCLI, SubsystemDBReplicationCLI, SubsystemDBVLVCLI, SubsystemGroupCLI, SubsystemGroupMemberCLI, SubsystemUserCertCLI, SubsystemUserCLI, SubsystemUserRoleCLI, TKSCertCLI, TKSKeyCLI, TokenCLI, TPSCertCLI, TPSConnectorCLI, UserCertCLI, UserCLI, UserMembershipCLI
- Author:
- Endi S. Dewata
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanstatic org.apache.commons.cli.HelpFormatterstatic org.slf4j.Loggerorg.apache.commons.cli.Optionsstatic org.apache.commons.cli.CommandLineParserstatic boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidexecuteCommand(String[] args) voidexecuteCommands(BufferedReader in, boolean shell) findModule(String command) Find the last module that handles the specified command.findModules(String command) Find the list of modules that handle the specified command.getFullModuleName(String moduleName) getName()getRoot()voidbooleanString[]Parse a command line into an array of tokens.org.apache.commons.cli.CommandLineparseOptions(String[] args) voidvoidremoveModule(String name) voidrunExternal(String[] command) voidrunExternal(List<String> command) voidsetDescription(String description) void
-
Field Details
-
logger
public static org.slf4j.Logger logger -
verbose
public static boolean verbose -
parser
public static org.apache.commons.cli.CommandLineParser parser -
formatter
public static org.apache.commons.cli.HelpFormatter formatter -
name
-
description
-
parent
-
options
public org.apache.commons.cli.Options options -
modules
-
exitOnError
public boolean exitOnError
-
-
Constructor Details
-
CLI
-
CLI
-
-
Method Details
-
getName
-
setName
-
getFullName
-
getFullModuleName
-
getDescription
-
setDescription
-
getParent
-
getRoot
-
isDeprecated
public boolean isDeprecated() -
getModules
-
getModule
-
addModule
-
addModule
-
removeModule
-
findModules
-
findModule
-
getManPage
-
getConfig
- Throws:
Exception
-
createOptions
-
parseOptions
-
printVersion
public void printVersion() -
printHelp
-
parseLine
-
handleException
-
executeCommand
-
executeCommands
- Throws:
Exception
-
execute
-
runExternal
public void runExternal(List<String> command) throws CLIException, IOException, InterruptedException -
runExternal
-