From f46c0097cbcf846ec82de3156738e0c135220ddc Mon Sep 17 00:00:00 2001 From: Alistair Chapman Date: Fri, 5 May 2017 20:59:42 +1000 Subject: [PATCH] Update xmldoc and namespacing --- src/Cake.ClickTwice/ClickTwiceRunner.cs | 20 +++++++++++++++++++- src/TestApp/Program.cs | 2 +- src/TestApp/TestApp.csproj | 4 ++++ 3 files changed, 24 insertions(+), 2 deletions(-) diff --git a/src/Cake.ClickTwice/ClickTwiceRunner.cs b/src/Cake.ClickTwice/ClickTwiceRunner.cs index 130d6b2..b19b821 100644 --- a/src/Cake.ClickTwice/ClickTwiceRunner.cs +++ b/src/Cake.ClickTwice/ClickTwiceRunner.cs @@ -1,9 +1,12 @@ -using Cake.Core; +using System; +using System.Collections.Generic; +using Cake.Core; using Cake.Core.Diagnostics; using Cake.Core.IO; using Cake.Core.Tooling; using ClickTwice.Publisher.Core; using ClickTwice.Publisher.Core.Handlers; +using ClickTwice.Templating; namespace Cake.ClickTwice { @@ -70,6 +73,15 @@ public void RunOutputHandlers(string publishDirectoryPath, params IOutputHandler s => Log.Information(s)); } + /// + /// Prepares a directory-based ClickTwice template, using the provided metadata + /// + /// Path to the tempalte directory + /// Id of the package to generate + /// Version of the generated package + /// Author of the generated package + /// Optional description of the generated package + /// public CakeTemplatePublisher PublishTemplate(DirectoryPath templateDirectory, string packageId, string version, string author, string description = null) { var s = new TemplatePackageSettings() @@ -82,6 +94,12 @@ public CakeTemplatePublisher PublishTemplate(DirectoryPath templateDirectory, st return new CakeTemplatePublisher(templateDirectory.MakeAbsolute(Environment).FullPath, s); } + /// + /// Prepares a directory-based ClickTwice template, using the provided metadata + /// + /// Path to the tempalte directory + /// Action for configuring template package settings + /// public CakeTemplatePublisher PublishTemplate(DirectoryPath templateDirectory, Action configure) { diff --git a/src/TestApp/Program.cs b/src/TestApp/Program.cs index 635f659..237473d 100644 --- a/src/TestApp/Program.cs +++ b/src/TestApp/Program.cs @@ -4,11 +4,11 @@ using System.Diagnostics; using System.IO; using System.Linq; -using ClickTwice.CommandLine.Packaging; using ClickTwice.Handlers.AppDetailsPage; using ClickTwice.Publisher.Core.Handlers; using ClickTwice.Publisher.Core.Loggers; using ClickTwice.Publisher.MSBuild; +using ClickTwice.Templating; namespace TestApp { diff --git a/src/TestApp/TestApp.csproj b/src/TestApp/TestApp.csproj index 6a1dc9a..987864a 100644 --- a/src/TestApp/TestApp.csproj +++ b/src/TestApp/TestApp.csproj @@ -75,6 +75,10 @@ {a0a4508d-c0b8-4f18-a61f-7d5b98e0aef6} ClickTwice.Publisher.MSBuild + + {F34D7CE7-5BE7-4393-9F0C-8F23B8DBC05D} + ClickTwice.Templating +