yetone
6bffcfe178
gateway-key: a key's monthly limit can be set from the CLI again
...
`magpie gateway-key limit <id> month --cost 5` (and `add month`) failed
with "an N-hour cycle is a whole number of hours …: \"month\"":
parseKeyLimit cut an h off any window ending in one before it looked
for a named period, and month ends in an h. A named period (day, week,
month) is now taken as itself before the <N>d and <N>h forms are read.
Found while trying every command for the magpie-setup skill in a
sandbox HOME.
Run: go test ./internal/cli -run TestGatewayKey -count=1 ok; the new
month cases in TestGatewayKeyLimitCLI fail on the old parseKeyLimit
(reverted by hand) and pass with it. Tried the built binary in a
sandbox HOME: limit <id> month --cost 5 sets "this month".
2026-10-25 19:34:55 +08:00
..
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-25 17:26:38 +08:00
2026-10-25 17:26:38 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-21 19:58:52 +08:00
2026-10-13 23:30:17 +08:00
2026-10-12 20:40:22 +08:00
2026-10-20 02:29:39 +08:00
2026-10-15 00:15:27 +08:00
2026-10-12 20:40:22 +08:00
2026-10-13 16:19:13 +08:00
2026-10-24 14:52:13 +08:00
2026-10-20 20:23:57 +08:00
2026-10-20 20:23:57 +08:00
2026-10-12 20:40:22 +08:00
2026-10-17 20:52:13 +08:00
2026-10-21 09:13:30 +08:00
2026-10-14 08:32:41 +08:00
2026-10-14 13:36:03 +08:00
2026-10-15 03:34:59 +08:00
2026-10-13 05:34:13 +08:00
2026-10-25 19:34:55 +08:00
2026-10-25 19:34:55 +08:00
2026-10-13 15:25:06 +08:00
2026-10-24 21:33:06 +08:00
2026-10-24 21:33:06 +08:00
2026-10-15 22:36:59 +08:00
2026-10-24 07:07:57 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-25 18:18:02 +08:00
2026-10-25 18:18:02 +08:00
2026-10-12 20:40:22 +08:00
2026-10-13 13:10:30 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-21 09:13:30 +08:00
2026-10-17 12:04:53 +08:00
2026-10-21 09:13:30 +08:00
2026-10-24 21:33:06 +08:00
2026-10-24 21:33:06 +08:00
2026-10-23 01:58:00 +08:00
2026-10-12 20:40:22 +08:00
2026-10-23 01:58:00 +08:00
2026-10-13 13:02:58 +08:00
2026-10-25 16:49:29 +08:00
2026-10-24 02:48:50 +08:00
2026-10-15 23:08:03 +08:00
2026-10-25 12:06:13 +08:00
2026-10-12 20:40:22 +08:00
2026-10-13 18:16:03 +08:00
2026-10-12 20:40:22 +08:00
2026-10-24 05:31:59 +08:00
2026-10-24 05:51:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-14 05:43:48 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-25 13:19:52 +08:00
2026-10-15 22:36:59 +08:00
2026-10-15 22:36:59 +08:00
2026-10-13 18:01:20 +08:00
2026-10-25 13:19:52 +08:00
2026-10-14 16:40:24 +08:00
2026-10-12 23:45:06 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-15 23:08:05 +08:00
2026-10-25 16:30:48 +08:00
2026-10-12 20:40:22 +08:00
2026-10-21 19:00:33 +08:00
2026-10-12 20:40:22 +08:00
2026-10-15 05:20:17 +08:00
2026-10-25 13:19:52 +08:00
2026-10-21 09:13:30 +08:00
2026-10-12 20:40:22 +08:00
2026-10-14 15:02:15 +08:00
2026-10-14 15:02:15 +08:00
2026-10-14 20:49:20 +08:00
2026-10-12 22:42:46 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-13 14:41:10 +08:00
2026-10-12 20:40:22 +08:00
2026-10-25 00:43:36 +08:00
2026-10-15 23:08:00 +08:00
2026-10-17 21:24:33 +08:00
2026-10-12 20:40:22 +08:00
2026-10-25 02:13:44 +08:00
2026-10-12 20:40:22 +08:00
2026-10-16 05:10:43 +08:00
2026-10-13 13:02:09 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-19 15:19:31 +08:00
2026-10-12 20:40:22 +08:00
2026-10-14 08:26:04 +08:00
2026-10-25 17:26:38 +08:00
2026-10-14 13:36:03 +08:00
2026-10-14 13:36:03 +08:00
2026-10-15 23:08:03 +08:00
2026-10-15 23:08:03 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-16 20:11:34 +08:00
2026-10-23 01:58:01 +08:00
2026-10-14 15:26:28 +08:00
2026-10-13 09:56:06 +08:00
2026-10-20 00:18:51 +08:00
2026-10-12 20:40:22 +08:00
2026-10-14 13:36:03 +08:00
2026-10-12 20:40:22 +08:00
2026-10-15 00:15:27 +08:00
2026-10-12 22:55:22 +08:00