Package com.evolveum.midpoint.ninja.util
Class ConsoleFormat
java.lang.Object
com.evolveum.midpoint.ninja.util.ConsoleFormat
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable String
formatActionStartMessage
(Action action) static String
formatCommand
(String message) static String
static String
formatLogMessage
(LogLevel level, String msg) static String
formatMessage
(String message, ConsoleFormat.Color color) static String
formatMessageWithErrorParameters
(String message, Object... parameters) static String
formatMessageWithInfoParameters
(String message, Object... parameters) static String
formatMessageWithParameters
(String message, Object[] parameters, ConsoleFormat.Color level) static String
formatMessageWithSuccessParameters
(String message, Object... parameters) static String
formatMessageWithWarningParameters
(String message, Object... parameters) static String
formatSuccessMessage
(String message) static boolean
static String
rewriteConsoleLine
(String newLine) Technically removes two lines, since adds new line at the end of the messagestatic void
setBatchMode
(boolean batchMode)
-
Method Details
-
setBatchMode
public static void setBatchMode(boolean batchMode) -
isBatchMode
public static boolean isBatchMode() -
formatActionStartMessage
-
formatMessageWithErrorParameters
-
formatMessageWithSuccessParameters
-
formatMessageWithWarningParameters
-
formatMessageWithInfoParameters
-
formatMessageWithParameters
public static String formatMessageWithParameters(String message, Object[] parameters, ConsoleFormat.Color level) -
formatSuccessMessage
-
formatMessage
-
formatLogMessage
-
formatCommand
-
rewriteConsoleLine
Technically removes two lines, since adds new line at the end of the message -
formatInputPrompt
-