Class UpgradeContext

java.lang.Object
org.apache.maven.cling.invoker.LookupContext
org.apache.maven.cling.invoker.mvnup.UpgradeContext
All Implemented Interfaces:
AutoCloseable

public class UpgradeContext extends LookupContext
  • Field Details

    • goals

      public Map<String,Goal> goals
    • style

      public org.jline.utils.AttributedStyle style
    • reader

      public org.jline.reader.LineReader reader
  • Constructor Details

  • Method Details

    • addInHeader

      public void addInHeader(String text)
    • addInHeader

      public void addInHeader(org.jline.utils.AttributedStyle style, String text)
    • indent

      public void indent()
      Increases the indentation level for nested logging.
    • unindent

      public void unindent()
      Decreases the indentation level for nested logging.
    • setIndentString

      public void setIndentString(String indentString)
      Sets the indentation string to use (e.g., " ", " ", "\t").
    • info

      public void info(String message)
      Logs an informational message with current indentation.
    • debug

      public void debug(String message)
      Logs a debug message with current indentation.
    • println

      public void println()
      Prints a new line.
    • success

      public void success(String message)
      Logs a successful operation with a checkmark icon.
    • failure

      public void failure(String message)
      Logs an error with an X icon.
    • warning

      public void warning(String message)
      Logs a warning with a warning icon.
    • detail

      public void detail(String message)
      Logs detailed information with a bullet point.
    • action

      public void action(String message)
      Logs a performed action with an arrow icon.
    • options

      @Nonnull public UpgradeOptions options()
      Gets the UpgradeOptions from the invoker request. This provides convenient access to upgrade-specific options without casting.
      Overrides:
      options in class LookupContext
      Returns:
      the UpgradeOptions