Skip to content

Commit 231b5a1

Browse files
authored
fix(cli): clarify --tz help text for offset-less --at values
Clarifies cron edit --at help after maintainer rebase and preserves the Gateway-host timezone wording for cron --tz help. Validation: - git diff --check - node scripts/run-vitest.mjs src/cli/cron-cli.test.ts - local Codex autoreview clean, no actionable findings Co-authored-by: rrrrrredy <rrrrrredy@users.noreply.github.com>
1 parent c5db07e commit 231b5a1

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

src/cli/cron-cli.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@ describe("cron cli", () => {
307307

308308
expect(addCommand?.helpInformation()).toContain("Gateway host local timezone");
309309
expect(editCommand?.helpInformation()).toContain("Gateway host local timezone");
310+
expect(editCommand?.helpInformation()).toMatch(/offset-less uses\s+--tz/);
310311
});
311312

312313
it.each([

src/cli/cron-cli/register.cron-edit.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,10 @@ export function registerCronEditCommand(cron: Command) {
8787
.option("--session-key <key>", "Set session key for job routing")
8888
.option("--clear-session-key", "Unset session key", false)
8989
.option("--wake <mode>", "Wake mode (now|next-heartbeat)")
90-
.option("--at <when>", "Set one-shot time (ISO) or duration like 20m")
90+
.option(
91+
"--at <when>",
92+
"Set one-shot time (ISO, offset-less uses --tz) or duration like 20m",
93+
)
9194
.option("--every <duration>", "Set interval duration like 10m")
9295
.option("--cron <expr>", "Set cron expression")
9396
.option(

0 commit comments

Comments
 (0)