Skip to content

Commit

Permalink
Add Obsolete doc for Target templating
Browse files Browse the repository at this point in the history
  • Loading branch information
devcrafting committed Sep 18, 2017
1 parent ba4a4ba commit a48b02e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/app/FakeLib/TargetHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ let AllTargetsDependOn target =

/// Creates a target from template.
/// [omit]
[<System.Obsolete("Internal state is no more accessible now (FAKE0003 - package: Fake.Core.Target). If you consider, it is still useful, please open an issue and explain your use case")>]
[<System.Obsolete("Internal state is no more accessible now (FAKE0003 - package: Fake.Core.Target). If you consider, it is still useful, please open an issue and explain your use case. Note you can create Template with functions that Target.Create using a closure on function parameters + defines dependencies with TargetOperators.")>]
let targetFromTemplate template name parameters =
match TargetDict.ContainsKey name with
| true ->
Expand Down Expand Up @@ -285,7 +285,7 @@ let targetFromTemplate template name parameters =
/// "T1" ==> "T2" ==> "Test"
///
[<System.Obsolete("Internal state is no more accessible now (FAKE0003 - package: Fake.Core.Target). If you consider, it is still useful, please open an issue and explain your use case")>]
[<System.Obsolete("Internal state is no more accessible now (FAKE0003 - package: Fake.Core.Target). If you consider, it is still useful, please open an issue and explain your use case. Note you can create Template with functions that Target.Create using a closure on function parameters + defines dependencies with TargetOperators.")>]
let TargetTemplateWithDependencies dependencies body name parameters =
let template =
{ Name = String.Empty
Expand All @@ -295,11 +295,11 @@ let TargetTemplateWithDependencies dependencies body name parameters =
Function = body }
targetFromTemplate template name parameters

[<System.Obsolete("Internal state is no more accessible now (FAKE0003 - package: Fake.Core.Target). If you consider, it is still useful, please open an issue and explain your use case")>]
[<System.Obsolete("Internal state is no more accessible now (FAKE0003 - package: Fake.Core.Target). If you consider, it is still useful, please open an issue and explain your use case. Note you can create Template with functions that Target.Create using a closure on function parameters + defines dependencies with TargetOperators.")>]
let TargetTemplateWithDependecies dependencies = TargetTemplateWithDependencies dependencies

/// Creates a TargetTemplate.
[<System.Obsolete("Internal state is no more accessible now (FAKE0003 - package: Fake.Core.Target). If you consider, it is still useful, please open an issue and explain your use case")>]
[<System.Obsolete("Internal state is no more accessible now (FAKE0003 - package: Fake.Core.Target). If you consider, it is still useful, please open an issue and explain your use case. Note you can create Template with functions that Target.Create using a closure on function parameters + defines dependencies with TargetOperators.")>]
let TargetTemplate body = TargetTemplateWithDependencies [] body

/// Creates a Target.
Expand Down

0 comments on commit a48b02e

Please sign in to comment.