kbrsh / moon

🌙 The minimal & fast library for functional user interfaces
https://moonjs.org
MIT License
5.99k stars 200 forks source link

improve CLI UX #262

Closed kbrsh closed 4 years ago

kbrsh commented 4 years ago

Adds CLI commands, including a help command capable of displaying help messages for individual commands. This will make it easier for people to directly install moon-cli and work with it without having to reference the documentation for the previous simple but obscure behavior. There are now three commands, moon version, moon help, and moon create. They all have error messages and help messages to guide users through the process of using them. moon create now accepts the template as an option rather than a positional argument, using the -t or --template option instead.

codecov-io commented 4 years ago

Codecov Report

Merging #262 into master will decrease coverage by 5.62%. The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #262      +/-   ##
==========================================
- Coverage   93.35%   87.73%   -5.63%     
==========================================
  Files          26       26              
  Lines         843      897      +54     
  Branches      178      190      +12     
==========================================
  Hits          787      787              
- Misses         49       95      +46     
- Partials        7       15       +8
Impacted Files Coverage Δ
packages/moon-cli/src/index.js 0% <0%> (ø) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update d9cb7a7...b055b9a. Read the comment docs.