ionic-team / create-stencil

npm init stencil
https://stenciljs.com/
MIT License
50 stars 28 forks source link

feat(cli): add additional instructions + help info #356

Closed rwaskiewicz closed 1 year ago

rwaskiewicz commented 1 year ago

Pull request checklist

Please check if your PR fulfills the following requirements:

Pull request type

Please check the type of change your PR introduces: - [ ] Bugfix - [x] Feature - [ ] Refactoring (no functional changes, no api changes) - [ ] Build related changes - [ ] Documentation content changes - [ ] Other (please describe): ## What is the current behavior?

GitHub Issue Number: N/A

What is the new behavior?

this commit adds additional runtime information to using the CLI. it adds additional flag information under the --help flag at runtime. it also expounds on using a custom starter in the README

Does this introduce a breaking change?

Testing

Built locally and ran:

 node index.js -- --help
This CLI has two operation modes, interactive and command mode.

Interactive Mode Usage:

  npm init stencil

Command Mode Usage:

  npm init stencil [starter] [project-name]

General Use Flags:
  --help - show usage examples for the CLI
  --info - print the current version of the CLI

Additional Information: https://github.com/ionic-team/create-stencil

Other information

At some point, I think it'd be nice to add some better CLI arg handling (perhaps we actually pull in a real library?). For now, I think this helps us a bit in terms of feature parity between the README, the help command, and what the CLI can actualy do