Skip to content

fix: add missing command name to makeWorklogCommand#38

Merged
Bhekani Khumalo (bhekanik) merged 1 commit into
feat/add-commanderfrom
fix/commander-worklog-command-name
Mar 30, 2026
Merged

fix: add missing command name to makeWorklogCommand#38
Bhekani Khumalo (bhekanik) merged 1 commit into
feat/add-commanderfrom
fix/commander-worklog-command-name

Conversation

@bhekanik
Copy link
Copy Markdown
Collaborator

Summary

  • makeWorklogCommand() created new Command() without a name, but commander requires a name when using program.addCommand() — causing a crash on startup: Command passed to .addCommand() must have a name
  • Fixed by passing "generate" as the command name

Test plan

  • worklog --help shows subcommands correctly
  • worklog runs the default generate command

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.
@bhekanik Bhekani Khumalo (bhekanik) merged commit 537f156 into feat/add-commander Mar 30, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant