Skip to content

Conversation

@jabr
Copy link
Contributor

@jabr jabr commented Nov 23, 2025

An AI generated draft of the table refactor with JSON output format idea. #165 (comment)

Not sure how I feel about the overall implementation it took here, but it seemed like a useful draft to start a conversation on how we want to do it.

In brief, this approach is basically "JSON-first" now, generating structs that are more or less directly output for the JSON "format" and then the standard TUI table format is just defining column->field map with optional transforms, like "-" for nil, humanized times, etc.

It also uses lipgloss table for everything now, rather than tabwriter. Not sure if there's any reason to not... do we want to keep tabwriter for some commands? Or as another output option (a simpler, non-styled version)?

@jabr jabr changed the title [draft] refactor/feat: Abstract cli table rendering and add JSON output format [spike] refactor/feat: Abstract cli table rendering and add JSON output format Nov 24, 2025
@jabr jabr marked this pull request as draft December 2, 2025 07:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant