You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat!: harmonize date flags — replace --today/--days/--start/--end with --since/--until
BREAKING: --today, --days, --start, --end are removed. Replaced by
--since and --until per the shared quantcli date-flag contract:
https://github.com/quantcli/common/blob/main/CONTRACT.md#3-date-flags
--since VALUE inclusive lower bound
--until VALUE inclusive upper bound (defaults to today)
VALUE: today | yesterday | YYYY-MM-DD | Nd/Nw/Nm/Ny
Migration table:
--today → --since today
--days N → --since Nd
--start X --end Y → --since X --until Y
(no flag — last 7 days) → unchanged
Updated prime, README, and the shared cobra flag binding in cronoclient
to match. The other quantcli CLIs (liftoff, withings) already use
--since; this PR finishes the harmonization.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: README.md
+16-15Lines changed: 16 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ Export your personal nutrition, biometric, and food-log data from [Cronometer](h
11
11
12
12
-**Five export endpoints** — servings (per-food log with full nutrient breakdown), nutrition (daily totals), biometrics (weight, body fat, custom metrics), exercises, and notes
13
13
-**Markdown by default, JSON on demand** — narrow fitdown-style markdown reads well in chat and terminals; pass `--json` for the full structured row to pipe through `jq`
14
-
-**Date selection** — `--today`, `--days N`, or `--start YYYY-MM-DD --end YYYY-MM-DD` on every subcommand
14
+
-**Date selection** — `--since` / `--until` accepting `today`, `yesterday`, `YYYY-MM-DD`, or `Nd`/`Nw`/`Nm`/`Ny` on every subcommand
15
15
-**Single static binary** — no Python or Node runtime; drop it in `~/bin/` and go
16
16
-**Credentials via env** — `CRONOMETER_USERNAME` / `CRONOMETER_PASSWORD`, no config file needed
17
17
-**Built for agents** — designed to be called as a terminal tool by LLMs (Claude, hermes-agent, etc.); run `crono-export prime` for a one-screen orientation (I/O contract, subcommands, jq recipes)
@@ -26,7 +26,7 @@ brew install crono-export
26
26
# Set credentials and try a query
27
27
export CRONOMETER_USERNAME="you@example.com"
28
28
export CRONOMETER_PASSWORD="…"
29
-
crono-export servings --today
29
+
crono-export servings --since today
30
30
```
31
31
32
32
## Install
@@ -82,23 +82,24 @@ The CLI logs in on every invocation; there's no token cache. Cronometer doesn't
82
82
83
83
## Usage
84
84
85
-
Every subcommand accepts the same date flags:
85
+
Every subcommand accepts the same date flags, per the [shared quantcli contract](https://github.com/quantcli/common/blob/main/CONTRACT.md#3-date-flags):
@@ -155,8 +156,8 @@ Default output is narrow, [Fitdown](https://github.com/datavis-tech/fitdown)-sty
155
156
For programmatic use, pass `--json` (or `--format json`) to get the full structured row as a JSON array on stdout — nothing suppressed, easy to pipe through `jq`. Errors always go to stderr, so JSON output stays clean for piping.
0 commit comments