Skip to content

Commit

Permalink
Merge pull request #1026 from eiriktsarpalis/pack-exclude
Browse files Browse the repository at this point in the history
Expose excluded templates in Pack helper
  • Loading branch information
forki committed Dec 1, 2015
2 parents 81a769a + 4a62d22 commit 802c759
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app/FakeLib/PaketHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ type PaketPackParams =
ReleaseNotes : string
BuildConfig : string
TemplateFile : string
ExcludedTemplates : string list
WorkingDir : string
OutputPath : string }

Expand All @@ -26,6 +27,7 @@ let PaketPackDefaults() : PaketPackParams =
ReleaseNotes = null
BuildConfig = null
TemplateFile = null
ExcludedTemplates = []
WorkingDir = "."
OutputPath = "./temp" }

Expand Down Expand Up @@ -66,9 +68,10 @@ let Pack setParams =
let buildConfig = if String.IsNullOrWhiteSpace parameters.BuildConfig then "" else " buildconfig " + toParam parameters.BuildConfig
let templateFile = if String.IsNullOrWhiteSpace parameters.TemplateFile then "" else " templatefile " + toParam parameters.TemplateFile
let lockDependencies = if parameters.LockDependencies then " lock-dependencies" else ""
let excludedTemplates = parameters.ExcludedTemplates |> Seq.map (fun t -> " exclude " + t) |> String.concat " "

let packResult =
let cmdArgs = sprintf "%s%s%s%s%s" version releaseNotes buildConfig templateFile lockDependencies
let cmdArgs = sprintf "%s%s%s%s%s%s" version releaseNotes buildConfig templateFile lockDependencies excludedTemplates
ExecProcess
(fun info ->
info.FileName <- parameters.ToolPath
Expand Down

0 comments on commit 802c759

Please sign in to comment.