From 2c6e2bdb4865d418e14abba7ba2bf6d1540cb9e2 Mon Sep 17 00:00:00 2001 From: Bhekani Khumalo Date: Mon, 30 Mar 2026 13:50:44 +0100 Subject: [PATCH] fix: add missing command name to makeWorklogCommand Commander requires a name when using addCommand(). The worklog subcommand was created with `new Command()` instead of `new Command("generate")`, causing a crash on startup. --- commands/worklog.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/worklog.ts b/commands/worklog.ts index 0b03f2f..972ab90 100644 --- a/commands/worklog.ts +++ b/commands/worklog.ts @@ -658,7 +658,7 @@ export async function runWorklog(opts: { // --- Commander command definition --- export function makeWorklogCommand(): Command { - const cmd = new Command() + const cmd = new Command("generate") .description("Generate weekly brag book(s)") .option("--weeks ", "Number of weeks to generate going back from now", (v) => { const n = parseInt(v, 10);