是否可以选择列出假目标(可能带有描述)?

时间:2016-10-08 07:43:29

标签: f#-fake

在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

这可能是假的吗?

1 个答案:

答案 0 :(得分:2)

同样是在FAKE中实现的,正如我在阅读源文件时发现的那样

// 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"]