Skip to content

Commit

Permalink
Update xmldoc and namespacing
Browse files Browse the repository at this point in the history
  • Loading branch information
agc93 committed May 5, 2017
1 parent ee3e0f2 commit f46c009
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
20 changes: 19 additions & 1 deletion src/Cake.ClickTwice/ClickTwiceRunner.cs
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down Expand Up @@ -70,6 +73,15 @@ public void RunOutputHandlers(string publishDirectoryPath, params IOutputHandler
s => Log.Information(s));
}

/// <summary>
/// Prepares a directory-based ClickTwice template, using the provided metadata
/// </summary>
/// <param name="templateDirectory">Path to the tempalte directory</param>
/// <param name="packageId">Id of the package to generate</param>
/// <param name="version">Version of the generated package</param>
/// <param name="author">Author of the generated package</param>
/// <param name="description">Optional description of the generated package</param>
/// <returns></returns>
public CakeTemplatePublisher PublishTemplate(DirectoryPath templateDirectory, string packageId, string version, string author, string description = null)
{
var s = new TemplatePackageSettings()
Expand All @@ -82,6 +94,12 @@ public CakeTemplatePublisher PublishTemplate(DirectoryPath templateDirectory, st
return new CakeTemplatePublisher(templateDirectory.MakeAbsolute(Environment).FullPath, s);
}

/// <summary>
/// Prepares a directory-based ClickTwice template, using the provided metadata
/// </summary>
/// <param name="templateDirectory">Path to the tempalte directory</param>
/// <param name="configure">Action for configuring template package settings</param>
/// <returns></returns>
public CakeTemplatePublisher PublishTemplate(DirectoryPath templateDirectory,
Action<TemplatePackageSettings> configure)
{
Expand Down
2 changes: 1 addition & 1 deletion src/TestApp/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
4 changes: 4 additions & 0 deletions src/TestApp/TestApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@
<Project>{a0a4508d-c0b8-4f18-a61f-7d5b98e0aef6}</Project>
<Name>ClickTwice.Publisher.MSBuild</Name>
</ProjectReference>
<ProjectReference Include="..\ClickTwice.Templating\ClickTwice.Templating.csproj">
<Project>{F34D7CE7-5BE7-4393-9F0C-8F23B8DBC05D}</Project>
<Name>ClickTwice.Templating</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Expand Down

0 comments on commit f46c009

Please sign in to comment.