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, source
Fields inherited from interface org.apache.maven.api.cli.Options
SOURCE_CLI
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
CommonsCliEncryptOptions
(String source, CommonsCliEncryptOptions.CLIManager cliManager, org.apache.commons.cli.CommandLine commandLine) -
Method Summary
Modifier and TypeMethodDescriptionprotected CommonsCliEncryptOptions
copy
(String source, CommonsCliOptions.CLIManager cliManager, org.apache.commons.cli.CommandLine commandLine) void
displayHelp
(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 CommonsCliEncryptOptions
yes()
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, warnAboutDeprecatedOptions
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:EncryptOptions
Should the operation be forced (ie overwrite existing config, if any).- Specified by:
force
in interfaceEncryptOptions
- Returns:
- an
Optional
containing the boolean valuetrue
if specified, or empty
-
yes
Description copied from interface:EncryptOptions
Should imply "yes" to all questions.- Specified by:
yes
in interfaceEncryptOptions
- Returns:
- an
Optional
containing the boolean valuetrue
if specified, or empty
-
goals
Description copied from interface:EncryptOptions
Returns the list of encryption goals to be executed. These goals can include operations like "init", "add-server", "delete-server", etc.- Specified by:
goals
in interfaceEncryptOptions
- Returns:
- an
Optional
containing the list of goals, or empty if not specified
-
displayHelp
Description copied from interface:Options
Displays help information for these options.- Specified by:
displayHelp
in interfaceOptions
- Overrides:
displayHelp
in 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:
copy
in classCommonsCliOptions
-