2
在Ruby(RAKE),您可以通過以下方式有沒有一個選項列出目標(可能與描述)在假?
# rakefile
desc "cleans ./temp"
task :clean do
p :cleaning
end
desc "compile the source"
task :compile => :clean do
p :compiling
end
$ rake -T # Display the tasks with descriptions, then exit.
rake clean # cleans ./temp
rake compile # compile the source
記錄您的任務,這可能與假?
源是它不相似[本SO問題]當(http://stackoverflow.com/questions/32017021/how-do-you-add-a-description-to-a-fake-target)? –