Class CliUtils


  • public final class CliUtils
    extends Object
    Utilities for CLI formatting.
    • Method Detail

      • repeatChar

        public static void repeatChar​(org.jline.utils.AttributedStringBuilder sb,
                                      char c,
                                      int count)
      • normalizeColumn

        public static void normalizeColumn​(org.jline.utils.AttributedStringBuilder sb,
                                           String col,
                                           int maxWidth)
      • formatTwoLineHelpOptions

        public static List<org.jline.utils.AttributedString> formatTwoLineHelpOptions​(int width,
                                                                                      List<org.apache.flink.api.java.tuple.Tuple2<String,​String>> options)
      • typesToString

        public static String[] typesToString​(org.apache.flink.table.types.DataType[] types)
      • createFile

        public static boolean createFile​(Path filePath)
        Create the file as well as the parent directory.
      • isApplicationMode

        public static boolean isApplicationMode​(org.apache.flink.configuration.ReadableConfig config)