是否可以选择列出伪造的目标(可能带有说明)?
问题描述:
在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"]