Class ConsoleFormat


  • public final class ConsoleFormat
    extends Object
    • Method Detail

      • setBatchMode

        public static void setBatchMode​(boolean batchMode)
      • isBatchMode

        public static boolean isBatchMode()
      • formatActionStartMessage

        @Nullable
        public static @Nullable String formatActionStartMessage​(Action action)
      • formatMessageWithErrorParameters

        public static String formatMessageWithErrorParameters​(String message,
                                                              Object... parameters)
      • formatMessageWithWarningParameters

        public static String formatMessageWithWarningParameters​(String message,
                                                                Object... parameters)
      • formatMessageWithInfoParameters

        public static String formatMessageWithInfoParameters​(String message,
                                                             Object... parameters)
      • formatSuccessMessage

        public static String formatSuccessMessage​(String message)
      • formatCommand

        public static String formatCommand​(String message)
      • rewriteConsoleLine

        public static String rewriteConsoleLine​(String newLine)
        Technically removes two lines, since adds new line at the end of the message
      • formatInputPrompt

        public static String formatInputPrompt()