Documentation
¶
Index ¶
- func FormatDuration(ms *int64) string
- func NewTable(w io.Writer, columns []string) *tablewriter.Table
- func OutputJSON(data any, filePath string) error
- func OutputJSONL(items []map[string]any, filePath string) error
- func OutputTable(columns []string, rows [][]string, title string)
- func OutputTree(runs []RunTreeData, rootID string)
- func PrintError(msg string)
- func PrintOutput(data any, format string, filePath string) error
- func PrintRunsTable(w io.Writer, runs []map[string]any, includeMetadata bool, title string)
- type RunTreeData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatDuration ¶
FormatDuration formats milliseconds as human-readable duration.
func NewTable ¶ added in v0.2.53
func NewTable(w io.Writer, columns []string) *tablewriter.Table
NewTable creates the CLI's standard borderless table.
func OutputJSON ¶
OutputJSON writes data as indented JSON to stdout or a file. If filePath is non-empty, writes to file and prints status to stderr.
func OutputJSONL ¶
OutputJSONL writes items as JSONL (one JSON object per line).
func OutputTable ¶
OutputTable prints a table to stdout using tablewriter.
func OutputTree ¶
func OutputTree(runs []RunTreeData, rootID string)
OutputTree prints a trace hierarchy tree.
func PrintOutput ¶
PrintOutput dispatches to JSON or pretty output.
Types ¶
Click to show internal directories.
Click to hide internal directories.