Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
利用可能なすべての単調なタスクのリストを印刷する方法を考え出そうとしています。レーキでは次のようになります。
$ rake -T
うなり声に相当するものは何ですか? 例えば
$ grunt -T
grunt --help利用可能なタスクをリストします。
grunt --help
何かをトリガーする必要があり、元のコードを変更できない場合の sh/bash のリストの回避策:
grunt -h --no-color | sed -n '/^Available tasks/,/^$/ {s/^ *\([^ ]\+\) [^ ]\+.*$/\1/p}'