I'm trying to work out how to print a list of all available grunt tasks. With rake it would be:
$ rake -T
What's the equivalent for grunt? e.g.
$ grunt -T
- concat
- jasmine
- minify
grunt --help
lists available tasks.
grunt multi:task0
, multi:task1
, etc.?
Commented
Jun 15, 2014 at 13:56
grunt --help
generates. You might like to use it for now as a stop-gap, bearing in mind that it's been over a year since I first released it and still no option within grunt to hide tasks, etc.
Workaround for the list in sh/bash in case you need to trigger something and can't modify the original code:
grunt -h --no-color | sed -n '/^Available tasks/,/^$/ {s/^ *\([^ ]\+\) [^ ]\+.*$/\1/p}'