unkit icon indicating copy to clipboard operation
unkit copied to clipboard

Support for CLI

Open shinGangan opened this issue 1 year ago • 1 comments

Describe the feature

Context

I am currently using unjs/citty to make CLI tools. While creating CLI tools, I have been saved by many unjs stacks such as

  • 🌆 unjs/citty
  • 🐨 unjs/consola
  • 💅 unjs/changelogen
  • 📦 unjs/unbuild
  • 🍟 unjs/jiti

There are others that are needed(magicast, unctx, c12, pathe, etc), but we believe the above are the minimum. So, I would like to provide unkit for those who want to make CLI with unjs in the future.

Design

  • add src/cli.ts
  • add exports.cli options in package.json

Additional information

  • [X] Would you be willing to help implement this feature?
### Tasks

shinGangan avatar Jan 03 '24 16:01 shinGangan

Hi @pi0 ( and @NozomuIkuta ).

I would appreciate a review when you have time. I'll create a Pull Request if you're okay with the policy.

shinGangan avatar Jan 03 '24 16:01 shinGangan