Class UpgradeContext
java.lang.Object
org.apache.maven.cling.invoker.LookupContext
org.apache.maven.cling.invoker.mvnup.UpgradeContext
- All Implemented Interfaces:
- AutoCloseable
- 
Field SummaryFieldsModifier and TypeFieldDescriptionList<org.jline.utils.AttributedString> org.jline.reader.LineReaderorg.jline.utils.AttributedStyleFields inherited from class org.apache.maven.cling.invoker.LookupContextbuildEventListener, closeables, coloredOutput, containerCapsule, containerCapsuleManaged, cwd, effectiveSettings, effectiveToolchains, eventSpyDispatcher, installationDirectory, installationSettingsPath, interactive, invokerRequest, localRepositoryPath, logger, loggerFactory, loggerLevel, lookup, projectSettingsPath, protoSession, pushedUserProperties, slf4jConfiguration, terminal, userDirectory, userSettingsPath, writer
- 
Constructor SummaryConstructorsConstructorDescriptionUpgradeContext(InvokerRequest invokerRequest, UpgradeOptions upgradeOptions) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidLogs a performed action with an arrow icon.voidaddInHeader(String text) voidaddInHeader(org.jline.utils.AttributedStyle style, String text) voidLogs a debug message with current indentation.voidLogs detailed information with a bullet point.voidLogs an error with an X icon.voidindent()Increases the indentation level for nested logging.voidLogs an informational message with current indentation.options()Gets the UpgradeOptions from the invoker request.voidprintln()Prints a new line.voidsetIndentString(String indentString) Sets the indentation string to use (e.g., " ", " ", "\t").voidLogs a successful operation with a checkmark icon.voidunindent()Decreases the indentation level for nested logging.voidLogs a warning with a warning icon.Methods inherited from class org.apache.maven.cling.invoker.LookupContextclose, closeContainer, doCloseContainer
- 
Field Details- 
goals
- 
header
- 
stylepublic org.jline.utils.AttributedStyle style
- 
readerpublic org.jline.reader.LineReader reader
 
- 
- 
Constructor Details- 
UpgradeContext
 
- 
- 
Method Details- 
addInHeader
- 
addInHeader
- 
indentpublic void indent()Increases the indentation level for nested logging.
- 
unindentpublic void unindent()Decreases the indentation level for nested logging.
- 
setIndentStringSets the indentation string to use (e.g., " ", " ", "\t").
- 
infoLogs an informational message with current indentation.
- 
debugLogs a debug message with current indentation.
- 
printlnpublic void println()Prints a new line.
- 
successLogs a successful operation with a checkmark icon.
- 
failureLogs an error with an X icon.
- 
warningLogs a warning with a warning icon.
- 
detailLogs detailed information with a bullet point.
- 
actionLogs a performed action with an arrow icon.
- 
optionsGets the UpgradeOptions from the invoker request. This provides convenient access to upgrade-specific options without casting.- Overrides:
- optionsin class- LookupContext
- Returns:
- the UpgradeOptions
 
 
-