Skip to content

Replace Commander.js with CAC in CLI code#1089

Draft
threeal wants to merge 1 commit into
mainfrom
use-cac-in-cli
Draft

Replace Commander.js with CAC in CLI code#1089
threeal wants to merge 1 commit into
mainfrom
use-cac-in-cli

Conversation

@threeal
Copy link
Copy Markdown
Owner

@threeal threeal commented May 18, 2026

Summary

  • Replace commander dependency with cac for a more actively maintained library with better TypeScript support
  • Update src/bin.ts to use the CAC API
  • Update references in README.md and CLAUDE.md

Resolves #1088

🤖 Generated with Claude Code

Resolves #1088

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com>
@threeal
Copy link
Copy Markdown
Owner Author

threeal commented May 18, 2026

CAC apparently is not very good at handling errors, and it also has the same typing limitations as Commander. I'm going to postpone this for now.

@threeal threeal self-assigned this May 18, 2026
@threeal threeal added the enhancement New feature or request label May 18, 2026
@threeal threeal added this to the Version 3.5.0 milestone May 18, 2026
@threeal threeal added this to Granary May 18, 2026
@threeal threeal moved this to Harvestable in Granary May 18, 2026
@threeal threeal marked this pull request as draft May 18, 2026 09:26
@threeal threeal modified the milestones: Version 3.5.0, Version 4.1.0 May 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: Harvestable

Development

Successfully merging this pull request may close these issues.

Use CAC in CLI code

1 participant