summaryrefslogtreecommitdiff
path: root/test/cli.t
diff options
context:
space:
mode:
authorLukasz Kasprzak <lukas@labunix.xyz>2026-08-11 15:27:53 +0200
committerLukasz Kasprzak <lukas@labunix.xyz>2026-08-11 15:27:53 +0200
commit1203380c4644277a2949d42f4619360c1c0ef1e5 (patch)
tree830fd059db243144e9819a134864e8805acc3d39 /test/cli.t
parent39c8684646f7bad7161b9eeae166b121cc580a3c (diff)
downloadcolitur-1203380c4644277a2949d42f4619360c1c0ef1e5.tar.gz
colitur-1203380c4644277a2949d42f4619360c1c0ef1e5.zip
cli: colitur temporal <year> dumps the EF temporal cycle
One line per day -- date, weekday, season, week, slug, rank, colour -- built through Record, the canonical output view. Until Plan 3 brings the differential and oracle layers, this dump is how a human checks EF temporal against missalemeum by eye.
Diffstat (limited to 'test/cli.t')
-rw-r--r--test/cli.t24
1 files changed, 23 insertions, 1 deletions
diff --git a/test/cli.t b/test/cli.t
index 319fc8c..276b1a1 100644
--- a/test/cli.t
+++ b/test/cli.t
@@ -17,5 +17,27 @@ A year outside the supported domain is rejected (exit 2):
No/garbage arguments give a usage error (exit 2):
$ colitur
- colitur: usage: colitur easter <year>
+ colitur: usage: colitur easter <year> | colitur temporal <year>
+ [2]
+
+The EF temporal cycle for a year, one line per day:
+
+ $ colitur temporal 2026 | head -3
+ 2026-01-01 thursday christmastide ef-circumcision class-1 white
+ 2026-01-02 friday christmastide ef-christmas-0-friday class-4 white
+ 2026-01-03 saturday christmastide ef-christmas-0-saturday class-4 white
+
+ $ colitur temporal 2026 | wc -l
+ 365
+
+ $ colitur temporal 2026 | grep -c '^2026-04-05 '
+ 1
+
+ $ colitur temporal 2026 | grep '^2026-04-05 '
+ 2026-04-05 sunday paschaltide 1 ef-easter-sunday class-1 white
+
+A year outside the supported domain is rejected (exit 2):
+
+ $ colitur temporal 1000
+ colitur: year 1000 out of range 1583..9999
[2]