From 345de3d2ee4025ef76694fcbfe9545d80622cb69 Mon Sep 17 00:00:00 2001 From: PascalSenn Date: Mon, 18 Mar 2024 15:51:53 +0100 Subject: [PATCH] Updated Confix Nuke Package --- .../src/Confix.Nuke/Confix.Tool.Generated.cs | 64 +++++++++++++++++++ .../src/Confix.Nuke/Confix.Tool.json | 12 ++++ 2 files changed, 76 insertions(+) diff --git a/src/Confix.Tool/src/Confix.Nuke/Confix.Tool.Generated.cs b/src/Confix.Tool/src/Confix.Nuke/Confix.Tool.Generated.cs index 80643e6..86b0f8f 100644 --- a/src/Confix.Tool/src/Confix.Nuke/Confix.Tool.Generated.cs +++ b/src/Confix.Tool/src/Confix.Nuke/Confix.Tool.Generated.cs @@ -252,6 +252,7 @@ public static IReadOnlyCollection ConfixComponentAdd(ConfigureThis is a CLI wrapper with fluent API that allows to modify the following arguments:

///
    ///
  • --environment via
  • + ///
  • --only-components via
  • ///
  • --output-file via
  • ///
  • --verbosity via
  • ///
@@ -271,6 +272,7 @@ public static IReadOnlyCollection ConfixProjectRestore(ConfixProjectRest ///

This is a CLI wrapper with fluent API that allows to modify the following arguments:

///
    ///
  • --environment via
  • + ///
  • --only-components via
  • ///
  • --output-file via
  • ///
  • --verbosity via
  • ///
@@ -287,6 +289,7 @@ public static IReadOnlyCollection ConfixProjectRestore(ConfigureThis is a CLI wrapper with fluent API that allows to modify the following arguments:

///
    ///
  • --environment via
  • + ///
  • --only-components via
  • ///
  • --output-file via
  • ///
  • --verbosity via
  • ///
@@ -702,6 +705,7 @@ public static IReadOnlyCollection ConfixSolutionValidate(ConfigureThis is a CLI wrapper with fluent API that allows to modify the following arguments:

///
    ///
  • --environment via
  • + ///
  • --format via
  • ///
  • --name via
  • ///
  • --verbosity via
  • ///
@@ -721,6 +725,7 @@ public static IReadOnlyCollection ConfixVariableGet(ConfixVariableGetSet ///

This is a CLI wrapper with fluent API that allows to modify the following arguments:

///
    ///
  • --environment via
  • + ///
  • --format via
  • ///
  • --name via
  • ///
  • --verbosity via
  • ///
@@ -737,6 +742,7 @@ public static IReadOnlyCollection ConfixVariableGet(ConfigureThis is a CLI wrapper with fluent API that allows to modify the following arguments:

///
    ///
  • --environment via
  • + ///
  • --format via
  • ///
  • --name via
  • ///
  • --verbosity via
  • ///
@@ -1487,6 +1493,10 @@ public partial class ConfixProjectRestoreSettings : ToolSettings /// public virtual string Environment { get; internal set; } /// + /// If you specify this option, only the components will be built. + /// + public virtual string OnlyComponents { get; internal set; } + /// /// Sets the verbosity level /// public virtual string Verbosity { get; internal set; } @@ -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); } @@ -1823,6 +1834,10 @@ public partial class ConfixVariableGetSettings : ToolSettings /// public virtual string Name { get; internal set; } /// + /// Sets the output format + /// + public virtual string Format { get; internal set; } + /// /// Sets the verbosity level /// public virtual string Verbosity { get; internal set; } @@ -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); } @@ -2749,6 +2765,30 @@ public static T ResetEnvironment(this T toolSettings) where T : ConfixProject return toolSettings; } #endregion + #region OnlyComponents + /// + ///

Sets

+ ///

If you specify this option, only the components will be built.

+ ///
+ [Pure] + public static T SetOnlyComponents(this T toolSettings, string onlyComponents) where T : ConfixProjectRestoreSettings + { + toolSettings = toolSettings.NewInstance(); + toolSettings.OnlyComponents = onlyComponents; + return toolSettings; + } + /// + ///

Resets

+ ///

If you specify this option, only the components will be built.

+ ///
+ [Pure] + public static T ResetOnlyComponents(this T toolSettings) where T : ConfixProjectRestoreSettings + { + toolSettings = toolSettings.NewInstance(); + toolSettings.OnlyComponents = null; + return toolSettings; + } + #endregion #region Verbosity /// ///

Sets

@@ -3613,6 +3653,30 @@ public static T ResetName(this T toolSettings) where T : ConfixVariableGetSet return toolSettings; } #endregion + #region Format + /// + ///

Sets

+ ///

Sets the output format

+ ///
+ [Pure] + public static T SetFormat(this T toolSettings, string format) where T : ConfixVariableGetSettings + { + toolSettings = toolSettings.NewInstance(); + toolSettings.Format = format; + return toolSettings; + } + /// + ///

Resets

+ ///

Sets the output format

+ ///
+ [Pure] + public static T ResetFormat(this T toolSettings) where T : ConfixVariableGetSettings + { + toolSettings = toolSettings.NewInstance(); + toolSettings.Format = null; + return toolSettings; + } + #endregion #region Verbosity /// ///

Sets

diff --git a/src/Confix.Tool/src/Confix.Nuke/Confix.Tool.json b/src/Confix.Tool/src/Confix.Nuke/Confix.Tool.json index 991f388..8b529e5 100644 --- a/src/Confix.Tool/src/Confix.Nuke/Confix.Tool.json +++ b/src/Confix.Tool/src/Confix.Nuke/Confix.Tool.json @@ -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", @@ -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",