Skip to content

Commit

Permalink
chore: regenerate tools
Browse files Browse the repository at this point in the history
  • Loading branch information
matkoch committed Jan 17, 2024
1 parent d98a279 commit 11826ed
Show file tree
Hide file tree
Showing 6 changed files with 4,039 additions and 38 deletions.
3,115 changes: 3,098 additions & 17 deletions source/Nuke.Common/Tools/DotNet/DotNet.Generated.cs

Large diffs are not rendered by default.

786 changes: 786 additions & 0 deletions source/Nuke.Common/Tools/EntityFramework/EntityFramework.Generated.cs

Large diffs are not rendered by default.

30 changes: 17 additions & 13 deletions source/Nuke.Common/Tools/NUnit/NUnit.Generated.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ public static IReadOnlyCollection<Output> NUnit(ArgumentStringHandler arguments,
/// <li><c>--noheader</c> via <see cref="NUnit3Settings.NoHeader"/></li>
/// <li><c>--noresult</c> via <see cref="NUnit3Settings.NoResults"/></li>
/// <li><c>--output</c> via <see cref="NUnit3Settings.OutputFile"/></li>
/// <li><c>--params</c> via <see cref="NUnit3Settings.Parameters"/></li>
/// <li><c>--pause</c> via <see cref="NUnit3Settings.Pause"/></li>
/// <li><c>--process</c> via <see cref="NUnit3Settings.Process"/></li>
/// <li><c>--result</c> via <see cref="NUnit3Settings.Results"/></li>
Expand All @@ -84,6 +83,7 @@ public static IReadOnlyCollection<Output> NUnit(ArgumentStringHandler arguments,
/// <li><c>--teamcity</c> via <see cref="NUnit3Settings.TeamCity"/></li>
/// <li><c>--test</c> via <see cref="NUnit3Settings.Tests"/></li>
/// <li><c>--testlist</c> via <see cref="NUnit3Settings.TestListFile"/></li>
/// <li><c>--testparam</c> via <see cref="NUnit3Settings.Parameters"/></li>
/// <li><c>--timeout</c> via <see cref="NUnit3Settings.Timeout"/></li>
/// <li><c>--trace</c> via <see cref="NUnit3Settings.Trace"/></li>
/// <li><c>--wait</c> via <see cref="NUnit3Settings.Wait"/></li>
Expand Down Expand Up @@ -126,7 +126,6 @@ public static IReadOnlyCollection<Output> NUnit3(NUnit3Settings toolSettings = n
/// <li><c>--noheader</c> via <see cref="NUnit3Settings.NoHeader"/></li>
/// <li><c>--noresult</c> via <see cref="NUnit3Settings.NoResults"/></li>
/// <li><c>--output</c> via <see cref="NUnit3Settings.OutputFile"/></li>
/// <li><c>--params</c> via <see cref="NUnit3Settings.Parameters"/></li>
/// <li><c>--pause</c> via <see cref="NUnit3Settings.Pause"/></li>
/// <li><c>--process</c> via <see cref="NUnit3Settings.Process"/></li>
/// <li><c>--result</c> via <see cref="NUnit3Settings.Results"/></li>
Expand All @@ -138,6 +137,7 @@ public static IReadOnlyCollection<Output> NUnit3(NUnit3Settings toolSettings = n
/// <li><c>--teamcity</c> via <see cref="NUnit3Settings.TeamCity"/></li>
/// <li><c>--test</c> via <see cref="NUnit3Settings.Tests"/></li>
/// <li><c>--testlist</c> via <see cref="NUnit3Settings.TestListFile"/></li>
/// <li><c>--testparam</c> via <see cref="NUnit3Settings.Parameters"/></li>
/// <li><c>--timeout</c> via <see cref="NUnit3Settings.Timeout"/></li>
/// <li><c>--trace</c> via <see cref="NUnit3Settings.Trace"/></li>
/// <li><c>--wait</c> via <see cref="NUnit3Settings.Wait"/></li>
Expand Down Expand Up @@ -177,7 +177,6 @@ public static IReadOnlyCollection<Output> NUnit3(Configure<NUnit3Settings> confi
/// <li><c>--noheader</c> via <see cref="NUnit3Settings.NoHeader"/></li>
/// <li><c>--noresult</c> via <see cref="NUnit3Settings.NoResults"/></li>
/// <li><c>--output</c> via <see cref="NUnit3Settings.OutputFile"/></li>
/// <li><c>--params</c> via <see cref="NUnit3Settings.Parameters"/></li>
/// <li><c>--pause</c> via <see cref="NUnit3Settings.Pause"/></li>
/// <li><c>--process</c> via <see cref="NUnit3Settings.Process"/></li>
/// <li><c>--result</c> via <see cref="NUnit3Settings.Results"/></li>
Expand All @@ -189,6 +188,7 @@ public static IReadOnlyCollection<Output> NUnit3(Configure<NUnit3Settings> confi
/// <li><c>--teamcity</c> via <see cref="NUnit3Settings.TeamCity"/></li>
/// <li><c>--test</c> via <see cref="NUnit3Settings.Tests"/></li>
/// <li><c>--testlist</c> via <see cref="NUnit3Settings.TestListFile"/></li>
/// <li><c>--testparam</c> via <see cref="NUnit3Settings.Parameters"/></li>
/// <li><c>--timeout</c> via <see cref="NUnit3Settings.Timeout"/></li>
/// <li><c>--trace</c> via <see cref="NUnit3Settings.Trace"/></li>
/// <li><c>--wait</c> via <see cref="NUnit3Settings.Wait"/></li>
Expand Down Expand Up @@ -237,7 +237,7 @@ public partial class NUnit3Settings : ToolSettings
/// </summary>
public virtual string WhereExpression { get; internal set; }
/// <summary>
/// A test parameter specified in the form NAME=VALUE. Multiple parameters may be specified, separated by semicolons or by repeating the <c>--params</c> option multiple times.
/// A test parameter specified in the form NAME=VALUE for consumption by tests. Multiple parameters must be specified separated using a <c>--testparam</c> option for each.
/// </summary>
public virtual IReadOnlyDictionary<string, string> Parameters => ParametersInternal.AsReadOnly();
internal Dictionary<string, string> ParametersInternal { get; set; } = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Expand Down Expand Up @@ -336,7 +336,7 @@ public partial class NUnit3Settings : ToolSettings
/// </summary>
public virtual bool? NoResults { get; internal set; }
/// <summary>
/// Specify whether to write test case names to the output. Values: <c>Off</c>, <c>On</c>, <c>All</c>
/// Specify whether to write test case names to the output. Values: <c>Off</c>, <c>On</c>, <c>All</c>, <c>OnOutputOnly</c>, <c>Before</c>, <c>After</c>, <c>BeforeAndAfter</c>
/// </summary>
public virtual NUnitLabelType Labels { get; internal set; }
/// <summary>
Expand Down Expand Up @@ -382,7 +382,7 @@ protected override Arguments ConfigureProcessArguments(Arguments arguments)
.Add("--test={value}", Tests, separator: ',')
.Add("--testlist={value}", TestListFile)
.Add("--where={value}", WhereExpression)
.Add("--params={value}", Parameters, "{key}={value}")
.Add("--testparam={value}", Parameters, "{key}={value}")
.Add("--config={value}", Configuration)
.Add("--process={value}", Process)
.Add("--inprocess", InProcess)
Expand Down Expand Up @@ -641,7 +641,7 @@ public static T ResetWhereExpression<T>(this T toolSettings) where T : NUnit3Set
#region Parameters
/// <summary>
/// <p><em>Sets <see cref="NUnit3Settings.Parameters"/> to a new dictionary</em></p>
/// <p>A test parameter specified in the form NAME=VALUE. Multiple parameters may be specified, separated by semicolons or by repeating the <c>--params</c> option multiple times.</p>
/// <p>A test parameter specified in the form NAME=VALUE for consumption by tests. Multiple parameters must be specified separated using a <c>--testparam</c> option for each.</p>
/// </summary>
[Pure]
public static T SetParameters<T>(this T toolSettings, IDictionary<string, string> parameters) where T : NUnit3Settings
Expand All @@ -652,7 +652,7 @@ public static T SetParameters<T>(this T toolSettings, IDictionary<string, string
}
/// <summary>
/// <p><em>Clears <see cref="NUnit3Settings.Parameters"/></em></p>
/// <p>A test parameter specified in the form NAME=VALUE. Multiple parameters may be specified, separated by semicolons or by repeating the <c>--params</c> option multiple times.</p>
/// <p>A test parameter specified in the form NAME=VALUE for consumption by tests. Multiple parameters must be specified separated using a <c>--testparam</c> option for each.</p>
/// </summary>
[Pure]
public static T ClearParameters<T>(this T toolSettings) where T : NUnit3Settings
Expand All @@ -663,7 +663,7 @@ public static T ClearParameters<T>(this T toolSettings) where T : NUnit3Settings
}
/// <summary>
/// <p><em>Adds a new key-value-pair <see cref="NUnit3Settings.Parameters"/></em></p>
/// <p>A test parameter specified in the form NAME=VALUE. Multiple parameters may be specified, separated by semicolons or by repeating the <c>--params</c> option multiple times.</p>
/// <p>A test parameter specified in the form NAME=VALUE for consumption by tests. Multiple parameters must be specified separated using a <c>--testparam</c> option for each.</p>
/// </summary>
[Pure]
public static T AddParameter<T>(this T toolSettings, string parameterKey, string parameterValue) where T : NUnit3Settings
Expand All @@ -674,7 +674,7 @@ public static T AddParameter<T>(this T toolSettings, string parameterKey, string
}
/// <summary>
/// <p><em>Removes a key-value-pair from <see cref="NUnit3Settings.Parameters"/></em></p>
/// <p>A test parameter specified in the form NAME=VALUE. Multiple parameters may be specified, separated by semicolons or by repeating the <c>--params</c> option multiple times.</p>
/// <p>A test parameter specified in the form NAME=VALUE for consumption by tests. Multiple parameters must be specified separated using a <c>--testparam</c> option for each.</p>
/// </summary>
[Pure]
public static T RemoveParameter<T>(this T toolSettings, string parameterKey) where T : NUnit3Settings
Expand All @@ -685,7 +685,7 @@ public static T RemoveParameter<T>(this T toolSettings, string parameterKey) whe
}
/// <summary>
/// <p><em>Sets a key-value-pair in <see cref="NUnit3Settings.Parameters"/></em></p>
/// <p>A test parameter specified in the form NAME=VALUE. Multiple parameters may be specified, separated by semicolons or by repeating the <c>--params</c> option multiple times.</p>
/// <p>A test parameter specified in the form NAME=VALUE for consumption by tests. Multiple parameters must be specified separated using a <c>--testparam</c> option for each.</p>
/// </summary>
[Pure]
public static T SetParameter<T>(this T toolSettings, string parameterKey, string parameterValue) where T : NUnit3Settings
Expand Down Expand Up @@ -1694,7 +1694,7 @@ public static T ToggleNoResults<T>(this T toolSettings) where T : NUnit3Settings
#region Labels
/// <summary>
/// <p><em>Sets <see cref="NUnit3Settings.Labels"/></em></p>
/// <p>Specify whether to write test case names to the output. Values: <c>Off</c>, <c>On</c>, <c>All</c></p>
/// <p>Specify whether to write test case names to the output. Values: <c>Off</c>, <c>On</c>, <c>All</c>, <c>OnOutputOnly</c>, <c>Before</c>, <c>After</c>, <c>BeforeAndAfter</c></p>
/// </summary>
[Pure]
public static T SetLabels<T>(this T toolSettings, NUnitLabelType labels) where T : NUnit3Settings
Expand All @@ -1705,7 +1705,7 @@ public static T SetLabels<T>(this T toolSettings, NUnitLabelType labels) where T
}
/// <summary>
/// <p><em>Resets <see cref="NUnit3Settings.Labels"/></em></p>
/// <p>Specify whether to write test case names to the output. Values: <c>Off</c>, <c>On</c>, <c>All</c></p>
/// <p>Specify whether to write test case names to the output. Values: <c>Off</c>, <c>On</c>, <c>All</c>, <c>OnOutputOnly</c>, <c>Before</c>, <c>After</c>, <c>BeforeAndAfter</c></p>
/// </summary>
[Pure]
public static T ResetLabels<T>(this T toolSettings) where T : NUnit3Settings
Expand Down Expand Up @@ -2182,6 +2182,10 @@ public partial class NUnitLabelType : Enumeration
public static NUnitLabelType Off = (NUnitLabelType) "Off";
public static NUnitLabelType On = (NUnitLabelType) "On";
public static NUnitLabelType All = (NUnitLabelType) "All";
public static NUnitLabelType OnOutputOnly = (NUnitLabelType) "OnOutputOnly";
public static NUnitLabelType Before = (NUnitLabelType) "Before";
public static NUnitLabelType After = (NUnitLabelType) "After";
public static NUnitLabelType BeforeAndAfter = (NUnitLabelType) "BeforeAndAfter";
public static implicit operator NUnitLabelType(string value)
{
return new NUnitLabelType { Value = value };
Expand Down
72 changes: 65 additions & 7 deletions source/Nuke.Common/Tools/Octopus/Octopus.Generated.cs
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,8 @@ public partial class OctopusPackSettings : ToolSettings
/// <summary>
/// Add a file pattern to include, relative to the base path. E.g. <c>/bin/-*.dll</c> - if none are specified, defaults to <c>**</c>.
/// </summary>
public virtual string Include { get; internal set; }
public virtual IReadOnlyList<string> Include => IncludeInternal.AsReadOnly();
internal List<string> IncludeInternal { get; set; } = new List<string>();
/// <summary>
/// Allow an existing package file of the same ID/version to be overwritten.
/// </summary>
Expand Down Expand Up @@ -1767,25 +1768,82 @@ public static T ResetReleaseNotesFile<T>(this T toolSettings) where T : OctopusP
#endregion
#region Include
/// <summary>
/// <p><em>Sets <see cref="OctopusPackSettings.Include"/></em></p>
/// <p><em>Sets <see cref="OctopusPackSettings.Include"/> to a new list</em></p>
/// <p>Add a file pattern to include, relative to the base path. E.g. <c>/bin/-*.dll</c> - if none are specified, defaults to <c>**</c>.</p>
/// </summary>
[Pure]
public static T SetInclude<T>(this T toolSettings, string include) where T : OctopusPackSettings
public static T SetInclude<T>(this T toolSettings, params string[] include) where T : OctopusPackSettings
{
toolSettings = toolSettings.NewInstance();
toolSettings.Include = include;
toolSettings.IncludeInternal = include.ToList();
return toolSettings;
}
/// <summary>
/// <p><em>Resets <see cref="OctopusPackSettings.Include"/></em></p>
/// <p><em>Sets <see cref="OctopusPackSettings.Include"/> to a new list</em></p>
/// <p>Add a file pattern to include, relative to the base path. E.g. <c>/bin/-*.dll</c> - if none are specified, defaults to <c>**</c>.</p>
/// </summary>
[Pure]
public static T ResetInclude<T>(this T toolSettings) where T : OctopusPackSettings
public static T SetInclude<T>(this T toolSettings, IEnumerable<string> include) where T : OctopusPackSettings
{
toolSettings = toolSettings.NewInstance();
toolSettings.Include = null;
toolSettings.IncludeInternal = include.ToList();
return toolSettings;
}
/// <summary>
/// <p><em>Adds values to <see cref="OctopusPackSettings.Include"/></em></p>
/// <p>Add a file pattern to include, relative to the base path. E.g. <c>/bin/-*.dll</c> - if none are specified, defaults to <c>**</c>.</p>
/// </summary>
[Pure]
public static T AddInclude<T>(this T toolSettings, params string[] include) where T : OctopusPackSettings
{
toolSettings = toolSettings.NewInstance();
toolSettings.IncludeInternal.AddRange(include);
return toolSettings;
}
/// <summary>
/// <p><em>Adds values to <see cref="OctopusPackSettings.Include"/></em></p>
/// <p>Add a file pattern to include, relative to the base path. E.g. <c>/bin/-*.dll</c> - if none are specified, defaults to <c>**</c>.</p>
/// </summary>
[Pure]
public static T AddInclude<T>(this T toolSettings, IEnumerable<string> include) where T : OctopusPackSettings
{
toolSettings = toolSettings.NewInstance();
toolSettings.IncludeInternal.AddRange(include);
return toolSettings;
}
/// <summary>
/// <p><em>Clears <see cref="OctopusPackSettings.Include"/></em></p>
/// <p>Add a file pattern to include, relative to the base path. E.g. <c>/bin/-*.dll</c> - if none are specified, defaults to <c>**</c>.</p>
/// </summary>
[Pure]
public static T ClearInclude<T>(this T toolSettings) where T : OctopusPackSettings
{
toolSettings = toolSettings.NewInstance();
toolSettings.IncludeInternal.Clear();
return toolSettings;
}
/// <summary>
/// <p><em>Removes values from <see cref="OctopusPackSettings.Include"/></em></p>
/// <p>Add a file pattern to include, relative to the base path. E.g. <c>/bin/-*.dll</c> - if none are specified, defaults to <c>**</c>.</p>
/// </summary>
[Pure]
public static T RemoveInclude<T>(this T toolSettings, params string[] include) where T : OctopusPackSettings
{
toolSettings = toolSettings.NewInstance();
var hashSet = new HashSet<string>(include);
toolSettings.IncludeInternal.RemoveAll(x => hashSet.Contains(x));
return toolSettings;
}
/// <summary>
/// <p><em>Removes values from <see cref="OctopusPackSettings.Include"/></em></p>
/// <p>Add a file pattern to include, relative to the base path. E.g. <c>/bin/-*.dll</c> - if none are specified, defaults to <c>**</c>.</p>
/// </summary>
[Pure]
public static T RemoveInclude<T>(this T toolSettings, IEnumerable<string> include) where T : OctopusPackSettings
{
toolSettings = toolSettings.NewInstance();
var hashSet = new HashSet<string>(include);
toolSettings.IncludeInternal.RemoveAll(x => hashSet.Contains(x));
return toolSettings;
}
#endregion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -827,16 +827,24 @@ public partial class ReportTypes : Enumeration
public static ReportTypes Clover = (ReportTypes) "Clover";
public static ReportTypes CsvSummary = (ReportTypes) "CsvSummary";
public static ReportTypes Html = (ReportTypes) "Html";
public static ReportTypes Html_Light = (ReportTypes) "Html_Light";
public static ReportTypes Html_Dark = (ReportTypes) "Html_Dark";
public static ReportTypes Html_BlueRed = (ReportTypes) "Html_BlueRed";
public static ReportTypes HtmlInline = (ReportTypes) "HtmlInline";
public static ReportTypes HtmlInline_AzurePipelines = (ReportTypes) "HtmlInline_AzurePipelines";
public static ReportTypes HtmlInline_AzurePipelines_Light = (ReportTypes) "HtmlInline_AzurePipelines_Light";
public static ReportTypes HtmlInline_AzurePipelines_Dark = (ReportTypes) "HtmlInline_AzurePipelines_Dark";
public static ReportTypes HtmlChart = (ReportTypes) "HtmlChart";
public static ReportTypes HtmlSummary = (ReportTypes) "HtmlSummary";
public static ReportTypes Html_BlueRed_Summary = (ReportTypes) "Html_BlueRed_Summary";
public static ReportTypes JsonSummary = (ReportTypes) "JsonSummary";
public static ReportTypes Latex = (ReportTypes) "Latex";
public static ReportTypes LatexSummary = (ReportTypes) "LatexSummary";
public static ReportTypes lcov = (ReportTypes) "lcov";
public static ReportTypes MarkdownSummary = (ReportTypes) "MarkdownSummary";
public static ReportTypes MarkdownSummaryGithub = (ReportTypes) "MarkdownSummaryGithub";
public static ReportTypes MarkdownDeltaSummary = (ReportTypes) "MarkdownDeltaSummary";
public static ReportTypes OpenCover = (ReportTypes) "OpenCover";
public static ReportTypes MHtml = (ReportTypes) "MHtml";
public static ReportTypes PngChart = (ReportTypes) "PngChart";
public static ReportTypes TextSummary = (ReportTypes) "TextSummary";
Expand Down
Loading

0 comments on commit 11826ed

Please sign in to comment.