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, sourceFields inherited from interface org.apache.maven.api.cli.Options
SOURCE_CLI -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCommonsCliShellOptions(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 CommonsCliShellOptionsMethods 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, 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, 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:ShellOptionsReturns a new instance of ShellOptions with values interpolated using the given properties.- Specified by:
interpolatein interfaceOptions- Specified by:
interpolatein interfaceShellOptions- Parameters:
callback- a callback to use for interpolation- Returns:
- a new EncryptOptions instance with interpolated values
-