Class CommonsCliShellOptions
java.lang.Object
org.apache.maven.cling.invoker.CommonsCliOptions
org.apache.maven.cling.invoker.mvnsh.CommonsCliShellOptions
- All Implemented Interfaces:
ShellOptions
,Options
Implementation of
ShellOptions
(base + shell).-
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
CommonsCliShellOptions
(String source, CommonsCliShellOptions.CLIManager cliManager, org.apache.commons.cli.CommandLine commandLine) -
Method Summary
Modifier and TypeMethodDescriptioninterpolate
(UnaryOperator<String> callback) Returns a new instance of ShellOptions with values interpolated using the given properties.static CommonsCliShellOptions
Methods inherited from class org.apache.maven.cling.invoker.CommonsCliOptions
altInstallationSettings, altInstallationToolchains, altProjectSettings, altUserSettings, altUserToolchains, color, displayHelp, failOnSeverity, forceInteractive, help, logFile, nonInteractive, offline, 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, displayHelp, failOnSeverity, forceInteractive, help, logFile, nonInteractive, offline, quiet, rawStreams, showErrors, showVersion, showVersionAndExit, source, userProperties, verbose, warnAboutDeprecatedOptions
-
Constructor Details
-
CommonsCliShellOptions
protected CommonsCliShellOptions(String source, CommonsCliShellOptions.CLIManager cliManager, org.apache.commons.cli.CommandLine commandLine)
-
-
Method Details
-
parse
public static CommonsCliShellOptions parse(String[] args) throws org.apache.commons.cli.ParseException - Throws:
org.apache.commons.cli.ParseException
-
interpolate
Description copied from interface:ShellOptions
Returns a new instance of ShellOptions with values interpolated using the given properties.- Specified by:
interpolate
in interfaceOptions
- Specified by:
interpolate
in interfaceShellOptions
- Parameters:
callback
- a callback to use for interpolation- Returns:
- a new EncryptOptions instance with interpolated values
-