Class CommonsCliEncryptOptions
java.lang.Object
org.apache.maven.cling.invoker.CommonsCliOptions
org.apache.maven.cling.invoker.mvnenc.CommonsCliEncryptOptions
- All Implemented Interfaces:
EncryptOptions,Options
Implementation of
EncryptOptions (base + mvnenc).-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.apache.maven.cling.invoker.CommonsCliOptions
cliManager, commandLine, sourceFields inherited from interface org.apache.maven.api.cli.Options
SOURCE_CLI -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCommonsCliEncryptOptions(String source, CommonsCliEncryptOptions.CLIManager cliManager, org.apache.commons.cli.CommandLine commandLine) -
Method Summary
Modifier and TypeMethodDescriptionprotected CommonsCliEncryptOptionscopy(String source, CommonsCliOptions.CLIManager cliManager, org.apache.commons.cli.CommandLine commandLine) voiddisplayHelp(ParserRequest request, Consumer<String> printStream) Displays help information for these options.force()Should the operation be forced (ie overwrite existing config, if any).goals()Returns the list of encryption goals to be executed.static CommonsCliEncryptOptionsyes()Should imply "yes" to all questions.Methods inherited from class org.apache.maven.cling.invoker.CommonsCliOptions
altInstallationSettings, altInstallationToolchains, altProjectSettings, altUserSettings, altUserToolchains, color, failOnSeverity, forceInteractive, help, interpolate, logFile, nonInteractive, offline, parse, quiet, rawStreams, showErrors, showVersion, showVersionAndExit, source, userProperties, verbose, warnAboutDeprecatedOptionsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.api.cli.Options
altInstallationSettings, altInstallationToolchains, altProjectSettings, altUserSettings, altUserToolchains, color, failOnSeverity, forceInteractive, help, interpolate, logFile, nonInteractive, offline, quiet, rawStreams, showErrors, showVersion, showVersionAndExit, source, userProperties, verbose, warnAboutDeprecatedOptions
-
Constructor Details
-
CommonsCliEncryptOptions
protected CommonsCliEncryptOptions(String source, CommonsCliEncryptOptions.CLIManager cliManager, org.apache.commons.cli.CommandLine commandLine)
-
-
Method Details
-
parse
public static CommonsCliEncryptOptions parse(String[] args) throws org.apache.commons.cli.ParseException - Throws:
org.apache.commons.cli.ParseException
-
force
Description copied from interface:EncryptOptionsShould the operation be forced (ie overwrite existing config, if any).- Specified by:
forcein interfaceEncryptOptions- Returns:
- an
Optionalcontaining the boolean valuetrueif specified, or empty
-
yes
Description copied from interface:EncryptOptionsShould imply "yes" to all questions.- Specified by:
yesin interfaceEncryptOptions- Returns:
- an
Optionalcontaining the boolean valuetrueif specified, or empty
-
goals
Description copied from interface:EncryptOptionsReturns the list of encryption goals to be executed. These goals can include operations like "init", "add-server", "delete-server", etc.- Specified by:
goalsin interfaceEncryptOptions- Returns:
- an
Optionalcontaining the list of goals, or empty if not specified
-
displayHelp
Description copied from interface:OptionsDisplays help information for these options.- Specified by:
displayHelpin interfaceOptions- Overrides:
displayHelpin classCommonsCliOptions- Parameters:
printStream- the string consumer to use for output
-
copy
protected CommonsCliEncryptOptions copy(String source, CommonsCliOptions.CLIManager cliManager, org.apache.commons.cli.CommandLine commandLine) - Overrides:
copyin classCommonsCliOptions
-