我正在想办法打印一份清单,列出所有可用的繁琐工作:
$ rake -T
咕哝的等价物是什么。
$ grunt -T
grunt --help lists available tasks.
grunt --help
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}'