cli: screen renderer (CLI views stage 1) #317

closed cmc opened this on 2026-10-02 03:01 UTC · cli ux

Discussion

cmc 2026-10-02 03:01 UTC

Stage 1 of #316. Plan tasks 1–8 in docs/plans/2026-10-01-cli-views.md.

  • glyph(), cGlyph, cYou, cMeta; refs painted dim, not cyan (table and view.title).
  • table writes a header row only when a column is a number or size; lines() split from flush().
  • internal/control/screen.go: screen, field, section, row, action, render, legend layout, cmdline.
  • Term.Here from here= in --term; the CLI sends the repository it inferred.
  • emitView, emitPageView; the cursor line becomes Next page <command>.
  • Test helpers: checkActions (every suggested command resolves in the registry with declared flags) and pinPlain (piped output pinned before a command migrates).
  • Users wiki "Output rules" rewritten; changelog entry.

Piped and --json output byte-identical.

referenced in commit ee77220399 by cmc: docs: header rows, dim references, here=

2026-10-02 03:33 UTC

referenced in commit ee57439e55 by cmc: e2e: tell terminal output by padding, not the header row

2026-10-02 03:33 UTC

referenced in commit 72eaa3a587 by cmc: control: test helpers for screen migrations

2026-10-02 03:33 UTC

referenced in commit d6663a0512 by cmc: cli: send the inferred repository as here= in --term

2026-10-02 03:33 UTC

referenced in commit 583b480f3a by cmc: control: emitView and emitPageView; next page as a legend line

2026-10-02 03:33 UTC

referenced in commit b19c86712e by cmc: control: action legend; here= names the inferred repository

2026-10-02 03:33 UTC

referenced in commit 4099abc8b9 by cmc: control: screen model and renderer

2026-10-02 03:33 UTC

referenced in commit 6cc1494e6b by cmc: control: tables name their columns only when they hold numbers

2026-10-02 03:33 UTC

referenced in commit 0c0ae8e08b by cmc: control: glyph and meta cells, refs dim

2026-10-02 03:33 UTC

closed by merge request !552: control: screen renderer (CLI views stage 1)

2026-10-02 03:33 UTC