Skip to content

Commit

Permalink
Updated Confix Nuke Package
Browse files Browse the repository at this point in the history
  • Loading branch information
PascalSenn committed Mar 18, 2024
1 parent 09f43d8 commit 345de3d
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 0 deletions.
64 changes: 64 additions & 0 deletions src/Confix.Tool/src/Confix.Nuke/Confix.Tool.Generated.cs
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ public static IReadOnlyCollection<Output> ConfixComponentAdd(Configure<ConfixCom
/// <p>This is a <a href="http://www.nuke.build/docs/authoring-builds/cli-tools.html#fluent-apis">CLI wrapper with fluent API</a> that allows to modify the following arguments:</p>
/// <ul>
/// <li><c>--environment</c> via <see cref="ConfixProjectRestoreSettings.Environment"/></li>
/// <li><c>--only-components</c> via <see cref="ConfixProjectRestoreSettings.OnlyComponents"/></li>
/// <li><c>--output-file</c> via <see cref="ConfixProjectRestoreSettings.OutputFile"/></li>
/// <li><c>--verbosity</c> via <see cref="ConfixProjectRestoreSettings.Verbosity"/></li>
/// </ul>
Expand All @@ -271,6 +272,7 @@ public static IReadOnlyCollection<Output> ConfixProjectRestore(ConfixProjectRest
/// <p>This is a <a href="http://www.nuke.build/docs/authoring-builds/cli-tools.html#fluent-apis">CLI wrapper with fluent API</a> that allows to modify the following arguments:</p>
/// <ul>
/// <li><c>--environment</c> via <see cref="ConfixProjectRestoreSettings.Environment"/></li>
/// <li><c>--only-components</c> via <see cref="ConfixProjectRestoreSettings.OnlyComponents"/></li>
/// <li><c>--output-file</c> via <see cref="ConfixProjectRestoreSettings.OutputFile"/></li>
/// <li><c>--verbosity</c> via <see cref="ConfixProjectRestoreSettings.Verbosity"/></li>
/// </ul>
Expand All @@ -287,6 +289,7 @@ public static IReadOnlyCollection<Output> ConfixProjectRestore(Configure<ConfixP
/// <p>This is a <a href="http://www.nuke.build/docs/authoring-builds/cli-tools.html#fluent-apis">CLI wrapper with fluent API</a> that allows to modify the following arguments:</p>
/// <ul>
/// <li><c>--environment</c> via <see cref="ConfixProjectRestoreSettings.Environment"/></li>
/// <li><c>--only-components</c> via <see cref="ConfixProjectRestoreSettings.OnlyComponents"/></li>
/// <li><c>--output-file</c> via <see cref="ConfixProjectRestoreSettings.OutputFile"/></li>
/// <li><c>--verbosity</c> via <see cref="ConfixProjectRestoreSettings.Verbosity"/></li>
/// </ul>
Expand Down Expand Up @@ -702,6 +705,7 @@ public static IReadOnlyCollection<Output> ConfixSolutionValidate(Configure<Confi
/// <p>This is a <a href="http://www.nuke.build/docs/authoring-builds/cli-tools.html#fluent-apis">CLI wrapper with fluent API</a> that allows to modify the following arguments:</p>
/// <ul>
/// <li><c>--environment</c> via <see cref="ConfixVariableGetSettings.Environment"/></li>
/// <li><c>--format</c> via <see cref="ConfixVariableGetSettings.Format"/></li>
/// <li><c>--name</c> via <see cref="ConfixVariableGetSettings.Name"/></li>
/// <li><c>--verbosity</c> via <see cref="ConfixVariableGetSettings.Verbosity"/></li>
/// </ul>
Expand All @@ -721,6 +725,7 @@ public static IReadOnlyCollection<Output> ConfixVariableGet(ConfixVariableGetSet
/// <p>This is a <a href="http://www.nuke.build/docs/authoring-builds/cli-tools.html#fluent-apis">CLI wrapper with fluent API</a> that allows to modify the following arguments:</p>
/// <ul>
/// <li><c>--environment</c> via <see cref="ConfixVariableGetSettings.Environment"/></li>
/// <li><c>--format</c> via <see cref="ConfixVariableGetSettings.Format"/></li>
/// <li><c>--name</c> via <see cref="ConfixVariableGetSettings.Name"/></li>
/// <li><c>--verbosity</c> via <see cref="ConfixVariableGetSettings.Verbosity"/></li>
/// </ul>
Expand All @@ -737,6 +742,7 @@ public static IReadOnlyCollection<Output> ConfixVariableGet(Configure<ConfixVari
/// <p>This is a <a href="http://www.nuke.build/docs/authoring-builds/cli-tools.html#fluent-apis">CLI wrapper with fluent API</a> that allows to modify the following arguments:</p>
/// <ul>
/// <li><c>--environment</c> via <see cref="ConfixVariableGetSettings.Environment"/></li>
/// <li><c>--format</c> via <see cref="ConfixVariableGetSettings.Format"/></li>
/// <li><c>--name</c> via <see cref="ConfixVariableGetSettings.Name"/></li>
/// <li><c>--verbosity</c> via <see cref="ConfixVariableGetSettings.Verbosity"/></li>
/// </ul>
Expand Down Expand Up @@ -1487,6 +1493,10 @@ public partial class ConfixProjectRestoreSettings : ToolSettings
/// </summary>
public virtual string Environment { get; internal set; }
/// <summary>
/// If you specify this option, only the components will be built.
/// </summary>
public virtual string OnlyComponents { get; internal set; }
/// <summary>
/// Sets the verbosity level
/// </summary>
public virtual string Verbosity { get; internal set; }
Expand All @@ -1497,6 +1507,7 @@ protected override Arguments ConfigureProcessArguments(Arguments arguments)
.Add("project restore")
.Add("--output-file {value}", OutputFile)
.Add("--environment {value}", Environment)
.Add("--only-components {value}", OnlyComponents)
.Add("--verbosity {value}", Verbosity);
return base.ConfigureProcessArguments(arguments);
}
Expand Down Expand Up @@ -1823,6 +1834,10 @@ public partial class ConfixVariableGetSettings : ToolSettings
/// </summary>
public virtual string Name { get; internal set; }
/// <summary>
/// Sets the output format
/// </summary>
public virtual string Format { get; internal set; }
/// <summary>
/// Sets the verbosity level
/// </summary>
public virtual string Verbosity { get; internal set; }
Expand All @@ -1833,6 +1848,7 @@ protected override Arguments ConfigureProcessArguments(Arguments arguments)
.Add("variable get")
.Add("--environment {value}", Environment)
.Add("--name {value}", Name)
.Add("--format {value}", Format)
.Add("--verbosity {value}", Verbosity);
return base.ConfigureProcessArguments(arguments);
}
Expand Down Expand Up @@ -2749,6 +2765,30 @@ public static T ResetEnvironment<T>(this T toolSettings) where T : ConfixProject
return toolSettings;
}
#endregion
#region OnlyComponents
/// <summary>
/// <p><em>Sets <see cref="ConfixProjectRestoreSettings.OnlyComponents"/></em></p>
/// <p>If you specify this option, only the components will be built.</p>
/// </summary>
[Pure]
public static T SetOnlyComponents<T>(this T toolSettings, string onlyComponents) where T : ConfixProjectRestoreSettings
{
toolSettings = toolSettings.NewInstance();
toolSettings.OnlyComponents = onlyComponents;
return toolSettings;
}
/// <summary>
/// <p><em>Resets <see cref="ConfixProjectRestoreSettings.OnlyComponents"/></em></p>
/// <p>If you specify this option, only the components will be built.</p>
/// </summary>
[Pure]
public static T ResetOnlyComponents<T>(this T toolSettings) where T : ConfixProjectRestoreSettings
{
toolSettings = toolSettings.NewInstance();
toolSettings.OnlyComponents = null;
return toolSettings;
}
#endregion
#region Verbosity
/// <summary>
/// <p><em>Sets <see cref="ConfixProjectRestoreSettings.Verbosity"/></em></p>
Expand Down Expand Up @@ -3613,6 +3653,30 @@ public static T ResetName<T>(this T toolSettings) where T : ConfixVariableGetSet
return toolSettings;
}
#endregion
#region Format
/// <summary>
/// <p><em>Sets <see cref="ConfixVariableGetSettings.Format"/></em></p>
/// <p>Sets the output format</p>
/// </summary>
[Pure]
public static T SetFormat<T>(this T toolSettings, string format) where T : ConfixVariableGetSettings
{
toolSettings = toolSettings.NewInstance();
toolSettings.Format = format;
return toolSettings;
}
/// <summary>
/// <p><em>Resets <see cref="ConfixVariableGetSettings.Format"/></em></p>
/// <p>Sets the output format</p>
/// </summary>
[Pure]
public static T ResetFormat<T>(this T toolSettings) where T : ConfixVariableGetSettings
{
toolSettings = toolSettings.NewInstance();
toolSettings.Format = null;
return toolSettings;
}
#endregion
#region Verbosity
/// <summary>
/// <p><em>Sets <see cref="ConfixVariableGetSettings.Verbosity"/></em></p>
Expand Down
12 changes: 12 additions & 0 deletions src/Confix.Tool/src/Confix.Nuke/Confix.Tool.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,12 @@
"format": "--environment {value}",
"help": "The name of the environment to run the command in. Overrules the active environment set in .confixrc"
},
{
"name": "OnlyComponents",
"type": "string",
"format": "--only-components {value}",
"help": "If you specify this option, only the components will be built."
},
{
"name": "Verbosity",
"type": "string",
Expand Down Expand Up @@ -357,6 +363,12 @@
"format": "--name {value}",
"help": "The name of the variable"
},
{
"name": "Format",
"type": "string",
"format": "--format {value}",
"help": "Sets the output format"
},
{
"name": "Verbosity",
"type": "string",
Expand Down

0 comments on commit 345de3d

Please sign in to comment.