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

cli feature idea: list generator tasks / help and list available generators #18

Open
tunnckoCore opened this issue Jul 9, 2016 · 1 comment
Labels

Comments

@tunnckoCore
Copy link

tunnckoCore commented Jul 9, 2016

Would be good to be able to list generator tasks - not all, but maybe that are not silenced? only the main, without the aliases. Also generator help task if exist.

Something like that

# list generate-project tasks
$ gen project --tasks

# list generate-node tasks
$ gen node --tasks
$ gen node --list-tasks?
$ gen node --list?

# list 
$ gen foo bar --tasks
$ gen foo bar baz qux --tasks

Hm. So, maybe would make more sense if I rephrase it to per generator options.

And just popup one more thing in my mind - list available generators (globally/locally installed).

Maybe something like

# list globally installed generators
$ gen --list

# list locally installed
$ gen --list-local

# list sub-generators of `foo` generator
$ gen foo --list
$ gen foo --list-local

# list tasks of `foo` generator
$ gen foo --tasks

# list sub-sub-sub-generator
$ gen foo bar baz --list

edit: Or.. because this looks a bit complex. maybe better option can be to list them all through core generate command. Or maybe even in help command (of course only the top generators, not their sub-generators) like:

$ gen list
Globally installed generators 

Path: /home/user/path/to/global/location
List: foo, bar, project
dest
node
mocha
gitignore

$ gen list-local
Locally installed generators

Path: ~/path/to/cwd/location
List: meow, car, train

$ gen list-tasks [generator-name]
# or
$ gen tasks [generator-name]
@jonschlinkert
Copy link
Member

jonschlinkert commented Jul 9, 2016

I just realized the docs on this repo suck, but it has a method that prompts for tasks

we can probably expose that in a generator so it's available globally when you install it globally

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants