是否可以选择列出伪造的目标(可能带有说明)? [英] Is there an option to list the targets (maybe with a description) in fake?
本文介绍了是否可以选择列出伪造的目标(可能带有说明)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在Ruby(RAKE)中,您可以通过以下方式记录任务
In Ruby (RAKE) you can document your tasks in the following way
# 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
假货有可能吗?
推荐答案
在FAKE中也实现了同样的功能,正如我在阅读源代码时发现的那样
The same is implemented in FAKE, as I found out when reading the source
// build.fsx
Description "remove temp/"
Target "Clean" (fun _ ->
CleanDirs [buildDir; deployDir]
)
// ....so on
依存关系图显示为.../fake.exe --listTargets
或-lt
Available targets:
- Clean - remove temp/
Depends on: []
- Build
Depends on: ["Clean"]
- Deploy
Depends on: ["Test"]
- Test
Depends on: ["Build"]
这篇关于是否可以选择列出伪造的目标(可能带有说明)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文