Class CommonsCliEncryptOptions

java.lang.Object
org.apache.maven.cling.invoker.CommonsCliOptions
org.apache.maven.cling.invoker.mvnenc.CommonsCliEncryptOptions
All Implemented Interfaces:
EncryptOptions, Options

public class CommonsCliEncryptOptions extends CommonsCliOptions implements EncryptOptions
  • Constructor Details

  • Method Details

    • parse

      public static CommonsCliEncryptOptions parse(String[] args) throws org.apache.commons.cli.ParseException
      Throws:
      org.apache.commons.cli.ParseException
    • force

      public Optional<Boolean> force()
      Description copied from interface: EncryptOptions
      Should the operation be forced (ie overwrite existing config, if any).
      Specified by:
      force in interface EncryptOptions
      Returns:
      an Optional containing the boolean value true if specified, or empty
    • yes

      public Optional<Boolean> yes()
      Description copied from interface: EncryptOptions
      Should imply "yes" to all questions.
      Specified by:
      yes in interface EncryptOptions
      Returns:
      an Optional containing the boolean value true if specified, or empty
    • goals

      public Optional<List<String>> 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 interface EncryptOptions
      Returns:
      an Optional containing the list of goals, or empty if not specified
    • interpolate

      public EncryptOptions interpolate(Collection<Map<String,String>> properties)
      Description copied from interface: EncryptOptions
      Returns a new instance of EncryptOptions with values interpolated using the given properties.
      Specified by:
      interpolate in interface EncryptOptions
      Specified by:
      interpolate in interface Options
      Parameters:
      properties - a collection of property maps to use for interpolation
      Returns:
      a new EncryptOptions instance with interpolated values