Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement MVP but rich CLI #1

Open
6 tasks
juanmirocks opened this issue Apr 14, 2023 · 1 comment
Open
6 tasks

Implement MVP but rich CLI #1

juanmirocks opened this issue Apr 14, 2023 · 1 comment

Comments

@juanmirocks
Copy link
Owner

juanmirocks commented Apr 14, 2023

Current poc CLI: https://github.com/juanmirocks/parcel-reporter-mkpdf/blob/develop/workspaces/mkpdf/src/cli.ts

Goals:

  • Parse options from PrintMainInput
  • Allow inputs:
    • HTML
    • URL
    • (Not implemented) Markdown
  • Release globally-installable CLI as an npm package

Considered CLI JS libraries:

@juanmirocks
Copy link
Owner Author

Comparison of CLI libraries for JS as of 2023-06-06

Name Version Size node official support deno official support
yargs 17.7.2 292kB
commander.js 10.0.1 174kB ⚠️
oclif 3.9.0 166kB

For now, I try with oclif, since it's the leanest, it seems to do everything, and it's actively maintained by salesforce. deno packaging support is actually not needed and anyway they seem to be working on it.

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

No branches or pull requests

1 participant