Skip to content

Format command output for terminal workflows - #64

Merged
brdv merged 1 commit into
mainfrom
format-command-output
Jul 24, 2026
Merged

brdv merged 1 commit into
mainfrom
format-command-output

Conversation

@brdv

@brdv brdv commented Jul 24, 2026 •

Copy link
Copy Markdown
Owner

Summary

Apply consistent human-readable formatting across every stck command while preserving automation-safe redirected output.

This is stack 3/3 and is based on #63 (subprocess-progress). Terminal output gets distinct stck, git, and gh labels, compact sync/push step rows, structured stack status, colored success and error markers, and clearer recovery blocks. Redirected output retains the established $ git, error:, and Summary: strings without ANSI sequences.

Changelist

  • src/ui.rs: add centralized info, success, operation, diagnostic, and status renderers with exact plain-output fallbacks.
  • src/commands.rs: route all user-facing command output through the renderer.
  • tests/status.rs: enforce ANSI-free captured output.
  • USAGE.md: document terminal progress, subprocess diagnostics, NO_COLOR, and redirected-output guarantees.

Checklist

  • Changes are minimal and focused for this milestone
  • No breaking CLI changes unless explicitly intended
  • Errors are user-facing, actionable, and prefixed with error:
  • Added/updated tests for behavior changes
  • Updated docs/plan if behavior or scope changed

@brdv brdv mentioned this pull request Jul 24, 2026
5 tasks done
@brdv brdv self-assigned this Jul 24, 2026
@brdv brdv changed the title format-command-output Format command output for terminal workflows Jul 24, 2026
@brdv
brdv force-pushed the subprocess-progress branch from 1685997 to ddb9faa Compare July 24, 2026 13:47
@brdv
brdv force-pushed the format-command-output branch from e1a621e to b10d4b1 Compare July 24, 2026 13:47
Base automatically changed from subprocess-progress to main July 24, 2026 13:48
@brdv
brdv force-pushed the format-command-output branch from b10d4b1 to e57730b Compare July 24, 2026 13:48
@brdv
brdv merged commit e1cac2b into main Jul 24, 2026
@brdv
brdv deleted the format-command-output branch July 24, 2026 13:48
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