Skip to content

switch to commander, enable sub-commands, completion#56

Merged
mmkal merged 44 commits intomainfrom
defaulttrue
Mar 12, 2025
Merged

switch to commander, enable sub-commands, completion#56
mmkal merged 44 commits intomainfrom
defaulttrue

Conversation

@mmkal
Copy link
Copy Markdown
Owner

@mmkal mmkal commented Mar 10, 2025

cleye has some limitations:

  • no single character flags right now (opened a PR but stalled for the moment: feat: support single-character flags privatenumber/type-flag#27)
  • no subcommands
  • therefore also hard to implement "default" subcommands with the dot-separated subcommand syntax
  • nice typescript features are hidden by this library anyway, so paying for that complexity without adding value
  • most importantly, solo developer, small fraction of the usage

So this switches to commander as the underlying cli library. It's a big change but the basic usage of trpc-cli is much the same.

@mmkal mmkal changed the title switch to commander, enable sub-commands switch to commander, enable sub-commands, completion Mar 11, 2025
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Mar 11, 2025

Open in Stackblitz

pnpm add https://pkg.pr.new/mmkal/trpc-cli@56

commit: 0f8b4fd

@mmkal mmkal merged commit 179e1b8 into main Mar 12, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant