Skip to content

cli: roll the render seam out to the remaining leaf commands (P5-CLI-01) #112

Description

@Reederey87

Audit finding: P5-CLI-01 (P2) — see docs/audits/README.md (Pass 5 open table).

A render output seam landed and is wired into materialize, but most leaf commands still print directly to stdout. Rolling the seam out command-by-command makes output modes (e.g. --quiet, future --json) uniform.

What to do

  • Look at how internal/cli/materialize.go routes user-facing output through the render seam.
  • Pick one or a few leaf commands (e.g. worktree list, devices list, conflicts list) and convert their direct fmt.Fprintf(cmd.OutOrStdout(), …) result printing to the same pattern. Small, per-command PRs are welcome — you do not need to convert everything at once.
  • Keep --quiet semantics intact (progress chatter suppressed; results and errors still print — see PR fix(cli): make --quiet suppress progress chatter (P6-CLI-04) #90).

Gates: gofmt -w cmd internal, golangci-lint run, go test -race ./.... Spec-drift/work-log bookkeeping is advisory on fork PRs; the maintainer completes it at merge.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions