Request: more friendly CLI UX
- Dominant language
- JavaScript
- Stars
- 697
- Forks
- 245
- PR merge metrics
- No merged PRs in 30d
Description
```
❯ grunt init
grunt-cli: The grunt command line interface. (v0.1.13)
Fatal error: Unable to find local grunt.
If you're seeing this message, either a Gruntfile wasn't found or grunt
hasn't been installed locally to your project. For more information about
installing and configuring grunt, please see the Getting Started guide:
http://gruntjs.com/getting-started
```
Shouldn't this just generate a Gruntfile for the user?
The same error is displayed with `grunt help` and `grunt --help`.
I understand that at some point, this functionality was [removed from Grunt](https://github.com/gruntjs/grunt-init-gruntfile), but I cannot figure out why. The [links are broken](https://github.com/gruntjs/grunt-docs/issues/44) in the current docs.
It'd also be great if there was a CLI UI like Bower or Yeoman.
```
❯ bower help init
Usage:
bower init []
Options:
-h, --help Show this help message
Additionally all global options listed in 'bower help' are available
Description:
Creates a bower.json file based on answers to questions.
```
```
❯ yo
[?] What would you like to do? (Use arrow keys)
❯ Run the Angular generator (0.7.1)
Run the Bootstrap3-less generator (3.0.1)
Run the Pure generator (0.2.0)
Run the Static generator (0.0.8)
Run the Webapp generator (0.4.7)
Run the Zurb-foundation generator (0.3.5)
Run the Karma generator (0.6.0)
(Move up and down to reveal more choices)
```
Even further,
```
❯ grunt-init
Running "init" task
A valid init template name must be specified.
Available templates
(No templates found)
Templates that exist in the /Users/kevinsuttle/.grunt-init directory may be run
with "grunt-init TEMPLATE". Templates that exist in another location may be run
with "grunt-init /path/to/TEMPLATE". A template is a directory that must
contain, at the very minimum, a template.js file.
For more information, see http://gruntjs.com/project-scaffolding
```
This is an opportunity to do work on the user's behalf, not give them a chore.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.