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.
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}'