Skip to content

Commit

Permalink
Merge pull request #1082 from phillipsj/feature-remaining-documentation
Browse files Browse the repository at this point in the history
GH-750 Remaining documentation
  • Loading branch information
devlead authored Jul 20, 2016
2 parents 77cebab + d31bf86 commit 0a6b68c
Show file tree
Hide file tree
Showing 4 changed files with 105 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Cake.Common/Tools/NSIS/NSISAliases.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ public static class NSISAliases
/// </summary>
/// <param name="context">The context.</param>
/// <param name="scriptFile">The path to the <c>.nsi</c> script file to compile.</param>
/// <example>
/// <code>
/// MakeNSIS("./src/Cake.nsi");
/// </code>
/// </example>
[CakeMethodAlias]
[CakeAliasCategory("MakeNSIS")]
// ReSharper disable once InconsistentNaming
Expand All @@ -39,6 +44,13 @@ public static void MakeNSIS(this ICakeContext context, FilePath scriptFile)
/// <param name="context">The context.</param>
/// <param name="scriptFile">The path to the <c>.nsi</c> script file to compile.</param>
/// <param name="settings">The <see cref="MakeNSISSettings"/> to use.</param>
/// <example>
/// <code>
/// MakeNSIS("./src/Cake.nsi", new MakeNSISSettings {
/// NoConfig = true
/// });
/// </code>
/// </example>
[CakeMethodAlias]
[CakeAliasCategory("MakeNSIS")]
// ReSharper disable once InconsistentNaming
Expand Down
17 changes: 17 additions & 0 deletions src/Cake.Common/Tools/Roundhouse/RoundhouseAliases.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@ public static class RoundhouseAliases
/// </summary>
/// <param name="context">The context.</param>
/// <param name="settings">The settings.</param>
/// <example>
/// <code>
/// RoundhouseMigrate(new RoundhouseSettings{
/// ServerName = "Sql2008R2",
/// DatabaseName = "AdventureWorks2008R2",
/// SqlFilesDirectory = "./src/sql"
/// });
/// </code>
/// </example>
[CakeMethodAlias]
public static void RoundhouseMigrate(this ICakeContext context, RoundhouseSettings settings)
{
Expand All @@ -42,6 +51,14 @@ public static void RoundhouseMigrate(this ICakeContext context, RoundhouseSettin
/// </summary>
/// <param name="context">The context.</param>
/// <param name="settings">The settings.</param>
/// <example>
/// <code>
/// RoundhouseDrop(new RoundhouseSettings{
/// ServerName = "Sql2008R2",
/// DatabaseName = "AdventureWorks2008R2"
/// });
/// </code>
/// </example>
[CakeMethodAlias]
public static void RoundhouseDrop(this ICakeContext context, RoundhouseSettings settings)
{
Expand Down
22 changes: 22 additions & 0 deletions src/Cake.Common/Tools/XBuild/XBuildAliases.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ public static class XBuildAliases
/// </summary>
/// <param name="context">The context.</param>
/// <param name="solution">The solution to build.</param>
/// <example>
/// <code>
/// XBuild("./src/Cake.sln");
/// </code>
/// </example>
[CakeMethodAlias]
public static void XBuild(this ICakeContext context, FilePath solution)
{
Expand All @@ -35,6 +40,14 @@ public static void XBuild(this ICakeContext context, FilePath solution)
/// <param name="context">The context.</param>
/// <param name="solution">The solution to build.</param>
/// <param name="configurator">The settings configurator.</param>
/// <example>
/// <code>
/// XBuild("./src/Cake.sln", configurator =>
/// configurator.SetConfiguration("Debug")
/// .SetVerbosity(Verbosity.Minimal)
/// .UseToolVersion(XBuildToolVersion.NET40));
/// </code>
/// </example>
[CakeMethodAlias]
public static void XBuild(this ICakeContext context, FilePath solution, Action<XBuildSettings> configurator)
{
Expand All @@ -60,6 +73,15 @@ public static void XBuild(this ICakeContext context, FilePath solution, Action<X
/// <param name="context">The context.</param>
/// <param name="solution">The solution to build.</param>
/// <param name="settings">The settings.</param>
/// <example>
/// <code>
/// MSBuild("./src/Cake.sln", new XBuildSettings {
/// Verbosity = Verbosity.Minimal,
/// ToolVersion = XBuildToolVersion.NET40,
/// Configuration = "Release"
/// });
/// </code>
/// </example>
[CakeMethodAlias]
public static void XBuild(this ICakeContext context, FilePath solution, XBuildSettings settings)
{
Expand Down
54 changes: 54 additions & 0 deletions src/Cake.Common/Tools/XUnit/XUnitAliases.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ public static class XUnitAliases
/// </summary>
/// <param name="context">The context.</param>
/// <param name="pattern">The pattern.</param>
/// <example>
/// <code>
/// XUnit("./src/**/bin/Release/*.Tests.dll");
/// </code>
/// </example>
[CakeMethodAlias]
public static void XUnit(this ICakeContext context, string pattern)
{
Expand All @@ -46,6 +51,15 @@ public static void XUnit(this ICakeContext context, string pattern)
/// <param name="context">The context.</param>
/// <param name="pattern">The pattern.</param>
/// <param name="settings">The settings.</param>
/// <example>
/// <code>
/// XUnit("./src/**/bin/Release/*.Tests.dll",
/// new XUnitSettings {
/// HtmlReport = true,
/// OutputDirectory = "./build"
/// });
/// </code>
/// </example>
[CakeMethodAlias]
public static void XUnit(this ICakeContext context, string pattern, XUnitSettings settings)
{
Expand All @@ -63,6 +77,16 @@ public static void XUnit(this ICakeContext context, string pattern, XUnitSetting
/// </summary>
/// <param name="context">The context.</param>
/// <param name="assemblies">The assemblies.</param>
/// <example>
/// <code>
/// XUnit(new []{
/// "./src/Cake.Common.Tests/bin/Release/Cake.Common.Tests.dll",
/// "./src/Cake.Core.Tests/bin/Release/Cake.Core.Tests.dll",
/// "./src/Cake.NuGet.Tests/bin/Release/Cake.NuGet.Tests.dll",
/// "./src/Cake.Tests/bin/Release/Cake.Tests.dll"
/// });
/// </code>
/// </example>
[CakeMethodAlias]
public static void XUnit(this ICakeContext context, IEnumerable<string> assemblies)
{
Expand All @@ -79,6 +103,12 @@ public static void XUnit(this ICakeContext context, IEnumerable<string> assembli
/// </summary>
/// <param name="context">The context.</param>
/// <param name="assemblies">The assemblies.</param>
/// <example>
/// <code>
/// var testAssemblies = GetFiles("./src/**/bin/Release/*.Tests.dll");
/// XUnit(testAssemblies);
/// </code>
/// </example>
[CakeMethodAlias]
public static void XUnit(this ICakeContext context, IEnumerable<FilePath> assemblies)
{
Expand All @@ -91,6 +121,20 @@ public static void XUnit(this ICakeContext context, IEnumerable<FilePath> assemb
/// <param name="context">The context.</param>
/// <param name="assemblies">The assemblies.</param>
/// <param name="settings">The settings.</param>
/// <example>
/// <code>
/// XUnit(new []{
/// "./src/Cake.Common.Tests/bin/Release/Cake.Common.Tests.dll",
/// "./src/Cake.Core.Tests/bin/Release/Cake.Core.Tests.dll",
/// "./src/Cake.NuGet.Tests/bin/Release/Cake.NuGet.Tests.dll",
/// "./src/Cake.Tests/bin/Release/Cake.Tests.dll"
/// },
/// new XUnitSettings {
/// HtmlReport = true,
/// OutputDirectory = "./build"
/// });
/// </code>
/// </example>
[CakeMethodAlias]
public static void XUnit(this ICakeContext context, IEnumerable<string> assemblies, XUnitSettings settings)
{
Expand All @@ -108,6 +152,16 @@ public static void XUnit(this ICakeContext context, IEnumerable<string> assembli
/// <param name="context">The context.</param>
/// <param name="assemblies">The assemblies.</param>
/// <param name="settings">The settings.</param>
/// <example>
/// <code>
/// var testAssemblies = GetFiles("./src/**/bin/Release/*.Tests.dll");
/// XUnit(testAssemblies,
/// new XUnitSettings {
/// HtmlReport = true,
/// OutputDirectory = "./build"
/// });
/// </code>
/// </example>
[CakeMethodAlias]
public static void XUnit(this ICakeContext context, IEnumerable<FilePath> assemblies, XUnitSettings settings)
{
Expand Down

0 comments on commit 0a6b68c

Please sign in to comment.