Package org.dogtagpki.cli
Class CLI
java.lang.Object
org.dogtagpki.cli.CLI
- Direct Known Subclasses:
ACMECLI
,ActivityCLI
,AuditCLI
,AuthenticatorCLI
,AuthorityCLI
,CACertCLI
,CACertRequestCLI
,ClientCLI
,CommandCLI
,ConfigCLI
,ConnectorCLI
,FeatureCLI
,GroupCLI
,GroupMemberCLI
,KRACertCLI
,KRAConnectorCLI
,KRAKeyCLI
,MainCLI
,NSSCertCLI
,NSSCLI
,NSSKeyCLI
,PKCS11CertCLI
,PKCS11CLI
,PKCS11KeyCLI
,PKCS12CertCLI
,PKCS12CLI
,PKCS12KeyCLI
,PKCS7CertCLI
,PKCS7CLI
,PKIServerCLI
,ProfileCLI
,ProfileCLI
,ProfileMappingCLI
,ProxyCLI
,PublisherCLI
,PublisherOCSPCLI
,RangeCLI
,SDCLI
,SDHostCLI
,SecurityDomainCLI
,SecurityDomainHostCLI
,SelfTestCLI
,SubsystemCLI
,SubsystemDBAccessCLI
,SubsystemDBCLI
,SubsystemDBReplicationCLI
,SubsystemDBVLVCLI
,SubsystemGroupCLI
,SubsystemGroupMemberCLI
,SubsystemRangeCLI
,SubsystemUserCertCLI
,SubsystemUserCLI
,TKSCertCLI
,TKSKeyCLI
,TokenCLI
,TPSCertCLI
,TPSConnectorCLI
,UserCertCLI
,UserCLI
,UserMembershipCLI
- Author:
- Endi S. Dewata
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic org.apache.commons.cli.HelpFormatter
static org.slf4j.Logger
org.apache.commons.cli.Options
static org.apache.commons.cli.CommandLineParser
static boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
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()
boolean
void
removeModule
(String name) void
runExternal
(String[] command) void
runExternal
(List<String> command) void
setDescription
(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
-
client
-
-
Constructor Details
-
CLI
-
CLI
-
-
Method Details
-
getName
-
setName
-
getFullName
-
getFullModuleName
-
getDescription
-
setDescription
-
getParent
-
getRoot
-
isDeprecated
public boolean isDeprecated() -
getModules
-
getModule
-
addModule
-
addModule
-
removeModule
-
findModules
Find the list of modules that handle the specified command.- Throws:
Exception
-
findModule
Find the last module that handles the specified command.- Throws:
Exception
-
getManPage
-
getConfig
- Throws:
Exception
-
getClient
- Throws:
Exception
-
getClient
- Throws:
Exception
-
printHelp
- Throws:
Exception
-
execute
- Throws:
Exception
-
runExternal
public void runExternal(List<String> command) throws CLIException, IOException, InterruptedException -
runExternal
-