From 4a62d22d809a66dc9eb349402e12a6c0c39500cd Mon Sep 17 00:00:00 2001 From: Eirik Tsarpalis Date: Tue, 1 Dec 2015 15:43:54 +0200 Subject: [PATCH] expose excluded templates in Pack helper --- src/app/FakeLib/PaketHelper.fs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app/FakeLib/PaketHelper.fs b/src/app/FakeLib/PaketHelper.fs index 43b2da4e6c6..09e17bb0e82 100644 --- a/src/app/FakeLib/PaketHelper.fs +++ b/src/app/FakeLib/PaketHelper.fs @@ -14,6 +14,7 @@ type PaketPackParams = ReleaseNotes : string BuildConfig : string TemplateFile : string + ExcludedTemplates : string list WorkingDir : string OutputPath : string } @@ -26,6 +27,7 @@ let PaketPackDefaults() : PaketPackParams = ReleaseNotes = null BuildConfig = null TemplateFile = null + ExcludedTemplates = [] WorkingDir = "." OutputPath = "./temp" } @@ -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