Skip to content

Create console output formatting system #7

@MichaelSchmidle

Description

@MichaelSchmidle

Replace free-styled console outputs with reusable formatting components.

Problem: Every output is custom-formatted, leading to:

  • Inconsistent styling across commands
  • Hard to change formatting patterns globally
  • Million places to edit for style changes

Solution: Create output abstraction layer

// src/utils/output.ts
export const output = {
  section: (title: string, content: () => void) => { /* ... */ },
  success: (message: string) => { /* ... */ },
  error: (message: string, details?: { cause, solution }) => { /* ... */ },
  list: (items: string[]) => { /* ... */ },
  command: (cmd: string) => { /* ... */ },
  url: (url: string, description?: string) => { /* ... */ },
};

Refactor gradually: Don't block release, but do before v1.0

Related: 001-T058-T061 from spec 001

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/outputConsole output and UXenhancementNew feature or requestpolishUX/output improvementspriority/mediumShould have eventually

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions