feat: CLI output overhaul and bug fixes#13
Merged
Conversation
Output system: - Tab-delimited non-TTY output for pipe compatibility (cut, awk, etc.) - Key:value detail views instead of box tables for single-object commands - Relative timestamps in table mode (18d ago, 35m ago) - Colored status columns (green/red/yellow) in TTY mode - Empty state messages instead of empty bordered tables - String truncation helpers for long cell values Bug fixes: - --host flag now respected by all commands via cmdutil.ResolveHost - workflow run accepts both HTTP 200 and 202 - org members uses GET /list-members (was POST to wrong endpoint) - --limit flag works client-side as server fallback - FileBackend prioritized over KeychainBackend to avoid macOS prompts Features: - --web flag on workflow get opens resource in browser - .mcp.json for kh serve --mcp integration - PrintKeyValue and PrintDryRun methods on Printer
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Bug fixes
cmdutil.ResolveHost(cmd, cfg)instead of hardcodedcfg.DefaultHostOutput system
internal/output/table.go: Non-TTY returns tsvWriter (tab-separated, no headers, no borders) sokh wf ls | cut -f2worksinternal/output/printer.go: PrintKeyValue for detail views, PrintDryRun for dry-run modeinternal/output/timeago.go: Relative timestamps (18d ago, 35m ago) for table modeinternal/output/color.go: ANSI green/red/yellow for status values in TTY modeinternal/output/truncate.go: String truncation helpersTest plan
go test ./...passes (26 packages, 0 failures)go buildsucceeds