Add --text/--csv stdout render modes with --limit #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "stdout-render-modes"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Read-only output modes that print upcoming events and exit without starting the TUI.
--textprintsName - Sun 8/9 (8d)lines.--csvprints aname,date,remainingheader plus quoted rows (stdlib csv module).--limit Ncaps either mode to the N soonest events (after prune+sort).Pure renderers live in
store.pysharing_date_label/_remaining/_upcominghelpers so the two modes cannot drift, and both short-circuit before the lazy Textual import so they skip its startup cost.--text/--csvare mutually exclusive with each other and--init;--limitrequires one of them and must be >= 0 (guarded via parser.error, exit 2). Empty/all-past/limit=0 prints nothing.Also adds CLAUDE.md documenting these modes. 47 tests passing.