ProofOfConcept
|
99db511403
|
cli: move helpers to cli modules, main.rs under 1100 lines
Move CLI-specific helpers to their cli/ modules:
- journal_tail_entries, journal_tail_digests, extract_title,
find_current_transcript → cli/journal.rs
- get_group_content → cli/misc.rs
- cmd_journal_write, cmd_journal_tail, cmd_load_context follow
These are presentation/session helpers, not library code — they
belong in the CLI layer per Kent's guidance.
main.rs: 3130 → 1054 lines (66% reduction).
Co-Authored-By: Kent Overstreet <kent.overstreet@linux.dev>
|
2026-03-14 18:14:52 -04:00 |
|
ProofOfConcept
|
8640d50990
|
cli: extract journal and misc commands, complete split
Move remaining extractable handlers into cli/journal.rs and cli/misc.rs.
Functions depending on main.rs helpers (cmd_journal_tail, cmd_journal_write,
cmd_load_context, cmd_cursor, cmd_daemon, cmd_digest, cmd_experience_mine,
cmd_apply_agent) remain in main.rs — next step is moving those helpers
to library code.
main.rs: 3130 → 1331 lines (57% reduction).
cli/ total: 1860 lines across 6 focused files.
Co-Authored-By: Kent Overstreet <kent.overstreet@linux.dev>
|
2026-03-14 18:10:22 -04:00 |
|