mmkal / trpc-cli

Turn a tRPC router into a type-safe, fully-functional, documented CLI
Other
49 stars 0 forks source link

Default procedure #3

Closed mmkal closed 1 month ago

mmkal commented 1 month ago

Support defining a "default" procedure. This is for the migra use case where the CLI really only does one thing. Use like:

migra postgresql://a postgresql://b

Or yarn being an alias for yarn install, etc. etc.

Use like

trpcCli({
  router,
  default: {procedure: 'run'},
})