Types
TableStyle = enum Fancy, Plain
- Source Edit
Vars
printColors = isatty(stdout)
- Source Edit
printWidth = terminalWidth()
- Source Edit
Procs
proc escapeString(v: string; q = "\""): string {....raises: [], tags: [].}
- Source Edit
proc newFieldPairNode(k, v: Node): Node {....raises: [], tags: [].}
- Source Edit
proc newNameNode(name: string): Node {....raises: [], tags: [].}
- Source Edit
proc newNodeFromBaseType(x: type): Node
- Source Edit
proc newNodeFromBaseType[T](x: T): Node
- Source Edit
proc newSupportNode(value: string): Node {....raises: [], tags: [].}
- Source Edit
proc newTopPairNode(k, v: Node): Node {....raises: [], tags: [].}
- Source Edit
proc printBarChart[N: SomeNumber](data: seq[(string, N)])
- prints a bar chart like this: zpu: ######### 20.45 cpu: ################################################# 70.00 gpu: ########################### 45.56 Source Edit
proc printNode(node: Node; indent: int) {....raises: [IOError, ValueError], tags: [WriteIOEffect].}
- Source Edit
proc printNodes(s: varargs[Node]) {....raises: [IOError, ValueError], tags: [WriteIOEffect].}
- Source Edit
proc printTable[T](arr: seq[T]; style = Fancy)
- Given a list of items prints them as a table. Source Edit