package cli
Ordering
- Alphabetic
Visibility
- Public
- All
Value Members
-
object
Table
Print a pretty command line table.
Print a pretty command line table.
val table = Table("h1", "h2", "h3") table.rows += Seq("a", "b", "c") table.rows += Seq("d", "e", "f") table.alignments(1) = Table.Alignment.Right val lines: List[String] = table.lines
Print it:
table.print() table.print(Console.err) // h1 | h2 | h3 // ---|----|--- // a | b | c // d | e | f