Skip to content

Refactor: thin lib.rs — CLI schema and run only #32

Description

@jon-devlapaz

Summary

src/lib.rs (~490 lines) mixes clap schema, dispatch, and per-command stdout/stderr narrative. Keep the edge thin: parse + route; move report printing next to command modules.

Why

Debt ledger still pins behavior characterization on lib.rs / command paths. Narrative coupled to dispatch makes command extraction and testing noisier than necessary.

Design target

  • lib.rs: Cli, Command, SkillCommand, run / thin dispatch
  • Each command module owns print_* / success lines (pattern already started: update::print_report, harvest reports in lib today)
  • Shared chrome stays in style

Acceptance

  • Snapshot/acceptance stdout contracts unchanged
  • lib.rs materially smaller; no new abstractions beyond relocating reports
  • Still one public run(cli, cwd) entry for the binary and tests

Priority

Low–medium hygiene; do not block bug fixes #24#26.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions