Class AsciiTableRenderer

java.lang.Object
com.helix.cli.ui.AsciiTableRenderer

public class AsciiTableRenderer extends Object
High-performance terminal utility for rendering cleanly aligned ASCII tables.
  • Constructor Details

    • AsciiTableRenderer

      public AsciiTableRenderer()
  • Method Details

    • renderKeyValueTable

      public static String renderKeyValueTable(String title, Map<String,Object> data)
      Renders a key-value map as an ASCII table.
      Parameters:
      title - table title header (optional)
      data - key-value mapping of metrics
      Returns:
      formatted ASCII table string
    • renderTable

      public static String renderTable(String title, List<String> headers, List<List<String>> rows)
      Renders headers and rows as an ASCII table with column auto-sizing and optional title.
      Parameters:
      title - optional header title spanning the full table width
      headers - column header labels
      rows - row values
      Returns:
      formatted ASCII table string