Package com.evolveum.midpoint.ninja.util
Class ConsoleFormat
java.lang.Object
com.evolveum.midpoint.ninja.util.ConsoleFormat
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable StringformatActionStartMessage(Action action) static StringformatCommand(String message) static Stringstatic StringformatLogMessage(LogLevel level, String msg) static StringformatMessage(String message, ConsoleFormat.Color color) static StringformatMessageWithErrorParameters(String message, Object... parameters) static StringformatMessageWithInfoParameters(String message, Object... parameters) static StringformatMessageWithParameters(String message, Object[] parameters, ConsoleFormat.Color level) static StringformatMessageWithSuccessParameters(String message, Object... parameters) static StringformatMessageWithWarningParameters(String message, Object... parameters) static StringformatSuccessMessage(String message) static booleanstatic StringrewriteConsoleLine(String newLine) Technically removes two lines, since adds new line at the end of the messagestatic voidsetBatchMode(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
-