Skip to content

feat: add lipgloss-styled human output for requirement analysis commands #219

Description

@yvonnedevlinrh

Summary

The 4 requirement analysis CLI commands (requirements, triage, delta, applicability) added in #217 currently delegate their --format human output to the plain text formatter. Each command has a TODO comment noting this:

  • requirements.go:202writeRequirementsHuman
  • triage.go:183writeTriageHuman
  • delta.go:183writeDeltaHuman
  • applicability.go:205writeApplicabilityHuman

Expected Behavior

When --format human is used (the default for interactive terminals), output should use lipgloss styling consistent with the existing coverage command (cmd/complypack/cli/coverage.go), which already implements styled headers, indentation, and color.

Reference Implementation

The coverage.go command provides the canonical pattern:

  • Lipgloss style definitions for headers, labels, and values
  • writeHuman() function using lipgloss.NewStyle() for structured terminal output
  • NO_COLOR support via resolveFormat() (already shared by all commands)

Acceptance Criteria

  • complypack requirements --catalog <name> produces styled terminal output
  • complypack triage --policy <name> produces styled terminal output
  • complypack delta --policy <name> produces styled terminal output
  • complypack applicability --catalog <name> produces styled terminal output
  • Styling is consistent with coverage command output
  • NO_COLOR / --format text still produces unstyled plain text
  • Existing writeXxxHuman test assertions updated for styled output

Context

Part of #87. The plain text delegation was an intentional scoping decision in #217 to keep that PR focused on CLI/MCP parity (Constitution Principle III).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

Priority

Low

Effort

None yet

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions