diff --git a/src/ModularPipelines.Chocolatey/AssemblyInfo.Generated.cs b/src/ModularPipelines.Chocolatey/AssemblyInfo.Generated.cs
new file mode 100644
index 0000000000..4f0ea946ee
--- /dev/null
+++ b/src/ModularPipelines.Chocolatey/AssemblyInfo.Generated.cs
@@ -0,0 +1,9 @@
+//
+// This file was generated by ModularPipelines.OptionsGenerator.
+// Do not edit this file manually.
+//
+
+using System.Reflection;
+
+[assembly: AssemblyMetadata("ModularPipelines.OptionsGenerator.Tool", "choco")]
+[assembly: AssemblyMetadata("ModularPipelines.OptionsGenerator.GeneratedAt", "2026-01-04T18:46:17.0925093Z")]
diff --git a/src/ModularPipelines.Chocolatey/Choco.cs b/src/ModularPipelines.Chocolatey/Choco.cs
deleted file mode 100644
index dbe2f670e1..0000000000
--- a/src/ModularPipelines.Chocolatey/Choco.cs
+++ /dev/null
@@ -1,258 +0,0 @@
-using System.Diagnostics.CodeAnalysis;
-using ModularPipelines.Chocolatey.Options;
-using ModularPipelines.Context;
-using ModularPipelines.Models;
-
-namespace ModularPipelines.Chocolatey;
-
-[ExcludeFromCodeCoverage]
-internal class Choco : IChoco
-{
- private readonly ICommand _command;
-
- public Choco(ICommand command)
- {
- _command = command;
- }
-
- public virtual async Task ApiKey(ApiKeyOptions? options = default, CancellationToken token = default)
- {
- return await _command.ExecuteCommandLineTool(options ?? new ApiKeyOptions(), null, token);
- }
-
- public virtual async Task SetApiKey(SetApiKeyOptions? options = default, CancellationToken token = default)
- {
- return await _command.ExecuteCommandLineTool(options ?? new SetApiKeyOptions(), null, token);
- }
-
- public virtual async Task Cache(CacheOptions? options = default, CancellationToken token = default)
- {
- return await _command.ExecuteCommandLineTool(options ?? new CacheOptions(), null, token);
- }
-
- public virtual async Task CacheRemove(CacheRemoveOptions? options = default,
- CancellationToken token = default)
- {
- return await _command.ExecuteCommandLineTool(options ?? new CacheRemoveOptions(), null, token);
- }
-
- public virtual async Task Config(ConfigOptions? options = default, CancellationToken token = default)
- {
- return await _command.ExecuteCommandLineTool(options ?? new ConfigOptions(), null, token);
- }
-
- public virtual async Task ConfigGet(ConfigGetOptions? options = default, CancellationToken token = default)
- {
- return await _command.ExecuteCommandLineTool(options ?? new ConfigGetOptions(), null, token);
- }
-
- public virtual async Task ConfigSet(ConfigSetOptions? options = default, CancellationToken token = default)
- {
- return await _command.ExecuteCommandLineTool(options ?? new ConfigSetOptions(), null, token);
- }
-
- public virtual async Task ConfigUnset(ConfigUnsetOptions? options = default,
- CancellationToken token = default)
- {
- return await _command.ExecuteCommandLineTool(options ?? new ConfigUnsetOptions(), null, token);
- }
-
- public virtual async Task Convert(ConvertOptions options, CancellationToken token = default)
- {
- return await _command.ExecuteCommandLineTool(options, null, token);
- }
-
- public virtual async Task Download(DownloadOptions options, CancellationToken token = default)
- {
- return await _command.ExecuteCommandLineTool(options, null, token);
- }
-
- public virtual async Task Export(ExportOptions? options = default, CancellationToken token = default)
- {
- return await _command.ExecuteCommandLineTool(options ?? new ExportOptions(), null, token);
- }
-
- public virtual async Task Feature(FeatureOptions? options = default, CancellationToken token = default)
- {
- return await _command.ExecuteCommandLineTool(options ?? new FeatureOptions(), null, token);
- }
-
- public virtual async Task FeatureDisable(FeatureDisableOptions? options = default,
- CancellationToken token = default)
- {
- return await _command.ExecuteCommandLineTool(options ?? new FeatureDisableOptions(), null, token);
- }
-
- public virtual async Task FeatureEnable(FeatureEnableOptions? options = default,
- CancellationToken token = default)
- {
- return await _command.ExecuteCommandLineTool(options ?? new FeatureEnableOptions(), null, token);
- }
-
- public virtual async Task Help(HelpOptions? options = default, CancellationToken token = default)
- {
- return await _command.ExecuteCommandLineTool(options ?? new HelpOptions(), null, token);
- }
-
- public virtual async Task Info(InfoOptions? options = default, CancellationToken token = default)
- {
- return await _command.ExecuteCommandLineTool(options ?? new InfoOptions(), null, token);
- }
-
- public virtual async Task Optimize(OptimizeOptions? options = default, CancellationToken token = default)
- {
- return await _command.ExecuteCommandLineTool(options ?? new OptimizeOptions(), null, token);
- }
-
- public virtual async Task Install(InstallOptions options, CancellationToken token = default)
- {
- return await _command.ExecuteCommandLineTool(options, null, token);
- }
-
- public virtual async Task List(ListOptions options, CancellationToken token = default)
- {
- return await _command.ExecuteCommandLineTool(options, null, token);
- }
-
- public virtual async Task New(NewOptions options, CancellationToken token = default)
- {
- return await _command.ExecuteCommandLineTool(options, null, token);
- }
-
- public virtual async Task Outdated(OutdatedOptions? options = default, CancellationToken token = default)
- {
- return await _command.ExecuteCommandLineTool(options ?? new OutdatedOptions(), null, token);
- }
-
- public virtual async Task Pack(PackOptions options, CancellationToken token = default)
- {
- return await _command.ExecuteCommandLineTool(options, null, token);
- }
-
- public virtual async Task Pin(PinOptions? options = default, CancellationToken token = default)
- {
- return await _command.ExecuteCommandLineTool(options ?? new PinOptions(), null, token);
- }
-
- public virtual async Task PinAdd(PinAddOptions? options = default, CancellationToken token = default)
- {
- return await _command.ExecuteCommandLineTool(options ?? new PinAddOptions(), null, token);
- }
-
- public virtual async Task PinRemove(PinRemoveOptions? options = default, CancellationToken token = default)
- {
- return await _command.ExecuteCommandLineTool(options ?? new PinRemoveOptions(), null, token);
- }
-
- public virtual async Task Push(PushOptions options, CancellationToken token = default)
- {
- return await _command.ExecuteCommandLineTool(options, null, token);
- }
-
- public virtual async Task Find(FindOptions options, CancellationToken token = default)
- {
- return await _command.ExecuteCommandLineTool(options, null, token);
- }
-
- public virtual async Task Search(SearchOptions options, CancellationToken token = default)
- {
- return await _command.ExecuteCommandLineTool(options, null, token);
- }
-
- public virtual async Task Apikey(ApiKeyOptions? options = default, CancellationToken token = default)
- {
- return await _command.ExecuteCommandLineTool(options ?? new ApiKeyOptions(), null, token);
- }
-
- public virtual async Task Setapikey(SetApiKeyOptions? options = default, CancellationToken token = default)
- {
- return await _command.ExecuteCommandLineTool(options ?? new SetApiKeyOptions(), null, token);
- }
-
- public virtual async Task Source(SourceOptions? options = default, CancellationToken token = default)
- {
- return await _command.ExecuteCommandLineTool(options ?? new SourceOptions(), null, token);
- }
-
- public virtual async Task SourceAdd(SourceAddOptions? options = default, CancellationToken token = default)
- {
- return await _command.ExecuteCommandLineTool(options ?? new SourceAddOptions(), null, token);
- }
-
- public virtual async Task SourceRemove(SourceRemoveOptions? options = default,
- CancellationToken token = default)
- {
- return await _command.ExecuteCommandLineTool(options ?? new SourceRemoveOptions(), null, token);
- }
-
- public virtual async Task SourceDisable(SourceDisableOptions? options = default,
- CancellationToken token = default)
- {
- return await _command.ExecuteCommandLineTool(options ?? new SourceDisableOptions(), null, token);
- }
-
- public virtual async Task SourceEnable(SourceEnableOptions? options = default,
- CancellationToken token = default)
- {
- return await _command.ExecuteCommandLineTool(options ?? new SourceEnableOptions(), null, token);
- }
-
- public virtual async Task Sources(SourcesOptions? options = default, CancellationToken token = default)
- {
- return await _command.ExecuteCommandLineTool(options ?? new SourcesOptions(), null, token);
- }
-
- public virtual async Task SourcesAdd(SourcesAddOptions? options = default, CancellationToken token = default)
- {
- return await _command.ExecuteCommandLineTool(options ?? new SourcesAddOptions(), null, token);
- }
-
- public virtual async Task SourcesRemove(SourcesRemoveOptions? options = default,
- CancellationToken token = default)
- {
- return await _command.ExecuteCommandLineTool(options ?? new SourcesRemoveOptions(), null, token);
- }
-
- public virtual async Task SourcesDisable(SourcesDisableOptions? options = default,
- CancellationToken token = default)
- {
- return await _command.ExecuteCommandLineTool(options ?? new SourcesDisableOptions(), null, token);
- }
-
- public virtual async Task SourcesEnable(SourcesEnableOptions? options = default,
- CancellationToken token = default)
- {
- return await _command.ExecuteCommandLineTool(options ?? new SourcesEnableOptions(), null, token);
- }
-
- public virtual async Task Support(SupportOptions? options = default, CancellationToken token = default)
- {
- return await _command.ExecuteCommandLineTool(options ?? new SupportOptions(), null, token);
- }
-
- public virtual async Task Sync(SyncOptions? options = default, CancellationToken token = default)
- {
- return await _command.ExecuteCommandLineTool(options ?? new SyncOptions(), null, token);
- }
-
- public virtual async Task Template(TemplateOptions? options = default, CancellationToken token = default)
- {
- return await _command.ExecuteCommandLineTool(options ?? new TemplateOptions(), null, token);
- }
-
- public virtual async Task TemplateInfo(TemplateInfoOptions? options = default,
- CancellationToken token = default)
- {
- return await _command.ExecuteCommandLineTool(options ?? new TemplateInfoOptions(), null, token);
- }
-
- public virtual async Task Uninstall(UninstallOptions options, CancellationToken token = default)
- {
- return await _command.ExecuteCommandLineTool(options, null, token);
- }
-
- public virtual async Task Upgrade(UpgradeOptions options, CancellationToken token = default)
- {
- return await _command.ExecuteCommandLineTool(options, null, token);
- }
-}
\ No newline at end of file
diff --git a/src/ModularPipelines.Chocolatey/Extensions/ChocoExtensions.Generated.cs b/src/ModularPipelines.Chocolatey/Extensions/ChocoExtensions.Generated.cs
new file mode 100644
index 0000000000..97921ae1cd
--- /dev/null
+++ b/src/ModularPipelines.Chocolatey/Extensions/ChocoExtensions.Generated.cs
@@ -0,0 +1,48 @@
+//
+// This file was generated by ModularPipelines.OptionsGenerator.
+// Do not edit this file manually.
+//
+
+using System.Runtime.CompilerServices;
+using Microsoft.Extensions.DependencyInjection;
+using Microsoft.Extensions.DependencyInjection.Extensions;
+using ModularPipelines.Context;
+using ModularPipelines.Engine;
+using ModularPipelines.Chocolatey.Services;
+
+namespace ModularPipelines.Chocolatey.Extensions;
+
+///
+/// Generated extensions for registering choco services.
+///
+public static class ChocoExtensions
+{
+#pragma warning disable CA2255
+ [ModuleInitializer]
+#pragma warning restore CA2255
+ public static void RegisterChocoContext()
+ {
+ ModularPipelinesContextRegistry.RegisterContext(collection => RegisterChocoContext(collection));
+ }
+
+ ///
+ /// Registers choco services with the dependency injection container.
+ ///
+ /// The service collection.
+ /// The service collection for chaining.
+ public static IServiceCollection RegisterChocoContext(this IServiceCollection services)
+ {
+ services.TryAddScoped();
+ return services;
+ }
+
+ ///
+ /// Gets the choco service from the pipeline context.
+ ///
+ /// The pipeline context.
+ /// The choco service.
+ public static IChoco Choco(this IPipelineHookContext context)
+ {
+ return context.ServiceProvider.GetRequiredService();
+ }
+}
diff --git a/src/ModularPipelines.Chocolatey/Extensions/ChocolateyExtensions.cs b/src/ModularPipelines.Chocolatey/Extensions/ChocolateyExtensions.cs
deleted file mode 100644
index 8655ffaea0..0000000000
--- a/src/ModularPipelines.Chocolatey/Extensions/ChocolateyExtensions.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-using System.Runtime.CompilerServices;
-using Microsoft.Extensions.DependencyInjection;
-using Microsoft.Extensions.DependencyInjection.Extensions;
-using ModularPipelines.Context;
-using ModularPipelines.Engine;
-
-namespace ModularPipelines.Chocolatey.Extensions;
-
-public static class ChocolateyExtensions
-{
-#pragma warning disable CA2255
- [ModuleInitializer]
-#pragma warning restore CA2255
- public static void RegisterChocolateyContext()
- {
- ModularPipelinesContextRegistry.RegisterContext(collection => RegisterChocolateyContext(collection));
- }
-
- public static IServiceCollection RegisterChocolateyContext(this IServiceCollection services)
- {
- services.TryAddScoped();
- return services;
- }
-
- public static IChoco Choco(this IPipelineHookContext context) => context.ServiceProvider.GetRequiredService();
-}
\ No newline at end of file
diff --git a/src/ModularPipelines.Chocolatey/IChoco.cs b/src/ModularPipelines.Chocolatey/IChoco.cs
deleted file mode 100644
index da5dc622d3..0000000000
--- a/src/ModularPipelines.Chocolatey/IChoco.cs
+++ /dev/null
@@ -1,95 +0,0 @@
-using ModularPipelines.Chocolatey.Options;
-using ModularPipelines.Models;
-
-namespace ModularPipelines.Chocolatey;
-
-public interface IChoco
-{
- Task ApiKey(ApiKeyOptions? options = default, CancellationToken token = default);
-
- Task SetApiKey(SetApiKeyOptions? options = default, CancellationToken token = default);
-
- Task Cache(CacheOptions? options = default, CancellationToken token = default);
-
- Task CacheRemove(CacheRemoveOptions? options = default, CancellationToken token = default);
-
- Task Config(ConfigOptions? options = default, CancellationToken token = default);
-
- Task ConfigGet(ConfigGetOptions? options = default, CancellationToken token = default);
-
- Task ConfigSet(ConfigSetOptions? options = default, CancellationToken token = default);
-
- Task ConfigUnset(ConfigUnsetOptions? options = default, CancellationToken token = default);
-
- Task Convert(ConvertOptions options, CancellationToken token = default);
-
- Task Download(DownloadOptions options, CancellationToken token = default);
-
- Task Export(ExportOptions? options = default, CancellationToken token = default);
-
- Task Feature(FeatureOptions? options = default, CancellationToken token = default);
-
- Task FeatureDisable(FeatureDisableOptions? options = default, CancellationToken token = default);
-
- Task FeatureEnable(FeatureEnableOptions? options = default, CancellationToken token = default);
-
- Task Help(HelpOptions? options = default, CancellationToken token = default);
-
- Task Info(InfoOptions? options = default, CancellationToken token = default);
-
- Task Optimize(OptimizeOptions? options = default, CancellationToken token = default);
-
- Task Install(InstallOptions options, CancellationToken token = default);
-
- Task List(ListOptions options, CancellationToken token = default);
-
- Task New(NewOptions options, CancellationToken token = default);
-
- Task Outdated(OutdatedOptions? options = default, CancellationToken token = default);
-
- Task Pack(PackOptions options, CancellationToken token = default);
-
- Task Pin(PinOptions? options = default, CancellationToken token = default);
-
- Task PinAdd(PinAddOptions? options = default, CancellationToken token = default);
-
- Task PinRemove(PinRemoveOptions? options = default, CancellationToken token = default);
-
- Task Push(PushOptions options, CancellationToken token = default);
-
- Task Find(FindOptions options, CancellationToken token = default);
-
- Task Search(SearchOptions options, CancellationToken token = default);
-
- Task Source(SourceOptions? options = default, CancellationToken token = default);
-
- Task SourceAdd(SourceAddOptions? options = default, CancellationToken token = default);
-
- Task SourceRemove(SourceRemoveOptions? options = default, CancellationToken token = default);
-
- Task SourceDisable(SourceDisableOptions? options = default, CancellationToken token = default);
-
- Task SourceEnable(SourceEnableOptions? options = default, CancellationToken token = default);
-
- Task Sources(SourcesOptions? options = default, CancellationToken token = default);
-
- Task SourcesAdd(SourcesAddOptions? options = default, CancellationToken token = default);
-
- Task SourcesRemove(SourcesRemoveOptions? options = default, CancellationToken token = default);
-
- Task SourcesDisable(SourcesDisableOptions? options = default, CancellationToken token = default);
-
- Task SourcesEnable(SourcesEnableOptions? options = default, CancellationToken token = default);
-
- Task Support(SupportOptions? options = default, CancellationToken token = default);
-
- Task Sync(SyncOptions? options = default, CancellationToken token = default);
-
- Task Template(TemplateOptions? options = default, CancellationToken token = default);
-
- Task TemplateInfo(TemplateInfoOptions? options = default, CancellationToken token = default);
-
- Task Uninstall(UninstallOptions options, CancellationToken token = default);
-
- Task Upgrade(UpgradeOptions options, CancellationToken token = default);
-}
\ No newline at end of file
diff --git a/src/ModularPipelines.Chocolatey/Options/ApikeyOptions.cs b/src/ModularPipelines.Chocolatey/Options/ApikeyOptions.cs
deleted file mode 100644
index da8d977a61..0000000000
--- a/src/ModularPipelines.Chocolatey/Options/ApikeyOptions.cs
+++ /dev/null
@@ -1,15 +0,0 @@
-using System.Diagnostics.CodeAnalysis;
-using ModularPipelines.Attributes;
-
-namespace ModularPipelines.Chocolatey.Options;
-
-[ExcludeFromCodeCoverage]
-[CliSubCommand("apikey")]
-public record ApiKeyOptions : ChocoOptions
-{
- [CliOption("--source")]
- public virtual string? Source { get; set; }
-
- [CliOption("--api-key")]
- public virtual string? ApiKey { get; set; }
-}
\ No newline at end of file
diff --git a/src/ModularPipelines.Chocolatey/Options/CacheOptions.cs b/src/ModularPipelines.Chocolatey/Options/CacheOptions.cs
deleted file mode 100644
index bf7d8bc8c4..0000000000
--- a/src/ModularPipelines.Chocolatey/Options/CacheOptions.cs
+++ /dev/null
@@ -1,12 +0,0 @@
-using System.Diagnostics.CodeAnalysis;
-using ModularPipelines.Attributes;
-
-namespace ModularPipelines.Chocolatey.Options;
-
-[ExcludeFromCodeCoverage]
-[CliSubCommand("cache")]
-public record CacheOptions : ChocoOptions
-{
- [CliFlag("--expired")]
- public virtual bool? Expired { get; set; }
-}
\ No newline at end of file
diff --git a/src/ModularPipelines.Chocolatey/Options/CacheRemoveOptions.cs b/src/ModularPipelines.Chocolatey/Options/CacheRemoveOptions.cs
deleted file mode 100644
index 02a4f7e0da..0000000000
--- a/src/ModularPipelines.Chocolatey/Options/CacheRemoveOptions.cs
+++ /dev/null
@@ -1,12 +0,0 @@
-using System.Diagnostics.CodeAnalysis;
-using ModularPipelines.Attributes;
-
-namespace ModularPipelines.Chocolatey.Options;
-
-[ExcludeFromCodeCoverage]
-[CliCommand("cache", "remove")]
-public record CacheRemoveOptions : ChocoOptions
-{
- [CliFlag("--expired")]
- public virtual bool? Expired { get; set; }
-}
\ No newline at end of file
diff --git a/src/ModularPipelines.Chocolatey/Options/ChocoApikeyOptions.cs b/src/ModularPipelines.Chocolatey/Options/ChocoApikeyOptions.cs
new file mode 100644
index 0000000000..f15ff9a070
--- /dev/null
+++ b/src/ModularPipelines.Chocolatey/Options/ChocoApikeyOptions.cs
@@ -0,0 +1,117 @@
+//
+// This file was generated by ModularPipelines.OptionsGenerator.
+// Do not edit this file manually.
+//
+
+#nullable enable
+
+using System.Diagnostics.CodeAnalysis;
+using ModularPipelines.Attributes;
+using ModularPipelines.Chocolatey.Options;
+
+namespace ModularPipelines.Chocolatey.Options;
+
+///
+/// For source location, this can be a folder/file share or an
+///
+[ExcludeFromCodeCoverage]
+[CliSubCommand("apikey")]
+public record ChocoApikeyOptions : ChocoOptions
+{
+ ///
+ /// Online - Open help for specified command in default browser application. This option only works when used in combination with the -?/--help/-h option. Available in 2.0.0+
+ ///
+ [CliFlag("--online")]
+ public bool? Online { get; set; }
+
+ ///
+ /// Debug - Show debug messaging.
+ ///
+ [CliFlag("--debug", ShortForm = "-d")]
+ public bool? Debug { get; set; }
+
+ ///
+ /// Verbose - Show verbose messaging. Very verbose messaging, avoid using under normal circumstances.
+ ///
+ [CliFlag("--verbose", ShortForm = "-v")]
+ public bool? Verbose { get; set; }
+
+ ///
+ /// Trace - Show trace messaging. Very, very verbose trace messaging. Avoid except when needing super low-level .NET Framework debugging.
+ ///
+ [CliFlag("--trace")]
+ public bool? Trace { get; set; }
+
+ ///
+ /// Force - force the behavior. Do not use force during normal operation - it subverts some of the smart behavior for commands.
+ ///
+ [CliFlag("--force", ShortForm = "-f")]
+ public bool? Force { get; set; }
+
+ ///
+ /// Include header names when --limit-output is used. Requires Chocolatey CLI 2.5.0+
+ ///
+ [CliFlag("--include-headers")]
+ public bool? IncludeHeaders { get; set; }
+
+ ///
+ /// UseSystemPowerShell - Execute PowerShell using an external process instead of the built-in PowerShell host. Should only be used when internal host is failing.
+ ///
+ [CliFlag("--use-system-powershell")]
+ public bool? UseSystemPowershell { get; set; }
+
+ ///
+ /// Do Not Show Progress - Do not show download progress percentages.
+ ///
+ [CliFlag("--no-progress")]
+ public bool? NoProgress { get; set; }
+
+ ///
+ /// Proxy Location - Explicit proxy location. Overrides the default proxy location of ''.
+ ///
+ [CliOption("--proxy", Format = OptionFormat.EqualsSeparated)]
+ public string? Proxy { get; set; }
+
+ ///
+ /// Proxy User Name - Explicit proxy user (optional). Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy user of ''.
+ ///
+ [CliOption("--proxy-user", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyUser { get; set; }
+
+ ///
+ /// Proxy Password - Explicit proxy password (optional) to be used with user name. Encrypted. Requires explicit proxy (`--proxy` or config setting) and user name (`--proxy-user` or config setting). Overrides the default proxy password.
+ ///
+ [CliOption("--proxy-password", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyPassword { get; set; }
+
+ ///
+ /// ProxyBypassList - Comma separated list of regex locations to bypass on proxy. Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy bypass list of ''.
+ ///
+ [CliOption("--proxy-bypass-list", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyBypassList { get; set; }
+
+ ///
+ /// Proxy Bypass On Local - Bypass proxy for local connections. Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy bypass on local setting of 'True'.
+ ///
+ [CliFlag("--proxy-bypass-on-local")]
+ public bool? ProxyBypassOnLocal { get; set; }
+
+ ///
+ /// Log File to output to in addition to regular loggers.
+ ///
+ [CliOption("--log-file", Format = OptionFormat.EqualsSeparated)]
+ public string? LogFile { get; set; }
+
+ ///
+ /// Ignore any HTTP caches that have previously been created when querying sources, and create new caches. Available in 2.1.0+
+ ///
+ [CliFlag("--ignore-http-cache")]
+ public bool? IgnoreHttpCache { get; set; }
+
+ ///
+ /// Source [REQUIRED] - The source location for the key
+ ///
+ [CliOption("--source", ShortForm = "-s", Format = OptionFormat.EqualsSeparated)]
+ public string? Source { get; set; }
+
+}
diff --git a/src/ModularPipelines.Chocolatey/Options/ChocoCacheOptions.cs b/src/ModularPipelines.Chocolatey/Options/ChocoCacheOptions.cs
new file mode 100644
index 0000000000..b4452d462e
--- /dev/null
+++ b/src/ModularPipelines.Chocolatey/Options/ChocoCacheOptions.cs
@@ -0,0 +1,117 @@
+//
+// This file was generated by ModularPipelines.OptionsGenerator.
+// Do not edit this file manually.
+//
+
+#nullable enable
+
+using System.Diagnostics.CodeAnalysis;
+using ModularPipelines.Attributes;
+using ModularPipelines.Chocolatey.Options;
+
+namespace ModularPipelines.Chocolatey.Options;
+
+///
+/// NOTE: See scripting in the command reference (`choco --help`) for how to
+///
+[ExcludeFromCodeCoverage]
+[CliSubCommand("cache")]
+public record ChocoCacheOptions : ChocoOptions
+{
+ ///
+ /// Online - Open help for specified command in default browser application. This option only works when used in combination with the -?/--help/-h option. Available in 2.0.0+
+ ///
+ [CliFlag("--online")]
+ public bool? Online { get; set; }
+
+ ///
+ /// Debug - Show debug messaging.
+ ///
+ [CliFlag("--debug", ShortForm = "-d")]
+ public bool? Debug { get; set; }
+
+ ///
+ /// Verbose - Show verbose messaging. Very verbose messaging, avoid using under normal circumstances.
+ ///
+ [CliFlag("--verbose", ShortForm = "-v")]
+ public bool? Verbose { get; set; }
+
+ ///
+ /// Trace - Show trace messaging. Very, very verbose trace messaging. Avoid except when needing super low-level .NET Framework debugging.
+ ///
+ [CliFlag("--trace")]
+ public bool? Trace { get; set; }
+
+ ///
+ /// Force - force the behavior. Do not use force during normal operation - it subverts some of the smart behavior for commands.
+ ///
+ [CliFlag("--force", ShortForm = "-f")]
+ public bool? Force { get; set; }
+
+ ///
+ /// Include header names when --limit-output is used. Requires Chocolatey CLI 2.5.0+
+ ///
+ [CliFlag("--include-headers")]
+ public bool? IncludeHeaders { get; set; }
+
+ ///
+ /// UseSystemPowerShell - Execute PowerShell using an external process instead of the built-in PowerShell host. Should only be used when internal host is failing.
+ ///
+ [CliFlag("--use-system-powershell")]
+ public bool? UseSystemPowershell { get; set; }
+
+ ///
+ /// Do Not Show Progress - Do not show download progress percentages.
+ ///
+ [CliFlag("--no-progress")]
+ public bool? NoProgress { get; set; }
+
+ ///
+ /// Proxy Location - Explicit proxy location. Overrides the default proxy location of ''.
+ ///
+ [CliOption("--proxy", Format = OptionFormat.EqualsSeparated)]
+ public string? Proxy { get; set; }
+
+ ///
+ /// Proxy User Name - Explicit proxy user (optional). Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy user of ''.
+ ///
+ [CliOption("--proxy-user", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyUser { get; set; }
+
+ ///
+ /// Proxy Password - Explicit proxy password (optional) to be used with user name. Encrypted. Requires explicit proxy (`--proxy` or config setting) and user name (`--proxy-user` or config setting). Overrides the default proxy password.
+ ///
+ [CliOption("--proxy-password", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyPassword { get; set; }
+
+ ///
+ /// ProxyBypassList - Comma separated list of regex locations to bypass on proxy. Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy bypass list of ''.
+ ///
+ [CliOption("--proxy-bypass-list", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyBypassList { get; set; }
+
+ ///
+ /// Proxy Bypass On Local - Bypass proxy for local connections. Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy bypass on local setting of 'True'.
+ ///
+ [CliFlag("--proxy-bypass-on-local")]
+ public bool? ProxyBypassOnLocal { get; set; }
+
+ ///
+ /// Log File to output to in addition to regular loggers.
+ ///
+ [CliOption("--log-file", Format = OptionFormat.EqualsSeparated)]
+ public string? LogFile { get; set; }
+
+ ///
+ /// Ignore any HTTP caches that have previously been created when querying sources, and create new caches. Available in 2.1.0+
+ ///
+ [CliFlag("--ignore-http-cache")]
+ public bool? IgnoreHttpCache { get; set; }
+
+ ///
+ /// Expired - Remove cached items that have expired.
+ ///
+ [CliFlag("--expired")]
+ public bool? Expired { get; set; }
+
+}
diff --git a/src/ModularPipelines.Chocolatey/Options/ChocoConfigOptions.cs b/src/ModularPipelines.Chocolatey/Options/ChocoConfigOptions.cs
new file mode 100644
index 0000000000..bd6fdc8487
--- /dev/null
+++ b/src/ModularPipelines.Chocolatey/Options/ChocoConfigOptions.cs
@@ -0,0 +1,123 @@
+//
+// This file was generated by ModularPipelines.OptionsGenerator.
+// Do not edit this file manually.
+//
+
+#nullable enable
+
+using System.Diagnostics.CodeAnalysis;
+using ModularPipelines.Attributes;
+using ModularPipelines.Chocolatey.Options;
+
+namespace ModularPipelines.Chocolatey.Options;
+
+///
+/// NOTE: See scripting in the command reference (`choco --help`) for how to
+///
+[ExcludeFromCodeCoverage]
+[CliSubCommand("config")]
+public record ChocoConfigOptions : ChocoOptions
+{
+ ///
+ /// Online - Open help for specified command in default browser application. This option only works when used in combination with the -?/--help/-h option. Available in 2.0.0+
+ ///
+ [CliFlag("--online")]
+ public bool? Online { get; set; }
+
+ ///
+ /// Debug - Show debug messaging.
+ ///
+ [CliFlag("--debug", ShortForm = "-d")]
+ public bool? Debug { get; set; }
+
+ ///
+ /// Verbose - Show verbose messaging. Very verbose messaging, avoid using under normal circumstances.
+ ///
+ [CliFlag("--verbose", ShortForm = "-v")]
+ public bool? Verbose { get; set; }
+
+ ///
+ /// Trace - Show trace messaging. Very, very verbose trace messaging. Avoid except when needing super low-level .NET Framework debugging.
+ ///
+ [CliFlag("--trace")]
+ public bool? Trace { get; set; }
+
+ ///
+ /// Force - force the behavior. Do not use force during normal operation - it subverts some of the smart behavior for commands.
+ ///
+ [CliFlag("--force", ShortForm = "-f")]
+ public bool? Force { get; set; }
+
+ ///
+ /// Include header names when --limit-output is used. Requires Chocolatey CLI 2.5.0+
+ ///
+ [CliFlag("--include-headers")]
+ public bool? IncludeHeaders { get; set; }
+
+ ///
+ /// UseSystemPowerShell - Execute PowerShell using an external process instead of the built-in PowerShell host. Should only be used when internal host is failing.
+ ///
+ [CliFlag("--use-system-powershell")]
+ public bool? UseSystemPowershell { get; set; }
+
+ ///
+ /// Do Not Show Progress - Do not show download progress percentages.
+ ///
+ [CliFlag("--no-progress")]
+ public bool? NoProgress { get; set; }
+
+ ///
+ /// Proxy Location - Explicit proxy location. Overrides the default proxy location of ''.
+ ///
+ [CliOption("--proxy", Format = OptionFormat.EqualsSeparated)]
+ public string? Proxy { get; set; }
+
+ ///
+ /// Proxy User Name - Explicit proxy user (optional). Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy user of ''.
+ ///
+ [CliOption("--proxy-user", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyUser { get; set; }
+
+ ///
+ /// Proxy Password - Explicit proxy password (optional) to be used with user name. Encrypted. Requires explicit proxy (`--proxy` or config setting) and user name (`--proxy-user` or config setting). Overrides the default proxy password.
+ ///
+ [CliOption("--proxy-password", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyPassword { get; set; }
+
+ ///
+ /// ProxyBypassList - Comma separated list of regex locations to bypass on proxy. Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy bypass list of ''.
+ ///
+ [CliOption("--proxy-bypass-list", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyBypassList { get; set; }
+
+ ///
+ /// Proxy Bypass On Local - Bypass proxy for local connections. Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy bypass on local setting of 'True'.
+ ///
+ [CliFlag("--proxy-bypass-on-local")]
+ public bool? ProxyBypassOnLocal { get; set; }
+
+ ///
+ /// Log File to output to in addition to regular loggers.
+ ///
+ [CliOption("--log-file", Format = OptionFormat.EqualsSeparated)]
+ public string? LogFile { get; set; }
+
+ ///
+ /// Ignore any HTTP caches that have previously been created when querying sources, and create new caches. Available in 2.1.0+
+ ///
+ [CliFlag("--ignore-http-cache")]
+ public bool? IgnoreHttpCache { get; set; }
+
+ ///
+ /// Name - the name of the config setting. Required with some actions. Defaults to empty.
+ ///
+ [CliOption("--name", ShortForm = "-n", Format = OptionFormat.EqualsSeparated)]
+ public string? Name { get; set; }
+
+ ///
+ /// Value - the value of the config setting. Required with some actions. Defaults to empty.
+ ///
+ [CliOption("--value", Format = OptionFormat.EqualsSeparated)]
+ public string? Value { get; set; }
+
+}
diff --git a/src/ModularPipelines.Chocolatey/Options/ChocoExportOptions.cs b/src/ModularPipelines.Chocolatey/Options/ChocoExportOptions.cs
new file mode 100644
index 0000000000..e098f01ca1
--- /dev/null
+++ b/src/ModularPipelines.Chocolatey/Options/ChocoExportOptions.cs
@@ -0,0 +1,117 @@
+//
+// This file was generated by ModularPipelines.OptionsGenerator.
+// Do not edit this file manually.
+//
+
+#nullable enable
+
+using System.Diagnostics.CodeAnalysis;
+using ModularPipelines.Attributes;
+using ModularPipelines.Chocolatey.Options;
+
+namespace ModularPipelines.Chocolatey.Options;
+
+///
+/// NOTE: See scripting in the command reference (`choco --help`) for how to
+///
+[ExcludeFromCodeCoverage]
+[CliSubCommand("export")]
+public record ChocoExportOptions : ChocoOptions
+{
+ ///
+ /// Online - Open help for specified command in default browser application. This option only works when used in combination with the -?/--help/-h option. Available in 2.0.0+
+ ///
+ [CliFlag("--online")]
+ public bool? Online { get; set; }
+
+ ///
+ /// Debug - Show debug messaging.
+ ///
+ [CliFlag("--debug", ShortForm = "-d")]
+ public bool? Debug { get; set; }
+
+ ///
+ /// Verbose - Show verbose messaging. Very verbose messaging, avoid using under normal circumstances.
+ ///
+ [CliFlag("--verbose", ShortForm = "-v")]
+ public bool? Verbose { get; set; }
+
+ ///
+ /// Trace - Show trace messaging. Very, very verbose trace messaging. Avoid except when needing super low-level .NET Framework debugging.
+ ///
+ [CliFlag("--trace")]
+ public bool? Trace { get; set; }
+
+ ///
+ /// Force - force the behavior. Do not use force during normal operation - it subverts some of the smart behavior for commands.
+ ///
+ [CliFlag("--force", ShortForm = "-f")]
+ public bool? Force { get; set; }
+
+ ///
+ /// Include header names when --limit-output is used. Requires Chocolatey CLI 2.5.0+
+ ///
+ [CliFlag("--include-headers")]
+ public bool? IncludeHeaders { get; set; }
+
+ ///
+ /// UseSystemPowerShell - Execute PowerShell using an external process instead of the built-in PowerShell host. Should only be used when internal host is failing.
+ ///
+ [CliFlag("--use-system-powershell")]
+ public bool? UseSystemPowershell { get; set; }
+
+ ///
+ /// Do Not Show Progress - Do not show download progress percentages.
+ ///
+ [CliFlag("--no-progress")]
+ public bool? NoProgress { get; set; }
+
+ ///
+ /// Proxy Location - Explicit proxy location. Overrides the default proxy location of ''.
+ ///
+ [CliOption("--proxy", Format = OptionFormat.EqualsSeparated)]
+ public string? Proxy { get; set; }
+
+ ///
+ /// Proxy User Name - Explicit proxy user (optional). Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy user of ''.
+ ///
+ [CliOption("--proxy-user", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyUser { get; set; }
+
+ ///
+ /// Proxy Password - Explicit proxy password (optional) to be used with user name. Encrypted. Requires explicit proxy (`--proxy` or config setting) and user name (`--proxy-user` or config setting). Overrides the default proxy password.
+ ///
+ [CliOption("--proxy-password", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyPassword { get; set; }
+
+ ///
+ /// ProxyBypassList - Comma separated list of regex locations to bypass on proxy. Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy bypass list of ''.
+ ///
+ [CliOption("--proxy-bypass-list", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyBypassList { get; set; }
+
+ ///
+ /// Proxy Bypass On Local - Bypass proxy for local connections. Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy bypass on local setting of 'True'.
+ ///
+ [CliFlag("--proxy-bypass-on-local")]
+ public bool? ProxyBypassOnLocal { get; set; }
+
+ ///
+ /// Log File to output to in addition to regular loggers.
+ ///
+ [CliOption("--log-file", Format = OptionFormat.EqualsSeparated)]
+ public string? LogFile { get; set; }
+
+ ///
+ /// Ignore any HTTP caches that have previously been created when querying sources, and create new caches. Available in 2.1.0+
+ ///
+ [CliFlag("--ignore-http-cache")]
+ public bool? IgnoreHttpCache { get; set; }
+
+ ///
+ /// Output File Path - the path to where the list of currently installed packages should be saved. Defaults to packages.config.
+ ///
+ [CliOption("--output-file-path", ShortForm = "-o", Format = OptionFormat.EqualsSeparated)]
+ public string? OutputFilePath { get; set; }
+
+}
diff --git a/src/ModularPipelines.Chocolatey/Options/ChocoFeatureOptions.cs b/src/ModularPipelines.Chocolatey/Options/ChocoFeatureOptions.cs
new file mode 100644
index 0000000000..14dea02c28
--- /dev/null
+++ b/src/ModularPipelines.Chocolatey/Options/ChocoFeatureOptions.cs
@@ -0,0 +1,117 @@
+//
+// This file was generated by ModularPipelines.OptionsGenerator.
+// Do not edit this file manually.
+//
+
+#nullable enable
+
+using System.Diagnostics.CodeAnalysis;
+using ModularPipelines.Attributes;
+using ModularPipelines.Chocolatey.Options;
+
+namespace ModularPipelines.Chocolatey.Options;
+
+///
+/// NOTE: See scripting in the command reference (`choco --help`) for how to
+///
+[ExcludeFromCodeCoverage]
+[CliSubCommand("feature")]
+public record ChocoFeatureOptions : ChocoOptions
+{
+ ///
+ /// Online - Open help for specified command in default browser application. This option only works when used in combination with the -?/--help/-h option. Available in 2.0.0+
+ ///
+ [CliFlag("--online")]
+ public bool? Online { get; set; }
+
+ ///
+ /// Debug - Show debug messaging.
+ ///
+ [CliFlag("--debug", ShortForm = "-d")]
+ public bool? Debug { get; set; }
+
+ ///
+ /// Verbose - Show verbose messaging. Very verbose messaging, avoid using under normal circumstances.
+ ///
+ [CliFlag("--verbose", ShortForm = "-v")]
+ public bool? Verbose { get; set; }
+
+ ///
+ /// Trace - Show trace messaging. Very, very verbose trace messaging. Avoid except when needing super low-level .NET Framework debugging.
+ ///
+ [CliFlag("--trace")]
+ public bool? Trace { get; set; }
+
+ ///
+ /// Force - force the behavior. Do not use force during normal operation - it subverts some of the smart behavior for commands.
+ ///
+ [CliFlag("--force", ShortForm = "-f")]
+ public bool? Force { get; set; }
+
+ ///
+ /// Include header names when --limit-output is used. Requires Chocolatey CLI 2.5.0+
+ ///
+ [CliFlag("--include-headers")]
+ public bool? IncludeHeaders { get; set; }
+
+ ///
+ /// UseSystemPowerShell - Execute PowerShell using an external process instead of the built-in PowerShell host. Should only be used when internal host is failing.
+ ///
+ [CliFlag("--use-system-powershell")]
+ public bool? UseSystemPowershell { get; set; }
+
+ ///
+ /// Do Not Show Progress - Do not show download progress percentages.
+ ///
+ [CliFlag("--no-progress")]
+ public bool? NoProgress { get; set; }
+
+ ///
+ /// Proxy Location - Explicit proxy location. Overrides the default proxy location of ''.
+ ///
+ [CliOption("--proxy", Format = OptionFormat.EqualsSeparated)]
+ public string? Proxy { get; set; }
+
+ ///
+ /// Proxy User Name - Explicit proxy user (optional). Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy user of ''.
+ ///
+ [CliOption("--proxy-user", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyUser { get; set; }
+
+ ///
+ /// Proxy Password - Explicit proxy password (optional) to be used with user name. Encrypted. Requires explicit proxy (`--proxy` or config setting) and user name (`--proxy-user` or config setting). Overrides the default proxy password.
+ ///
+ [CliOption("--proxy-password", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyPassword { get; set; }
+
+ ///
+ /// ProxyBypassList - Comma separated list of regex locations to bypass on proxy. Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy bypass list of ''.
+ ///
+ [CliOption("--proxy-bypass-list", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyBypassList { get; set; }
+
+ ///
+ /// Proxy Bypass On Local - Bypass proxy for local connections. Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy bypass on local setting of 'True'.
+ ///
+ [CliFlag("--proxy-bypass-on-local")]
+ public bool? ProxyBypassOnLocal { get; set; }
+
+ ///
+ /// Log File to output to in addition to regular loggers.
+ ///
+ [CliOption("--log-file", Format = OptionFormat.EqualsSeparated)]
+ public string? LogFile { get; set; }
+
+ ///
+ /// Ignore any HTTP caches that have previously been created when querying sources, and create new caches. Available in 2.1.0+
+ ///
+ [CliFlag("--ignore-http-cache")]
+ public bool? IgnoreHttpCache { get; set; }
+
+ ///
+ /// Name - the name of the source. Required with actions other than list. Defaults to empty.
+ ///
+ [CliOption("--name", ShortForm = "-n", Format = OptionFormat.EqualsSeparated)]
+ public string? Name { get; set; }
+
+}
diff --git a/src/ModularPipelines.Chocolatey/Options/ChocoFeaturesOptions.cs b/src/ModularPipelines.Chocolatey/Options/ChocoFeaturesOptions.cs
new file mode 100644
index 0000000000..4edb8701c1
--- /dev/null
+++ b/src/ModularPipelines.Chocolatey/Options/ChocoFeaturesOptions.cs
@@ -0,0 +1,117 @@
+//
+// This file was generated by ModularPipelines.OptionsGenerator.
+// Do not edit this file manually.
+//
+
+#nullable enable
+
+using System.Diagnostics.CodeAnalysis;
+using ModularPipelines.Attributes;
+using ModularPipelines.Chocolatey.Options;
+
+namespace ModularPipelines.Chocolatey.Options;
+
+///
+/// NOTE: See scripting in the command reference (`choco --help`) for how to
+///
+[ExcludeFromCodeCoverage]
+[CliSubCommand("features")]
+public record ChocoFeaturesOptions : ChocoOptions
+{
+ ///
+ /// Online - Open help for specified command in default browser application. This option only works when used in combination with the -?/--help/-h option. Available in 2.0.0+
+ ///
+ [CliFlag("--online")]
+ public bool? Online { get; set; }
+
+ ///
+ /// Debug - Show debug messaging.
+ ///
+ [CliFlag("--debug", ShortForm = "-d")]
+ public bool? Debug { get; set; }
+
+ ///
+ /// Verbose - Show verbose messaging. Very verbose messaging, avoid using under normal circumstances.
+ ///
+ [CliFlag("--verbose", ShortForm = "-v")]
+ public bool? Verbose { get; set; }
+
+ ///
+ /// Trace - Show trace messaging. Very, very verbose trace messaging. Avoid except when needing super low-level .NET Framework debugging.
+ ///
+ [CliFlag("--trace")]
+ public bool? Trace { get; set; }
+
+ ///
+ /// Force - force the behavior. Do not use force during normal operation - it subverts some of the smart behavior for commands.
+ ///
+ [CliFlag("--force", ShortForm = "-f")]
+ public bool? Force { get; set; }
+
+ ///
+ /// Include header names when --limit-output is used. Requires Chocolatey CLI 2.5.0+
+ ///
+ [CliFlag("--include-headers")]
+ public bool? IncludeHeaders { get; set; }
+
+ ///
+ /// UseSystemPowerShell - Execute PowerShell using an external process instead of the built-in PowerShell host. Should only be used when internal host is failing.
+ ///
+ [CliFlag("--use-system-powershell")]
+ public bool? UseSystemPowershell { get; set; }
+
+ ///
+ /// Do Not Show Progress - Do not show download progress percentages.
+ ///
+ [CliFlag("--no-progress")]
+ public bool? NoProgress { get; set; }
+
+ ///
+ /// Proxy Location - Explicit proxy location. Overrides the default proxy location of ''.
+ ///
+ [CliOption("--proxy", Format = OptionFormat.EqualsSeparated)]
+ public string? Proxy { get; set; }
+
+ ///
+ /// Proxy User Name - Explicit proxy user (optional). Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy user of ''.
+ ///
+ [CliOption("--proxy-user", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyUser { get; set; }
+
+ ///
+ /// Proxy Password - Explicit proxy password (optional) to be used with user name. Encrypted. Requires explicit proxy (`--proxy` or config setting) and user name (`--proxy-user` or config setting). Overrides the default proxy password.
+ ///
+ [CliOption("--proxy-password", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyPassword { get; set; }
+
+ ///
+ /// ProxyBypassList - Comma separated list of regex locations to bypass on proxy. Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy bypass list of ''.
+ ///
+ [CliOption("--proxy-bypass-list", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyBypassList { get; set; }
+
+ ///
+ /// Proxy Bypass On Local - Bypass proxy for local connections. Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy bypass on local setting of 'True'.
+ ///
+ [CliFlag("--proxy-bypass-on-local")]
+ public bool? ProxyBypassOnLocal { get; set; }
+
+ ///
+ /// Log File to output to in addition to regular loggers.
+ ///
+ [CliOption("--log-file", Format = OptionFormat.EqualsSeparated)]
+ public string? LogFile { get; set; }
+
+ ///
+ /// Ignore any HTTP caches that have previously been created when querying sources, and create new caches. Available in 2.1.0+
+ ///
+ [CliFlag("--ignore-http-cache")]
+ public bool? IgnoreHttpCache { get; set; }
+
+ ///
+ /// Name - the name of the source. Required with actions other than list. Defaults to empty.
+ ///
+ [CliOption("--name", ShortForm = "-n", Format = OptionFormat.EqualsSeparated)]
+ public string? Name { get; set; }
+
+}
diff --git a/src/ModularPipelines.Chocolatey/Options/ChocoFindOptions.cs b/src/ModularPipelines.Chocolatey/Options/ChocoFindOptions.cs
new file mode 100644
index 0000000000..6b431b525c
--- /dev/null
+++ b/src/ModularPipelines.Chocolatey/Options/ChocoFindOptions.cs
@@ -0,0 +1,201 @@
+//
+// This file was generated by ModularPipelines.OptionsGenerator.
+// Do not edit this file manually.
+//
+
+#nullable enable
+
+using System.Diagnostics.CodeAnalysis;
+using ModularPipelines.Attributes;
+using ModularPipelines.Chocolatey.Options;
+
+namespace ModularPipelines.Chocolatey.Options;
+
+///
+/// NOTE: See scripting in the command reference (`choco --help`) for how to
+///
+[ExcludeFromCodeCoverage]
+[CliSubCommand("find")]
+public record ChocoFindOptions : ChocoOptions
+{
+ ///
+ /// Online - Open help for specified command in default browser application. This option only works when used in combination with the -?/--help/-h option. Available in 2.0.0+
+ ///
+ [CliFlag("--online")]
+ public bool? Online { get; set; }
+
+ ///
+ /// Debug - Show debug messaging.
+ ///
+ [CliFlag("--debug", ShortForm = "-d")]
+ public bool? Debug { get; set; }
+
+ ///
+ /// Verbose - Show verbose messaging. Very verbose messaging, avoid using under normal circumstances.
+ ///
+ [CliFlag("--verbose", ShortForm = "-v")]
+ public bool? Verbose { get; set; }
+
+ ///
+ /// Trace - Show trace messaging. Very, very verbose trace messaging. Avoid except when needing super low-level .NET Framework debugging.
+ ///
+ [CliFlag("--trace")]
+ public bool? Trace { get; set; }
+
+ ///
+ /// Force - force the behavior. Do not use force during normal operation - it subverts some of the smart behavior for commands.
+ ///
+ [CliFlag("--force", ShortForm = "-f")]
+ public bool? Force { get; set; }
+
+ ///
+ /// Include header names when --limit-output is used. Requires Chocolatey CLI 2.5.0+
+ ///
+ [CliFlag("--include-headers")]
+ public bool? IncludeHeaders { get; set; }
+
+ ///
+ /// UseSystemPowerShell - Execute PowerShell using an external process instead of the built-in PowerShell host. Should only be used when internal host is failing.
+ ///
+ [CliFlag("--use-system-powershell")]
+ public bool? UseSystemPowershell { get; set; }
+
+ ///
+ /// Do Not Show Progress - Do not show download progress percentages.
+ ///
+ [CliFlag("--no-progress")]
+ public bool? NoProgress { get; set; }
+
+ ///
+ /// Proxy Location - Explicit proxy location. Overrides the default proxy location of ''.
+ ///
+ [CliOption("--proxy", Format = OptionFormat.EqualsSeparated)]
+ public string? Proxy { get; set; }
+
+ ///
+ /// Proxy User Name - Explicit proxy user (optional). Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy user of ''.
+ ///
+ [CliOption("--proxy-user", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyUser { get; set; }
+
+ ///
+ /// Proxy Password - Explicit proxy password (optional) to be used with user name. Encrypted. Requires explicit proxy (`--proxy` or config setting) and user name (`--proxy-user` or config setting). Overrides the default proxy password.
+ ///
+ [CliOption("--proxy-password", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyPassword { get; set; }
+
+ ///
+ /// ProxyBypassList - Comma separated list of regex locations to bypass on proxy. Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy bypass list of ''.
+ ///
+ [CliOption("--proxy-bypass-list", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyBypassList { get; set; }
+
+ ///
+ /// Proxy Bypass On Local - Bypass proxy for local connections. Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy bypass on local setting of 'True'.
+ ///
+ [CliFlag("--proxy-bypass-on-local")]
+ public bool? ProxyBypassOnLocal { get; set; }
+
+ ///
+ /// Log File to output to in addition to regular loggers.
+ ///
+ [CliOption("--log-file", Format = OptionFormat.EqualsSeparated)]
+ public string? LogFile { get; set; }
+
+ ///
+ /// Ignore any HTTP caches that have previously been created when querying sources, and create new caches. Available in 2.1.0+
+ ///
+ [CliFlag("--ignore-http-cache")]
+ public bool? IgnoreHttpCache { get; set; }
+
+ ///
+ /// Source - Source location for install. Can use special 'windowsfeatures', 'ruby', 'cygwin', or 'python' sources. Defaults to sources.
+ ///
+ [CliOption("--source", ShortForm = "-s", Format = OptionFormat.EqualsSeparated)]
+ public string? Source { get; set; }
+
+ ///
+ /// Version - Specific version of a package to return.
+ ///
+ [CliOption("--version", Format = OptionFormat.EqualsSeparated)]
+ public string? Version { get; set; }
+
+ ///
+ /// User - used with authenticated feeds. Defaults to empty.
+ ///
+ [CliOption("--user", ShortForm = "-u", Format = OptionFormat.EqualsSeparated)]
+ public string? User { get; set; }
+
+ ///
+ /// Password - the user's password to the source. Defaults to empty.
+ ///
+ [CliOption("--password", ShortForm = "-p", Format = OptionFormat.EqualsSeparated)]
+ public string? Password { get; set; }
+
+ ///
+ /// Client certificate - PFX pathname for an x509 authenticated feeds. Defaults to empty.
+ ///
+ [CliOption("--cert", Format = OptionFormat.EqualsSeparated)]
+ public string? Cert { get; set; }
+
+ ///
+ /// Page - the 'page' of results to return. Defaults to return all results.
+ ///
+ [CliOption("--page", Format = OptionFormat.EqualsSeparated)]
+ public string? Page { get; set; }
+
+ ///
+ /// Page Size - the amount of packages to return in each page of results. NOTE: this value is per source. Defaults to 25 for each source that is included in query.
+ ///
+ [CliOption("--page-size", Format = OptionFormat.EqualsSeparated)]
+ public string? PageSize { get; set; }
+
+ ///
+ /// Exact - Only return packages with this exact name.
+ ///
+ [CliFlag("--exact", ShortForm = "-e")]
+ public bool? Exact { get; set; }
+
+ ///
+ /// ByIdOnly - Only return packages where the id contains the search filter.
+ ///
+ [CliFlag("--by-id-only")]
+ public bool? ByIdOnly { get; set; }
+
+ ///
+ /// IdStartsWith - Only return packages where the id starts with the search filter.
+ ///
+ [CliFlag("--id-starts-with")]
+ public bool? IdStartsWith { get; set; }
+
+ ///
+ /// OrderBy - Sort package results by Id (default), Title, Popularity, LastPublished, Unsorted. Available in 2.5.0+.
+ ///
+ [CliOption("--order-by", Format = OptionFormat.EqualsSeparated)]
+ public string? OrderBy { get; set; }
+
+ ///
+ /// (Deprecated) OrderByPopularity - Sort package results by popularity. Use '--order-by='Popularity'' instead.
+ ///
+ [CliFlag("--order-by-popularity")]
+ public bool? OrderByPopularity { get; set; }
+
+ ///
+ /// ApprovedOnly - Only return approved packages - this option will filter out results not from the community repository.
+ ///
+ [CliFlag("--approved-only")]
+ public bool? ApprovedOnly { get; set; }
+
+ ///
+ /// NotBroken - Only return packages that are not failing testing - this option only filters out failing results from the community feed. It will not filter against other sources.
+ ///
+ [CliFlag("--not-broken")]
+ public bool? NotBroken { get; set; }
+
+ ///
+ /// Include Configured Sources - When using the '--source' option, this appends the sources that have been saved into the chocolatey.config file by 'source' command. Available in 2.3.0+
+ ///
+ [CliFlag("--include-configured-sources")]
+ public bool? IncludeConfiguredSources { get; set; }
+
+}
diff --git a/src/ModularPipelines.Chocolatey/Options/ChocoInfoOptions.cs b/src/ModularPipelines.Chocolatey/Options/ChocoInfoOptions.cs
new file mode 100644
index 0000000000..68dcfec252
--- /dev/null
+++ b/src/ModularPipelines.Chocolatey/Options/ChocoInfoOptions.cs
@@ -0,0 +1,147 @@
+//
+// This file was generated by ModularPipelines.OptionsGenerator.
+// Do not edit this file manually.
+//
+
+#nullable enable
+
+using System.Diagnostics.CodeAnalysis;
+using ModularPipelines.Attributes;
+using ModularPipelines.Chocolatey.Options;
+
+namespace ModularPipelines.Chocolatey.Options;
+
+///
+/// NOTE: See scripting in the command reference (`choco --help`) for how to
+///
+[ExcludeFromCodeCoverage]
+[CliSubCommand("info")]
+public record ChocoInfoOptions : ChocoOptions
+{
+ ///
+ /// Online - Open help for specified command in default browser application. This option only works when used in combination with the -?/--help/-h option. Available in 2.0.0+
+ ///
+ [CliFlag("--online")]
+ public bool? Online { get; set; }
+
+ ///
+ /// Debug - Show debug messaging.
+ ///
+ [CliFlag("--debug", ShortForm = "-d")]
+ public bool? Debug { get; set; }
+
+ ///
+ /// Verbose - Show verbose messaging. Very verbose messaging, avoid using under normal circumstances.
+ ///
+ [CliFlag("--verbose", ShortForm = "-v")]
+ public bool? Verbose { get; set; }
+
+ ///
+ /// Trace - Show trace messaging. Very, very verbose trace messaging. Avoid except when needing super low-level .NET Framework debugging.
+ ///
+ [CliFlag("--trace")]
+ public bool? Trace { get; set; }
+
+ ///
+ /// Force - force the behavior. Do not use force during normal operation - it subverts some of the smart behavior for commands.
+ ///
+ [CliFlag("--force", ShortForm = "-f")]
+ public bool? Force { get; set; }
+
+ ///
+ /// Include header names when --limit-output is used. Requires Chocolatey CLI 2.5.0+
+ ///
+ [CliFlag("--include-headers")]
+ public bool? IncludeHeaders { get; set; }
+
+ ///
+ /// UseSystemPowerShell - Execute PowerShell using an external process instead of the built-in PowerShell host. Should only be used when internal host is failing.
+ ///
+ [CliFlag("--use-system-powershell")]
+ public bool? UseSystemPowershell { get; set; }
+
+ ///
+ /// Do Not Show Progress - Do not show download progress percentages.
+ ///
+ [CliFlag("--no-progress")]
+ public bool? NoProgress { get; set; }
+
+ ///
+ /// Proxy Location - Explicit proxy location. Overrides the default proxy location of ''.
+ ///
+ [CliOption("--proxy", Format = OptionFormat.EqualsSeparated)]
+ public string? Proxy { get; set; }
+
+ ///
+ /// Proxy User Name - Explicit proxy user (optional). Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy user of ''.
+ ///
+ [CliOption("--proxy-user", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyUser { get; set; }
+
+ ///
+ /// Proxy Password - Explicit proxy password (optional) to be used with user name. Encrypted. Requires explicit proxy (`--proxy` or config setting) and user name (`--proxy-user` or config setting). Overrides the default proxy password.
+ ///
+ [CliOption("--proxy-password", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyPassword { get; set; }
+
+ ///
+ /// ProxyBypassList - Comma separated list of regex locations to bypass on proxy. Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy bypass list of ''.
+ ///
+ [CliOption("--proxy-bypass-list", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyBypassList { get; set; }
+
+ ///
+ /// Proxy Bypass On Local - Bypass proxy for local connections. Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy bypass on local setting of 'True'.
+ ///
+ [CliFlag("--proxy-bypass-on-local")]
+ public bool? ProxyBypassOnLocal { get; set; }
+
+ ///
+ /// Log File to output to in addition to regular loggers.
+ ///
+ [CliOption("--log-file", Format = OptionFormat.EqualsSeparated)]
+ public string? LogFile { get; set; }
+
+ ///
+ /// Ignore any HTTP caches that have previously been created when querying sources, and create new caches. Available in 2.1.0+
+ ///
+ [CliFlag("--ignore-http-cache")]
+ public bool? IgnoreHttpCache { get; set; }
+
+ ///
+ /// Source - Source location for install. Can use special 'windowsfeatures', 'ruby', 'cygwin', or 'python' sources. Defaults to configured sources.
+ ///
+ [CliOption("--source", ShortForm = "-s", Format = OptionFormat.EqualsSeparated)]
+ public string? Source { get; set; }
+
+ ///
+ /// Version - Specific version of a package to return.
+ ///
+ [CliOption("--version", Format = OptionFormat.EqualsSeparated)]
+ public string? Version { get; set; }
+
+ ///
+ /// User - used with authenticated feeds. Defaults to empty.
+ ///
+ [CliOption("--user", ShortForm = "-u", Format = OptionFormat.EqualsSeparated)]
+ public string? User { get; set; }
+
+ ///
+ /// Password - the user's password to the source. Defaults to empty.
+ ///
+ [CliOption("--password", ShortForm = "-p", Format = OptionFormat.EqualsSeparated)]
+ public string? Password { get; set; }
+
+ ///
+ /// Client certificate - PFX pathname for an x509 authenticated feeds. Defaults to empty.
+ ///
+ [CliOption("--cert", Format = OptionFormat.EqualsSeparated)]
+ public string? Cert { get; set; }
+
+ ///
+ /// Include Configured Sources - When using the '--source' option, this appends the sources that have been saved into the chocolatey.config file by 'source' command. Available in 2.3.0+
+ ///
+ [CliFlag("--include-configured-sources")]
+ public bool? IncludeConfiguredSources { get; set; }
+
+}
diff --git a/src/ModularPipelines.Chocolatey/Options/ChocoInstallOptions.cs b/src/ModularPipelines.Chocolatey/Options/ChocoInstallOptions.cs
new file mode 100644
index 0000000000..f3ab41425e
--- /dev/null
+++ b/src/ModularPipelines.Chocolatey/Options/ChocoInstallOptions.cs
@@ -0,0 +1,147 @@
+//
+// This file was generated by ModularPipelines.OptionsGenerator.
+// Do not edit this file manually.
+//
+
+#nullable enable
+
+using System.Diagnostics.CodeAnalysis;
+using ModularPipelines.Attributes;
+using ModularPipelines.Chocolatey.Options;
+
+namespace ModularPipelines.Chocolatey.Options;
+
+///
+/// NOTE: Any package name ending with .config is considered a
+///
+[ExcludeFromCodeCoverage]
+[CliSubCommand("install")]
+public record ChocoInstallOptions : ChocoOptions
+{
+ ///
+ /// Online - Open help for specified command in default browser application. This option only works when used in combination with the -?/--help/-h option. Available in 2.0.0+
+ ///
+ [CliFlag("--online")]
+ public bool? Online { get; set; }
+
+ ///
+ /// Debug - Show debug messaging.
+ ///
+ [CliFlag("--debug", ShortForm = "-d")]
+ public bool? Debug { get; set; }
+
+ ///
+ /// Verbose - Show verbose messaging. Very verbose messaging, avoid using under normal circumstances.
+ ///
+ [CliFlag("--verbose", ShortForm = "-v")]
+ public bool? Verbose { get; set; }
+
+ ///
+ /// Trace - Show trace messaging. Very, very verbose trace messaging. Avoid except when needing super low-level .NET Framework debugging.
+ ///
+ [CliFlag("--trace")]
+ public bool? Trace { get; set; }
+
+ ///
+ /// Force - force the behavior. Do not use force during normal operation - it subverts some of the smart behavior for commands.
+ ///
+ [CliFlag("--force", ShortForm = "-f")]
+ public bool? Force { get; set; }
+
+ ///
+ /// Include header names when --limit-output is used. Requires Chocolatey CLI 2.5.0+
+ ///
+ [CliFlag("--include-headers")]
+ public bool? IncludeHeaders { get; set; }
+
+ ///
+ /// UseSystemPowerShell - Execute PowerShell using an external process instead of the built-in PowerShell host. Should only be used when internal host is failing.
+ ///
+ [CliFlag("--use-system-powershell")]
+ public bool? UseSystemPowershell { get; set; }
+
+ ///
+ /// Do Not Show Progress - Do not show download progress percentages.
+ ///
+ [CliFlag("--no-progress")]
+ public bool? NoProgress { get; set; }
+
+ ///
+ /// Proxy Location - Explicit proxy location. Overrides the default proxy location of ''.
+ ///
+ [CliOption("--proxy", Format = OptionFormat.EqualsSeparated)]
+ public string? Proxy { get; set; }
+
+ ///
+ /// Proxy User Name - Explicit proxy user (optional). Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy user of ''.
+ ///
+ [CliOption("--proxy-user", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyUser { get; set; }
+
+ ///
+ /// Proxy Password - Explicit proxy password (optional) to be used with user name. Encrypted. Requires explicit proxy (`--proxy` or config setting) and user name (`--proxy-user` or config setting). Overrides the default proxy password.
+ ///
+ [CliOption("--proxy-password", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyPassword { get; set; }
+
+ ///
+ /// ProxyBypassList - Comma separated list of regex locations to bypass on proxy. Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy bypass list of ''.
+ ///
+ [CliOption("--proxy-bypass-list", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyBypassList { get; set; }
+
+ ///
+ /// Proxy Bypass On Local - Bypass proxy for local connections. Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy bypass on local setting of 'True'.
+ ///
+ [CliFlag("--proxy-bypass-on-local")]
+ public bool? ProxyBypassOnLocal { get; set; }
+
+ ///
+ /// Log File to output to in addition to regular loggers.
+ ///
+ [CliOption("--log-file", Format = OptionFormat.EqualsSeparated)]
+ public string? LogFile { get; set; }
+
+ ///
+ /// Ignore any HTTP caches that have previously been created when querying sources, and create new caches. Available in 2.1.0+
+ ///
+ [CliFlag("--ignore-http-cache")]
+ public bool? IgnoreHttpCache { get; set; }
+
+ ///
+ /// Source - The source to find the package(s) to install. Special sources include: ruby, cygwin, windowsfeatures, and python. To specify more than one source, pass it with a semi-colon separating the values (e.g. "'source1;source2'"). Defaults to default feeds.
+ ///
+ [CliOption("--source", ShortForm = "-s", Format = OptionFormat.EqualsSeparated)]
+ public string? Source { get; set; }
+
+ ///
+ /// Version - A specific version to install. Defaults to unspecified.
+ ///
+ [CliOption("--version", Format = OptionFormat.EqualsSeparated)]
+ public string? Version { get; set; }
+
+ ///
+ /// User - used with authenticated feeds. Defaults to empty.
+ ///
+ [CliOption("--user", ShortForm = "-u", Format = OptionFormat.EqualsSeparated)]
+ public string? User { get; set; }
+
+ ///
+ /// Password - the user's password to the source. Defaults to empty.
+ ///
+ [CliOption("--password", ShortForm = "-p", Format = OptionFormat.EqualsSeparated)]
+ public string? Password { get; set; }
+
+ ///
+ /// Client certificate - PFX pathname for an x509 authenticated feeds. Defaults to empty.
+ ///
+ [CliOption("--cert", Format = OptionFormat.EqualsSeparated)]
+ public string? Cert { get; set; }
+
+ ///
+ /// Include Configured Sources - When using the '--source' option, this appends the sources that have been saved into the chocolatey.config file by 'source' command. Available in 2.3.0+
+ ///
+ [CliFlag("--include-configured-sources")]
+ public bool? IncludeConfiguredSources { get; set; }
+
+}
diff --git a/src/ModularPipelines.Chocolatey/Options/ChocoLicenseOptions.cs b/src/ModularPipelines.Chocolatey/Options/ChocoLicenseOptions.cs
new file mode 100644
index 0000000000..670fcde455
--- /dev/null
+++ b/src/ModularPipelines.Chocolatey/Options/ChocoLicenseOptions.cs
@@ -0,0 +1,111 @@
+//
+// This file was generated by ModularPipelines.OptionsGenerator.
+// Do not edit this file manually.
+//
+
+#nullable enable
+
+using System.Diagnostics.CodeAnalysis;
+using ModularPipelines.Attributes;
+using ModularPipelines.Chocolatey.Options;
+
+namespace ModularPipelines.Chocolatey.Options;
+
+///
+/// NOTE: See scripting in the command reference (`choco --help`) for how to
+///
+[ExcludeFromCodeCoverage]
+[CliSubCommand("license")]
+public record ChocoLicenseOptions : ChocoOptions
+{
+ ///
+ /// Online - Open help for specified command in default browser application. This option only works when used in combination with the -?/--help/-h option. Available in 2.0.0+
+ ///
+ [CliFlag("--online")]
+ public bool? Online { get; set; }
+
+ ///
+ /// Debug - Show debug messaging.
+ ///
+ [CliFlag("--debug", ShortForm = "-d")]
+ public bool? Debug { get; set; }
+
+ ///
+ /// Verbose - Show verbose messaging. Very verbose messaging, avoid using under normal circumstances.
+ ///
+ [CliFlag("--verbose", ShortForm = "-v")]
+ public bool? Verbose { get; set; }
+
+ ///
+ /// Trace - Show trace messaging. Very, very verbose trace messaging. Avoid except when needing super low-level .NET Framework debugging.
+ ///
+ [CliFlag("--trace")]
+ public bool? Trace { get; set; }
+
+ ///
+ /// Force - force the behavior. Do not use force during normal operation - it subverts some of the smart behavior for commands.
+ ///
+ [CliFlag("--force", ShortForm = "-f")]
+ public bool? Force { get; set; }
+
+ ///
+ /// Include header names when --limit-output is used. Requires Chocolatey CLI 2.5.0+
+ ///
+ [CliFlag("--include-headers")]
+ public bool? IncludeHeaders { get; set; }
+
+ ///
+ /// UseSystemPowerShell - Execute PowerShell using an external process instead of the built-in PowerShell host. Should only be used when internal host is failing.
+ ///
+ [CliFlag("--use-system-powershell")]
+ public bool? UseSystemPowershell { get; set; }
+
+ ///
+ /// Do Not Show Progress - Do not show download progress percentages.
+ ///
+ [CliFlag("--no-progress")]
+ public bool? NoProgress { get; set; }
+
+ ///
+ /// Proxy Location - Explicit proxy location. Overrides the default proxy location of ''.
+ ///
+ [CliOption("--proxy", Format = OptionFormat.EqualsSeparated)]
+ public string? Proxy { get; set; }
+
+ ///
+ /// Proxy User Name - Explicit proxy user (optional). Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy user of ''.
+ ///
+ [CliOption("--proxy-user", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyUser { get; set; }
+
+ ///
+ /// Proxy Password - Explicit proxy password (optional) to be used with user name. Encrypted. Requires explicit proxy (`--proxy` or config setting) and user name (`--proxy-user` or config setting). Overrides the default proxy password.
+ ///
+ [CliOption("--proxy-password", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyPassword { get; set; }
+
+ ///
+ /// ProxyBypassList - Comma separated list of regex locations to bypass on proxy. Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy bypass list of ''.
+ ///
+ [CliOption("--proxy-bypass-list", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyBypassList { get; set; }
+
+ ///
+ /// Proxy Bypass On Local - Bypass proxy for local connections. Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy bypass on local setting of 'True'.
+ ///
+ [CliFlag("--proxy-bypass-on-local")]
+ public bool? ProxyBypassOnLocal { get; set; }
+
+ ///
+ /// Log File to output to in addition to regular loggers.
+ ///
+ [CliOption("--log-file", Format = OptionFormat.EqualsSeparated)]
+ public string? LogFile { get; set; }
+
+ ///
+ /// Ignore any HTTP caches that have previously been created when querying sources, and create new caches. Available in 2.1.0+
+ ///
+ [CliFlag("--ignore-http-cache")]
+ public bool? IgnoreHttpCache { get; set; }
+
+}
diff --git a/src/ModularPipelines.Chocolatey/Options/ChocoListOptions.cs b/src/ModularPipelines.Chocolatey/Options/ChocoListOptions.cs
new file mode 100644
index 0000000000..5e28161a7d
--- /dev/null
+++ b/src/ModularPipelines.Chocolatey/Options/ChocoListOptions.cs
@@ -0,0 +1,159 @@
+//
+// This file was generated by ModularPipelines.OptionsGenerator.
+// Do not edit this file manually.
+//
+
+#nullable enable
+
+using System.Diagnostics.CodeAnalysis;
+using ModularPipelines.Attributes;
+using ModularPipelines.Chocolatey.Options;
+
+namespace ModularPipelines.Chocolatey.Options;
+
+///
+/// NOTE: See scripting in the command reference (`choco --help`) for how to
+///
+[ExcludeFromCodeCoverage]
+[CliSubCommand("list")]
+public record ChocoListOptions : ChocoOptions
+{
+ ///
+ /// Online - Open help for specified command in default browser application. This option only works when used in combination with the -?/--help/-h option. Available in 2.0.0+
+ ///
+ [CliFlag("--online")]
+ public bool? Online { get; set; }
+
+ ///
+ /// Debug - Show debug messaging.
+ ///
+ [CliFlag("--debug", ShortForm = "-d")]
+ public bool? Debug { get; set; }
+
+ ///
+ /// Verbose - Show verbose messaging. Very verbose messaging, avoid using under normal circumstances.
+ ///
+ [CliFlag("--verbose", ShortForm = "-v")]
+ public bool? Verbose { get; set; }
+
+ ///
+ /// Trace - Show trace messaging. Very, very verbose trace messaging. Avoid except when needing super low-level .NET Framework debugging.
+ ///
+ [CliFlag("--trace")]
+ public bool? Trace { get; set; }
+
+ ///
+ /// Force - force the behavior. Do not use force during normal operation - it subverts some of the smart behavior for commands.
+ ///
+ [CliFlag("--force", ShortForm = "-f")]
+ public bool? Force { get; set; }
+
+ ///
+ /// Include header names when --limit-output is used. Requires Chocolatey CLI 2.5.0+
+ ///
+ [CliFlag("--include-headers")]
+ public bool? IncludeHeaders { get; set; }
+
+ ///
+ /// UseSystemPowerShell - Execute PowerShell using an external process instead of the built-in PowerShell host. Should only be used when internal host is failing.
+ ///
+ [CliFlag("--use-system-powershell")]
+ public bool? UseSystemPowershell { get; set; }
+
+ ///
+ /// Do Not Show Progress - Do not show download progress percentages.
+ ///
+ [CliFlag("--no-progress")]
+ public bool? NoProgress { get; set; }
+
+ ///
+ /// Proxy Location - Explicit proxy location. Overrides the default proxy location of ''.
+ ///
+ [CliOption("--proxy", Format = OptionFormat.EqualsSeparated)]
+ public string? Proxy { get; set; }
+
+ ///
+ /// Proxy User Name - Explicit proxy user (optional). Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy user of ''.
+ ///
+ [CliOption("--proxy-user", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyUser { get; set; }
+
+ ///
+ /// Proxy Password - Explicit proxy password (optional) to be used with user name. Encrypted. Requires explicit proxy (`--proxy` or config setting) and user name (`--proxy-user` or config setting). Overrides the default proxy password.
+ ///
+ [CliOption("--proxy-password", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyPassword { get; set; }
+
+ ///
+ /// ProxyBypassList - Comma separated list of regex locations to bypass on proxy. Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy bypass list of ''.
+ ///
+ [CliOption("--proxy-bypass-list", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyBypassList { get; set; }
+
+ ///
+ /// Proxy Bypass On Local - Bypass proxy for local connections. Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy bypass on local setting of 'True'.
+ ///
+ [CliFlag("--proxy-bypass-on-local")]
+ public bool? ProxyBypassOnLocal { get; set; }
+
+ ///
+ /// Log File to output to in addition to regular loggers.
+ ///
+ [CliOption("--log-file", Format = OptionFormat.EqualsSeparated)]
+ public string? LogFile { get; set; }
+
+ ///
+ /// Ignore any HTTP caches that have previously been created when querying sources, and create new caches. Available in 2.1.0+
+ ///
+ [CliFlag("--ignore-http-cache")]
+ public bool? IgnoreHttpCache { get; set; }
+
+ ///
+ /// Source - Name of alternative source to use, for example 'windowsfeatures', 'ruby', 'cygwin', or 'python'.
+ ///
+ [CliOption("--source", ShortForm = "-s", Format = OptionFormat.EqualsSeparated)]
+ public string? Source { get; set; }
+
+ ///
+ /// Version - Specific version of a package to return.
+ ///
+ [CliOption("--version", Format = OptionFormat.EqualsSeparated)]
+ public string? Version { get; set; }
+
+ ///
+ /// Page - the 'page' of results to return. Defaults to return all results.
+ ///
+ [CliOption("--page", Format = OptionFormat.EqualsSeparated)]
+ public string? Page { get; set; }
+
+ ///
+ /// Page Size - the amount of package results to return per page. Defaults to 25.
+ ///
+ [CliOption("--page-size", Format = OptionFormat.EqualsSeparated)]
+ public string? PageSize { get; set; }
+
+ ///
+ /// Exact - Only return packages with this exact name.
+ ///
+ [CliFlag("--exact", ShortForm = "-e")]
+ public bool? Exact { get; set; }
+
+ ///
+ /// ByIdOnly - Only return packages where the id contains the search filter.
+ ///
+ [CliFlag("--by-id-only")]
+ public bool? ByIdOnly { get; set; }
+
+ ///
+ /// IdStartsWith - Only return packages where the id starts with the search filter.
+ ///
+ [CliFlag("--id-starts-with")]
+ public bool? IdStartsWith { get; set; }
+
+ ///
+ /// Ignore Pinned - Ignore pinned packages. Defaults to false.
+ ///
+ [CliFlag("--ignore-pinned")]
+ public bool? IgnorePinned { get; set; }
+
+}
diff --git a/src/ModularPipelines.Chocolatey/Options/ChocoNewOptions.cs b/src/ModularPipelines.Chocolatey/Options/ChocoNewOptions.cs
new file mode 100644
index 0000000000..5e05440a76
--- /dev/null
+++ b/src/ModularPipelines.Chocolatey/Options/ChocoNewOptions.cs
@@ -0,0 +1,129 @@
+//
+// This file was generated by ModularPipelines.OptionsGenerator.
+// Do not edit this file manually.
+//
+
+#nullable enable
+
+using System.Diagnostics.CodeAnalysis;
+using ModularPipelines.Attributes;
+using ModularPipelines.Chocolatey.Options;
+
+namespace ModularPipelines.Chocolatey.Options;
+
+///
+/// packageversion
+///
+[ExcludeFromCodeCoverage]
+[CliSubCommand("new")]
+public record ChocoNewOptions : ChocoOptions
+{
+ ///
+ /// Online - Open help for specified command in default browser application. This option only works when used in combination with the -?/--help/-h option. Available in 2.0.0+
+ ///
+ [CliFlag("--online")]
+ public bool? Online { get; set; }
+
+ ///
+ /// Debug - Show debug messaging.
+ ///
+ [CliFlag("--debug", ShortForm = "-d")]
+ public bool? Debug { get; set; }
+
+ ///
+ /// Verbose - Show verbose messaging. Very verbose messaging, avoid using under normal circumstances.
+ ///
+ [CliFlag("--verbose", ShortForm = "-v")]
+ public bool? Verbose { get; set; }
+
+ ///
+ /// Trace - Show trace messaging. Very, very verbose trace messaging. Avoid except when needing super low-level .NET Framework debugging.
+ ///
+ [CliFlag("--trace")]
+ public bool? Trace { get; set; }
+
+ ///
+ /// Force - force the behavior. Do not use force during normal operation - it subverts some of the smart behavior for commands.
+ ///
+ [CliFlag("--force", ShortForm = "-f")]
+ public bool? Force { get; set; }
+
+ ///
+ /// Include header names when --limit-output is used. Requires Chocolatey CLI 2.5.0+
+ ///
+ [CliFlag("--include-headers")]
+ public bool? IncludeHeaders { get; set; }
+
+ ///
+ /// UseSystemPowerShell - Execute PowerShell using an external process instead of the built-in PowerShell host. Should only be used when internal host is failing.
+ ///
+ [CliFlag("--use-system-powershell")]
+ public bool? UseSystemPowershell { get; set; }
+
+ ///
+ /// Do Not Show Progress - Do not show download progress percentages.
+ ///
+ [CliFlag("--no-progress")]
+ public bool? NoProgress { get; set; }
+
+ ///
+ /// Proxy Location - Explicit proxy location. Overrides the default proxy location of ''.
+ ///
+ [CliOption("--proxy", Format = OptionFormat.EqualsSeparated)]
+ public string? Proxy { get; set; }
+
+ ///
+ /// Proxy User Name - Explicit proxy user (optional). Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy user of ''.
+ ///
+ [CliOption("--proxy-user", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyUser { get; set; }
+
+ ///
+ /// Proxy Password - Explicit proxy password (optional) to be used with user name. Encrypted. Requires explicit proxy (`--proxy` or config setting) and user name (`--proxy-user` or config setting). Overrides the default proxy password.
+ ///
+ [CliOption("--proxy-password", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyPassword { get; set; }
+
+ ///
+ /// ProxyBypassList - Comma separated list of regex locations to bypass on proxy. Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy bypass list of ''.
+ ///
+ [CliOption("--proxy-bypass-list", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyBypassList { get; set; }
+
+ ///
+ /// Proxy Bypass On Local - Bypass proxy for local connections. Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy bypass on local setting of 'True'.
+ ///
+ [CliFlag("--proxy-bypass-on-local")]
+ public bool? ProxyBypassOnLocal { get; set; }
+
+ ///
+ /// Log File to output to in addition to regular loggers.
+ ///
+ [CliOption("--log-file", Format = OptionFormat.EqualsSeparated)]
+ public string? LogFile { get; set; }
+
+ ///
+ /// Ignore any HTTP caches that have previously been created when querying sources, and create new caches. Available in 2.1.0+
+ ///
+ [CliFlag("--ignore-http-cache")]
+ public bool? IgnoreHttpCache { get; set; }
+
+ ///
+ /// Name [Required]- the name of the package. Can be passed as first parameter without "--name=".
+ ///
+ [CliOption("--name", ShortForm = "-n", Format = OptionFormat.EqualsSeparated)]
+ public string? Name { get; set; }
+
+ ///
+ /// Version - the version of the package. Can also be passed as the property PackageVersion=somevalue
+ ///
+ [CliOption("--version", Format = OptionFormat.EqualsSeparated)]
+ public string? Version { get; set; }
+
+ ///
+ /// Maintainer - the name of the maintainer. Can also be passed as the property MaintainerName=somevalue
+ ///
+ [CliOption("--maintainer", Format = OptionFormat.EqualsSeparated)]
+ public string? Maintainer { get; set; }
+
+}
diff --git a/src/ModularPipelines.Chocolatey/Options/ChocoOptions.Generated.cs b/src/ModularPipelines.Chocolatey/Options/ChocoOptions.Generated.cs
new file mode 100644
index 0000000000..43db858b42
--- /dev/null
+++ b/src/ModularPipelines.Chocolatey/Options/ChocoOptions.Generated.cs
@@ -0,0 +1,21 @@
+//
+// This file was generated by ModularPipelines.OptionsGenerator.
+// Do not edit this file manually.
+//
+
+#nullable enable
+
+using System.Diagnostics.CodeAnalysis;
+using ModularPipelines.Attributes;
+using ModularPipelines.Options;
+
+namespace ModularPipelines.Chocolatey.Options;
+
+///
+/// Base options class for choco CLI commands.
+/// Contains global flags that apply to all commands.
+///
+[ExcludeFromCodeCoverage]
+public abstract record ChocoOptions() : CommandLineToolOptions("choco")
+{
+}
diff --git a/src/ModularPipelines.Chocolatey/Options/ChocoOptions.cs b/src/ModularPipelines.Chocolatey/Options/ChocoOptions.cs
deleted file mode 100644
index 55a1a085f2..0000000000
--- a/src/ModularPipelines.Chocolatey/Options/ChocoOptions.cs
+++ /dev/null
@@ -1,84 +0,0 @@
-using System.Diagnostics.CodeAnalysis;
-using ModularPipelines.Attributes;
-using ModularPipelines.Options;
-
-namespace ModularPipelines.Chocolatey.Options;
-
-[ExcludeFromCodeCoverage]
-public record ChocoOptions() : CommandLineToolOptions("choco")
-{
- [CliFlag("--help")]
- public virtual bool? Help { get; set; }
-
- [CliFlag("--online")]
- public virtual bool? Online { get; set; }
-
- [CliFlag("--debug")]
- public virtual bool? Debug { get; set; }
-
- [CliFlag("--verbose")]
- public virtual bool? Verbose { get; set; }
-
- [CliFlag("--trace")]
- public virtual bool? Trace { get; set; }
-
- [CliFlag("--no-color")]
- public virtual bool? NoColor { get; set; }
-
- [CliFlag("--accept-license")]
- public virtual bool? AcceptLicense { get; set; }
-
- [CliFlag("--confirm")]
- public virtual bool? Confirm { get; set; } = true;
-
- [CliFlag("--force")]
- public virtual bool? Force { get; set; }
-
- [CliFlag("--what-if")]
- public virtual bool? WhatIf { get; set; }
-
- [CliFlag("--limit-output")]
- public virtual bool? LimitOutput { get; set; }
-
- [CliOption("--execution-timeout")]
- public virtual string? ExecutionTimeout { get; set; }
-
- [CliOption("--cache-location")]
- public virtual string? CacheLocation { get; set; }
-
- [CliFlag("--allow-unofficial-build")]
- public virtual bool? AllowUnofficialBuild { get; set; }
-
- [CliFlag("--fail-on-error-output")]
- public virtual bool? FailOnErrorOutput { get; set; }
-
- [CliFlag("--use-system-powershell")]
- public virtual bool? UseSystemPowershell { get; set; }
-
- [CliFlag("--no-progress")]
- public virtual bool? NoProgress { get; set; }
-
- [CliOption("--proxy")]
- public virtual string? Proxy { get; set; }
-
- [CliOption("--proxy-user")]
- public virtual string? ProxyUser { get; set; }
-
- [CliOption("--proxy-password")]
- public virtual string? ProxyPassword { get; set; }
-
- [CliOption("--proxy-bypass-list")]
- public virtual string? ProxyBypassList { get; set; }
-
- [CliFlag("--proxy-bypass-on-local")]
- public virtual bool? ProxyBypassOnLocal { get; set; }
-
- [CliOption("--log-file")]
- public virtual string? LogFile { get; set; }
-
- [CliFlag("--skip-compatibility-checks")]
- public virtual bool? SkipCompatibilityChecks { get; set; }
-
- [CliFlag("--ignore-http-cache")]
- public virtual bool? IgnoreHttpCache { get; set; }
-}
\ No newline at end of file
diff --git a/src/ModularPipelines.Chocolatey/Options/ChocoOutdatedOptions.cs b/src/ModularPipelines.Chocolatey/Options/ChocoOutdatedOptions.cs
new file mode 100644
index 0000000000..db5bf0cca1
--- /dev/null
+++ b/src/ModularPipelines.Chocolatey/Options/ChocoOutdatedOptions.cs
@@ -0,0 +1,153 @@
+//
+// This file was generated by ModularPipelines.OptionsGenerator.
+// Do not edit this file manually.
+//
+
+#nullable enable
+
+using System.Diagnostics.CodeAnalysis;
+using ModularPipelines.Attributes;
+using ModularPipelines.Chocolatey.Options;
+
+namespace ModularPipelines.Chocolatey.Options;
+
+///
+/// If you use `--source=https://somewhere/out/there`, it is
+///
+[ExcludeFromCodeCoverage]
+[CliSubCommand("outdated")]
+public record ChocoOutdatedOptions : ChocoOptions
+{
+ ///
+ /// Online - Open help for specified command in default browser application. This option only works when used in combination with the -?/--help/-h option. Available in 2.0.0+
+ ///
+ [CliFlag("--online")]
+ public bool? Online { get; set; }
+
+ ///
+ /// Debug - Show debug messaging.
+ ///
+ [CliFlag("--debug", ShortForm = "-d")]
+ public bool? Debug { get; set; }
+
+ ///
+ /// Verbose - Show verbose messaging. Very verbose messaging, avoid using under normal circumstances.
+ ///
+ [CliFlag("--verbose", ShortForm = "-v")]
+ public bool? Verbose { get; set; }
+
+ ///
+ /// Trace - Show trace messaging. Very, very verbose trace messaging. Avoid except when needing super low-level .NET Framework debugging.
+ ///
+ [CliFlag("--trace")]
+ public bool? Trace { get; set; }
+
+ ///
+ /// Force - force the behavior. Do not use force during normal operation - it subverts some of the smart behavior for commands.
+ ///
+ [CliFlag("--force", ShortForm = "-f")]
+ public bool? Force { get; set; }
+
+ ///
+ /// Include header names when --limit-output is used. Requires Chocolatey CLI 2.5.0+
+ ///
+ [CliFlag("--include-headers")]
+ public bool? IncludeHeaders { get; set; }
+
+ ///
+ /// UseSystemPowerShell - Execute PowerShell using an external process instead of the built-in PowerShell host. Should only be used when internal host is failing.
+ ///
+ [CliFlag("--use-system-powershell")]
+ public bool? UseSystemPowershell { get; set; }
+
+ ///
+ /// Do Not Show Progress - Do not show download progress percentages.
+ ///
+ [CliFlag("--no-progress")]
+ public bool? NoProgress { get; set; }
+
+ ///
+ /// Proxy Location - Explicit proxy location. Overrides the default proxy location of ''.
+ ///
+ [CliOption("--proxy", Format = OptionFormat.EqualsSeparated)]
+ public string? Proxy { get; set; }
+
+ ///
+ /// Proxy User Name - Explicit proxy user (optional). Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy user of ''.
+ ///
+ [CliOption("--proxy-user", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyUser { get; set; }
+
+ ///
+ /// Proxy Password - Explicit proxy password (optional) to be used with user name. Encrypted. Requires explicit proxy (`--proxy` or config setting) and user name (`--proxy-user` or config setting). Overrides the default proxy password.
+ ///
+ [CliOption("--proxy-password", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyPassword { get; set; }
+
+ ///
+ /// ProxyBypassList - Comma separated list of regex locations to bypass on proxy. Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy bypass list of ''.
+ ///
+ [CliOption("--proxy-bypass-list", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyBypassList { get; set; }
+
+ ///
+ /// Proxy Bypass On Local - Bypass proxy for local connections. Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy bypass on local setting of 'True'.
+ ///
+ [CliFlag("--proxy-bypass-on-local")]
+ public bool? ProxyBypassOnLocal { get; set; }
+
+ ///
+ /// Log File to output to in addition to regular loggers.
+ ///
+ [CliOption("--log-file", Format = OptionFormat.EqualsSeparated)]
+ public string? LogFile { get; set; }
+
+ ///
+ /// Ignore any HTTP caches that have previously been created when querying sources, and create new caches. Available in 2.1.0+
+ ///
+ [CliFlag("--ignore-http-cache")]
+ public bool? IgnoreHttpCache { get; set; }
+
+ ///
+ /// Source - The source to find the package(s) to install. Special sources include: ruby, cygwin, windowsfeatures, and python. To specify more than one source, pass it with a semi-colon separating the values (e.g. "'source1;source2'"). Defaults to default feeds.
+ ///
+ [CliOption("--source", ShortForm = "-s", Format = OptionFormat.EqualsSeparated)]
+ public string? Source { get; set; }
+
+ ///
+ /// User - used with authenticated feeds. Defaults to empty.
+ ///
+ [CliOption("--user", ShortForm = "-u", Format = OptionFormat.EqualsSeparated)]
+ public string? User { get; set; }
+
+ ///
+ /// Password - the user's password to the source. Defaults to empty.
+ ///
+ [CliOption("--password", ShortForm = "-p", Format = OptionFormat.EqualsSeparated)]
+ public string? Password { get; set; }
+
+ ///
+ /// Client certificate - PFX pathname for an x509 authenticated feeds. Defaults to empty.
+ ///
+ [CliOption("--cert", Format = OptionFormat.EqualsSeparated)]
+ public string? Cert { get; set; }
+
+ ///
+ /// Ignore Pinned - Ignore pinned packages. Defaults to false.
+ ///
+ [CliFlag("--ignore-pinned")]
+ public bool? IgnorePinned { get; set; }
+
+ ///
+ /// Ignore Unfound Packages - Ignore packages that are not found on the sources used (or the defaults). Overrides the default feature 'ignoreUnfoundPackagesOnUpgradeOutdated' set to 'False'.
+ ///
+ [CliFlag("--ignore-unfound")]
+ public bool? IgnoreUnfound { get; set; }
+
+ ///
+ /// Include Configured Sources - When using the '--source' option, this appends the sources that have been saved into the chocolatey.config file by 'source' command. Available in 2.3.0+
+ ///
+ [CliFlag("--include-configured-sources")]
+ public bool? IncludeConfiguredSources { get; set; }
+
+}
diff --git a/src/ModularPipelines.Chocolatey/Options/ChocoPackOptions.cs b/src/ModularPipelines.Chocolatey/Options/ChocoPackOptions.cs
new file mode 100644
index 0000000000..5a29ca8587
--- /dev/null
+++ b/src/ModularPipelines.Chocolatey/Options/ChocoPackOptions.cs
@@ -0,0 +1,117 @@
+//
+// This file was generated by ModularPipelines.OptionsGenerator.
+// Do not edit this file manually.
+//
+
+#nullable enable
+
+using System.Diagnostics.CodeAnalysis;
+using ModularPipelines.Attributes;
+using ModularPipelines.Chocolatey.Options;
+
+namespace ModularPipelines.Chocolatey.Options;
+
+///
+/// NOTE: See scripting in the command reference (`choco --help`) for how to
+///
+[ExcludeFromCodeCoverage]
+[CliSubCommand("pack")]
+public record ChocoPackOptions : ChocoOptions
+{
+ ///
+ /// Online - Open help for specified command in default browser application. This option only works when used in combination with the -?/--help/-h option. Available in 2.0.0+
+ ///
+ [CliFlag("--online")]
+ public bool? Online { get; set; }
+
+ ///
+ /// Debug - Show debug messaging.
+ ///
+ [CliFlag("--debug", ShortForm = "-d")]
+ public bool? Debug { get; set; }
+
+ ///
+ /// Verbose - Show verbose messaging. Very verbose messaging, avoid using under normal circumstances.
+ ///
+ [CliFlag("--verbose", ShortForm = "-v")]
+ public bool? Verbose { get; set; }
+
+ ///
+ /// Trace - Show trace messaging. Very, very verbose trace messaging. Avoid except when needing super low-level .NET Framework debugging.
+ ///
+ [CliFlag("--trace")]
+ public bool? Trace { get; set; }
+
+ ///
+ /// Force - force the behavior. Do not use force during normal operation - it subverts some of the smart behavior for commands.
+ ///
+ [CliFlag("--force", ShortForm = "-f")]
+ public bool? Force { get; set; }
+
+ ///
+ /// Include header names when --limit-output is used. Requires Chocolatey CLI 2.5.0+
+ ///
+ [CliFlag("--include-headers")]
+ public bool? IncludeHeaders { get; set; }
+
+ ///
+ /// UseSystemPowerShell - Execute PowerShell using an external process instead of the built-in PowerShell host. Should only be used when internal host is failing.
+ ///
+ [CliFlag("--use-system-powershell")]
+ public bool? UseSystemPowershell { get; set; }
+
+ ///
+ /// Do Not Show Progress - Do not show download progress percentages.
+ ///
+ [CliFlag("--no-progress")]
+ public bool? NoProgress { get; set; }
+
+ ///
+ /// Proxy Location - Explicit proxy location. Overrides the default proxy location of ''.
+ ///
+ [CliOption("--proxy", Format = OptionFormat.EqualsSeparated)]
+ public string? Proxy { get; set; }
+
+ ///
+ /// Proxy User Name - Explicit proxy user (optional). Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy user of ''.
+ ///
+ [CliOption("--proxy-user", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyUser { get; set; }
+
+ ///
+ /// Proxy Password - Explicit proxy password (optional) to be used with user name. Encrypted. Requires explicit proxy (`--proxy` or config setting) and user name (`--proxy-user` or config setting). Overrides the default proxy password.
+ ///
+ [CliOption("--proxy-password", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyPassword { get; set; }
+
+ ///
+ /// ProxyBypassList - Comma separated list of regex locations to bypass on proxy. Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy bypass list of ''.
+ ///
+ [CliOption("--proxy-bypass-list", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyBypassList { get; set; }
+
+ ///
+ /// Proxy Bypass On Local - Bypass proxy for local connections. Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy bypass on local setting of 'True'.
+ ///
+ [CliFlag("--proxy-bypass-on-local")]
+ public bool? ProxyBypassOnLocal { get; set; }
+
+ ///
+ /// Log File to output to in addition to regular loggers.
+ ///
+ [CliOption("--log-file", Format = OptionFormat.EqualsSeparated)]
+ public string? LogFile { get; set; }
+
+ ///
+ /// Ignore any HTTP caches that have previously been created when querying sources, and create new caches. Available in 2.1.0+
+ ///
+ [CliFlag("--ignore-http-cache")]
+ public bool? IgnoreHttpCache { get; set; }
+
+ ///
+ /// Version - The version you would like to insert into the package.
+ ///
+ [CliOption("--version", Format = OptionFormat.EqualsSeparated)]
+ public string? Version { get; set; }
+
+}
diff --git a/src/ModularPipelines.Chocolatey/Options/ChocoPinOptions.cs b/src/ModularPipelines.Chocolatey/Options/ChocoPinOptions.cs
new file mode 100644
index 0000000000..bf490e26cd
--- /dev/null
+++ b/src/ModularPipelines.Chocolatey/Options/ChocoPinOptions.cs
@@ -0,0 +1,123 @@
+//
+// This file was generated by ModularPipelines.OptionsGenerator.
+// Do not edit this file manually.
+//
+
+#nullable enable
+
+using System.Diagnostics.CodeAnalysis;
+using ModularPipelines.Attributes;
+using ModularPipelines.Chocolatey.Options;
+
+namespace ModularPipelines.Chocolatey.Options;
+
+///
+/// NOTE: See scripting in the command reference (`choco --help`) for how to
+///
+[ExcludeFromCodeCoverage]
+[CliSubCommand("pin")]
+public record ChocoPinOptions : ChocoOptions
+{
+ ///
+ /// Online - Open help for specified command in default browser application. This option only works when used in combination with the -?/--help/-h option. Available in 2.0.0+
+ ///
+ [CliFlag("--online")]
+ public bool? Online { get; set; }
+
+ ///
+ /// Debug - Show debug messaging.
+ ///
+ [CliFlag("--debug", ShortForm = "-d")]
+ public bool? Debug { get; set; }
+
+ ///
+ /// Verbose - Show verbose messaging. Very verbose messaging, avoid using under normal circumstances.
+ ///
+ [CliFlag("--verbose", ShortForm = "-v")]
+ public bool? Verbose { get; set; }
+
+ ///
+ /// Trace - Show trace messaging. Very, very verbose trace messaging. Avoid except when needing super low-level .NET Framework debugging.
+ ///
+ [CliFlag("--trace")]
+ public bool? Trace { get; set; }
+
+ ///
+ /// Force - force the behavior. Do not use force during normal operation - it subverts some of the smart behavior for commands.
+ ///
+ [CliFlag("--force", ShortForm = "-f")]
+ public bool? Force { get; set; }
+
+ ///
+ /// Include header names when --limit-output is used. Requires Chocolatey CLI 2.5.0+
+ ///
+ [CliFlag("--include-headers")]
+ public bool? IncludeHeaders { get; set; }
+
+ ///
+ /// UseSystemPowerShell - Execute PowerShell using an external process instead of the built-in PowerShell host. Should only be used when internal host is failing.
+ ///
+ [CliFlag("--use-system-powershell")]
+ public bool? UseSystemPowershell { get; set; }
+
+ ///
+ /// Do Not Show Progress - Do not show download progress percentages.
+ ///
+ [CliFlag("--no-progress")]
+ public bool? NoProgress { get; set; }
+
+ ///
+ /// Proxy Location - Explicit proxy location. Overrides the default proxy location of ''.
+ ///
+ [CliOption("--proxy", Format = OptionFormat.EqualsSeparated)]
+ public string? Proxy { get; set; }
+
+ ///
+ /// Proxy User Name - Explicit proxy user (optional). Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy user of ''.
+ ///
+ [CliOption("--proxy-user", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyUser { get; set; }
+
+ ///
+ /// Proxy Password - Explicit proxy password (optional) to be used with user name. Encrypted. Requires explicit proxy (`--proxy` or config setting) and user name (`--proxy-user` or config setting). Overrides the default proxy password.
+ ///
+ [CliOption("--proxy-password", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyPassword { get; set; }
+
+ ///
+ /// ProxyBypassList - Comma separated list of regex locations to bypass on proxy. Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy bypass list of ''.
+ ///
+ [CliOption("--proxy-bypass-list", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyBypassList { get; set; }
+
+ ///
+ /// Proxy Bypass On Local - Bypass proxy for local connections. Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy bypass on local setting of 'True'.
+ ///
+ [CliFlag("--proxy-bypass-on-local")]
+ public bool? ProxyBypassOnLocal { get; set; }
+
+ ///
+ /// Log File to output to in addition to regular loggers.
+ ///
+ [CliOption("--log-file", Format = OptionFormat.EqualsSeparated)]
+ public string? LogFile { get; set; }
+
+ ///
+ /// Ignore any HTTP caches that have previously been created when querying sources, and create new caches. Available in 2.1.0+
+ ///
+ [CliFlag("--ignore-http-cache")]
+ public bool? IgnoreHttpCache { get; set; }
+
+ ///
+ /// Name - the name of the package. Required with some actions. Defaults to empty.
+ ///
+ [CliOption("--name", ShortForm = "-n", Format = OptionFormat.EqualsSeparated)]
+ public string? Name { get; set; }
+
+ ///
+ /// Version - Used when multiple versions of a package are installed. Defaults to empty.
+ ///
+ [CliOption("--version", Format = OptionFormat.EqualsSeparated)]
+ public string? Version { get; set; }
+
+}
diff --git a/src/ModularPipelines.Chocolatey/Options/ChocoPushOptions.cs b/src/ModularPipelines.Chocolatey/Options/ChocoPushOptions.cs
new file mode 100644
index 0000000000..16694215cb
--- /dev/null
+++ b/src/ModularPipelines.Chocolatey/Options/ChocoPushOptions.cs
@@ -0,0 +1,117 @@
+//
+// This file was generated by ModularPipelines.OptionsGenerator.
+// Do not edit this file manually.
+//
+
+#nullable enable
+
+using System.Diagnostics.CodeAnalysis;
+using ModularPipelines.Attributes;
+using ModularPipelines.Chocolatey.Options;
+
+namespace ModularPipelines.Chocolatey.Options;
+
+///
+/// NOTE: If there is more than one nupkg file in the folder, the command
+///
+[ExcludeFromCodeCoverage]
+[CliSubCommand("push")]
+public record ChocoPushOptions : ChocoOptions
+{
+ ///
+ /// Online - Open help for specified command in default browser application. This option only works when used in combination with the -?/--help/-h option. Available in 2.0.0+
+ ///
+ [CliFlag("--online")]
+ public bool? Online { get; set; }
+
+ ///
+ /// Debug - Show debug messaging.
+ ///
+ [CliFlag("--debug", ShortForm = "-d")]
+ public bool? Debug { get; set; }
+
+ ///
+ /// Verbose - Show verbose messaging. Very verbose messaging, avoid using under normal circumstances.
+ ///
+ [CliFlag("--verbose", ShortForm = "-v")]
+ public bool? Verbose { get; set; }
+
+ ///
+ /// Trace - Show trace messaging. Very, very verbose trace messaging. Avoid except when needing super low-level .NET Framework debugging.
+ ///
+ [CliFlag("--trace")]
+ public bool? Trace { get; set; }
+
+ ///
+ /// Force - force the behavior. Do not use force during normal operation - it subverts some of the smart behavior for commands.
+ ///
+ [CliFlag("--force", ShortForm = "-f")]
+ public bool? Force { get; set; }
+
+ ///
+ /// Include header names when --limit-output is used. Requires Chocolatey CLI 2.5.0+
+ ///
+ [CliFlag("--include-headers")]
+ public bool? IncludeHeaders { get; set; }
+
+ ///
+ /// UseSystemPowerShell - Execute PowerShell using an external process instead of the built-in PowerShell host. Should only be used when internal host is failing.
+ ///
+ [CliFlag("--use-system-powershell")]
+ public bool? UseSystemPowershell { get; set; }
+
+ ///
+ /// Do Not Show Progress - Do not show download progress percentages.
+ ///
+ [CliFlag("--no-progress")]
+ public bool? NoProgress { get; set; }
+
+ ///
+ /// Proxy Location - Explicit proxy location. Overrides the default proxy location of ''.
+ ///
+ [CliOption("--proxy", Format = OptionFormat.EqualsSeparated)]
+ public string? Proxy { get; set; }
+
+ ///
+ /// Proxy User Name - Explicit proxy user (optional). Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy user of ''.
+ ///
+ [CliOption("--proxy-user", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyUser { get; set; }
+
+ ///
+ /// Proxy Password - Explicit proxy password (optional) to be used with user name. Encrypted. Requires explicit proxy (`--proxy` or config setting) and user name (`--proxy-user` or config setting). Overrides the default proxy password.
+ ///
+ [CliOption("--proxy-password", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyPassword { get; set; }
+
+ ///
+ /// ProxyBypassList - Comma separated list of regex locations to bypass on proxy. Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy bypass list of ''.
+ ///
+ [CliOption("--proxy-bypass-list", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyBypassList { get; set; }
+
+ ///
+ /// Proxy Bypass On Local - Bypass proxy for local connections. Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy bypass on local setting of 'True'.
+ ///
+ [CliFlag("--proxy-bypass-on-local")]
+ public bool? ProxyBypassOnLocal { get; set; }
+
+ ///
+ /// Log File to output to in addition to regular loggers.
+ ///
+ [CliOption("--log-file", Format = OptionFormat.EqualsSeparated)]
+ public string? LogFile { get; set; }
+
+ ///
+ /// Ignore any HTTP caches that have previously been created when querying sources, and create new caches. Available in 2.1.0+
+ ///
+ [CliFlag("--ignore-http-cache")]
+ public bool? IgnoreHttpCache { get; set; }
+
+ ///
+ /// Source - The source we are pushing the package to. Use https://pus- h.chocolatey.org/ to push to community feed.
+ ///
+ [CliOption("--source", ShortForm = "-s", Format = OptionFormat.EqualsSeparated)]
+ public string? Source { get; set; }
+
+}
diff --git a/src/ModularPipelines.Chocolatey/Options/ChocoRuleOptions.cs b/src/ModularPipelines.Chocolatey/Options/ChocoRuleOptions.cs
new file mode 100644
index 0000000000..cac8f47597
--- /dev/null
+++ b/src/ModularPipelines.Chocolatey/Options/ChocoRuleOptions.cs
@@ -0,0 +1,117 @@
+//
+// This file was generated by ModularPipelines.OptionsGenerator.
+// Do not edit this file manually.
+//
+
+#nullable enable
+
+using System.Diagnostics.CodeAnalysis;
+using ModularPipelines.Attributes;
+using ModularPipelines.Chocolatey.Options;
+
+namespace ModularPipelines.Chocolatey.Options;
+
+///
+/// NOTE: See scripting in the command reference (`choco --help`) for how to
+///
+[ExcludeFromCodeCoverage]
+[CliSubCommand("rule")]
+public record ChocoRuleOptions : ChocoOptions
+{
+ ///
+ /// Online - Open help for specified command in default browser application. This option only works when used in combination with the -?/--help/-h option. Available in 2.0.0+
+ ///
+ [CliFlag("--online")]
+ public bool? Online { get; set; }
+
+ ///
+ /// Debug - Show debug messaging.
+ ///
+ [CliFlag("--debug", ShortForm = "-d")]
+ public bool? Debug { get; set; }
+
+ ///
+ /// Verbose - Show verbose messaging. Very verbose messaging, avoid using under normal circumstances.
+ ///
+ [CliFlag("--verbose", ShortForm = "-v")]
+ public bool? Verbose { get; set; }
+
+ ///
+ /// Trace - Show trace messaging. Very, very verbose trace messaging. Avoid except when needing super low-level .NET Framework debugging.
+ ///
+ [CliFlag("--trace")]
+ public bool? Trace { get; set; }
+
+ ///
+ /// Force - force the behavior. Do not use force during normal operation - it subverts some of the smart behavior for commands.
+ ///
+ [CliFlag("--force", ShortForm = "-f")]
+ public bool? Force { get; set; }
+
+ ///
+ /// Include header names when --limit-output is used. Requires Chocolatey CLI 2.5.0+
+ ///
+ [CliFlag("--include-headers")]
+ public bool? IncludeHeaders { get; set; }
+
+ ///
+ /// UseSystemPowerShell - Execute PowerShell using an external process instead of the built-in PowerShell host. Should only be used when internal host is failing.
+ ///
+ [CliFlag("--use-system-powershell")]
+ public bool? UseSystemPowershell { get; set; }
+
+ ///
+ /// Do Not Show Progress - Do not show download progress percentages.
+ ///
+ [CliFlag("--no-progress")]
+ public bool? NoProgress { get; set; }
+
+ ///
+ /// Proxy Location - Explicit proxy location. Overrides the default proxy location of ''.
+ ///
+ [CliOption("--proxy", Format = OptionFormat.EqualsSeparated)]
+ public string? Proxy { get; set; }
+
+ ///
+ /// Proxy User Name - Explicit proxy user (optional). Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy user of ''.
+ ///
+ [CliOption("--proxy-user", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyUser { get; set; }
+
+ ///
+ /// Proxy Password - Explicit proxy password (optional) to be used with user name. Encrypted. Requires explicit proxy (`--proxy` or config setting) and user name (`--proxy-user` or config setting). Overrides the default proxy password.
+ ///
+ [CliOption("--proxy-password", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyPassword { get; set; }
+
+ ///
+ /// ProxyBypassList - Comma separated list of regex locations to bypass on proxy. Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy bypass list of ''.
+ ///
+ [CliOption("--proxy-bypass-list", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyBypassList { get; set; }
+
+ ///
+ /// Proxy Bypass On Local - Bypass proxy for local connections. Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy bypass on local setting of 'True'.
+ ///
+ [CliFlag("--proxy-bypass-on-local")]
+ public bool? ProxyBypassOnLocal { get; set; }
+
+ ///
+ /// Log File to output to in addition to regular loggers.
+ ///
+ [CliOption("--log-file", Format = OptionFormat.EqualsSeparated)]
+ public string? LogFile { get; set; }
+
+ ///
+ /// Ignore any HTTP caches that have previously been created when querying sources, and create new caches. Available in 2.1.0+
+ ///
+ [CliFlag("--ignore-http-cache")]
+ public bool? IgnoreHttpCache { get; set; }
+
+ ///
+ /// Name - the name of the rule to show more details about. Required with actions other than list. Defaults to empty.
+ ///
+ [CliOption("--name", ShortForm = "-n", Format = OptionFormat.EqualsSeparated)]
+ public string? Name { get; set; }
+
+}
diff --git a/src/ModularPipelines.Chocolatey/Options/ChocoSearchOptions.cs b/src/ModularPipelines.Chocolatey/Options/ChocoSearchOptions.cs
new file mode 100644
index 0000000000..cde0b39327
--- /dev/null
+++ b/src/ModularPipelines.Chocolatey/Options/ChocoSearchOptions.cs
@@ -0,0 +1,201 @@
+//
+// This file was generated by ModularPipelines.OptionsGenerator.
+// Do not edit this file manually.
+//
+
+#nullable enable
+
+using System.Diagnostics.CodeAnalysis;
+using ModularPipelines.Attributes;
+using ModularPipelines.Chocolatey.Options;
+
+namespace ModularPipelines.Chocolatey.Options;
+
+///
+/// NOTE: See scripting in the command reference (`choco --help`) for how to
+///
+[ExcludeFromCodeCoverage]
+[CliSubCommand("search")]
+public record ChocoSearchOptions : ChocoOptions
+{
+ ///
+ /// Online - Open help for specified command in default browser application. This option only works when used in combination with the -?/--help/-h option. Available in 2.0.0+
+ ///
+ [CliFlag("--online")]
+ public bool? Online { get; set; }
+
+ ///
+ /// Debug - Show debug messaging.
+ ///
+ [CliFlag("--debug", ShortForm = "-d")]
+ public bool? Debug { get; set; }
+
+ ///
+ /// Verbose - Show verbose messaging. Very verbose messaging, avoid using under normal circumstances.
+ ///
+ [CliFlag("--verbose", ShortForm = "-v")]
+ public bool? Verbose { get; set; }
+
+ ///
+ /// Trace - Show trace messaging. Very, very verbose trace messaging. Avoid except when needing super low-level .NET Framework debugging.
+ ///
+ [CliFlag("--trace")]
+ public bool? Trace { get; set; }
+
+ ///
+ /// Force - force the behavior. Do not use force during normal operation - it subverts some of the smart behavior for commands.
+ ///
+ [CliFlag("--force", ShortForm = "-f")]
+ public bool? Force { get; set; }
+
+ ///
+ /// Include header names when --limit-output is used. Requires Chocolatey CLI 2.5.0+
+ ///
+ [CliFlag("--include-headers")]
+ public bool? IncludeHeaders { get; set; }
+
+ ///
+ /// UseSystemPowerShell - Execute PowerShell using an external process instead of the built-in PowerShell host. Should only be used when internal host is failing.
+ ///
+ [CliFlag("--use-system-powershell")]
+ public bool? UseSystemPowershell { get; set; }
+
+ ///
+ /// Do Not Show Progress - Do not show download progress percentages.
+ ///
+ [CliFlag("--no-progress")]
+ public bool? NoProgress { get; set; }
+
+ ///
+ /// Proxy Location - Explicit proxy location. Overrides the default proxy location of ''.
+ ///
+ [CliOption("--proxy", Format = OptionFormat.EqualsSeparated)]
+ public string? Proxy { get; set; }
+
+ ///
+ /// Proxy User Name - Explicit proxy user (optional). Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy user of ''.
+ ///
+ [CliOption("--proxy-user", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyUser { get; set; }
+
+ ///
+ /// Proxy Password - Explicit proxy password (optional) to be used with user name. Encrypted. Requires explicit proxy (`--proxy` or config setting) and user name (`--proxy-user` or config setting). Overrides the default proxy password.
+ ///
+ [CliOption("--proxy-password", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyPassword { get; set; }
+
+ ///
+ /// ProxyBypassList - Comma separated list of regex locations to bypass on proxy. Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy bypass list of ''.
+ ///
+ [CliOption("--proxy-bypass-list", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyBypassList { get; set; }
+
+ ///
+ /// Proxy Bypass On Local - Bypass proxy for local connections. Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy bypass on local setting of 'True'.
+ ///
+ [CliFlag("--proxy-bypass-on-local")]
+ public bool? ProxyBypassOnLocal { get; set; }
+
+ ///
+ /// Log File to output to in addition to regular loggers.
+ ///
+ [CliOption("--log-file", Format = OptionFormat.EqualsSeparated)]
+ public string? LogFile { get; set; }
+
+ ///
+ /// Ignore any HTTP caches that have previously been created when querying sources, and create new caches. Available in 2.1.0+
+ ///
+ [CliFlag("--ignore-http-cache")]
+ public bool? IgnoreHttpCache { get; set; }
+
+ ///
+ /// Source - Source location for install. Can use special 'windowsfeatures', 'ruby', 'cygwin', or 'python' sources. Defaults to sources.
+ ///
+ [CliOption("--source", ShortForm = "-s", Format = OptionFormat.EqualsSeparated)]
+ public string? Source { get; set; }
+
+ ///
+ /// Version - Specific version of a package to return.
+ ///
+ [CliOption("--version", Format = OptionFormat.EqualsSeparated)]
+ public string? Version { get; set; }
+
+ ///
+ /// User - used with authenticated feeds. Defaults to empty.
+ ///
+ [CliOption("--user", ShortForm = "-u", Format = OptionFormat.EqualsSeparated)]
+ public string? User { get; set; }
+
+ ///
+ /// Password - the user's password to the source. Defaults to empty.
+ ///
+ [CliOption("--password", ShortForm = "-p", Format = OptionFormat.EqualsSeparated)]
+ public string? Password { get; set; }
+
+ ///
+ /// Client certificate - PFX pathname for an x509 authenticated feeds. Defaults to empty.
+ ///
+ [CliOption("--cert", Format = OptionFormat.EqualsSeparated)]
+ public string? Cert { get; set; }
+
+ ///
+ /// Page - the 'page' of results to return. Defaults to return all results.
+ ///
+ [CliOption("--page", Format = OptionFormat.EqualsSeparated)]
+ public string? Page { get; set; }
+
+ ///
+ /// Page Size - the amount of packages to return in each page of results. NOTE: this value is per source. Defaults to 25 for each source that is included in query.
+ ///
+ [CliOption("--page-size", Format = OptionFormat.EqualsSeparated)]
+ public string? PageSize { get; set; }
+
+ ///
+ /// Exact - Only return packages with this exact name.
+ ///
+ [CliFlag("--exact", ShortForm = "-e")]
+ public bool? Exact { get; set; }
+
+ ///
+ /// ByIdOnly - Only return packages where the id contains the search filter.
+ ///
+ [CliFlag("--by-id-only")]
+ public bool? ByIdOnly { get; set; }
+
+ ///
+ /// IdStartsWith - Only return packages where the id starts with the search filter.
+ ///
+ [CliFlag("--id-starts-with")]
+ public bool? IdStartsWith { get; set; }
+
+ ///
+ /// OrderBy - Sort package results by Id (default), Title, Popularity, LastPublished, Unsorted. Available in 2.5.0+.
+ ///
+ [CliOption("--order-by", Format = OptionFormat.EqualsSeparated)]
+ public string? OrderBy { get; set; }
+
+ ///
+ /// (Deprecated) OrderByPopularity - Sort package results by popularity. Use '--order-by='Popularity'' instead.
+ ///
+ [CliFlag("--order-by-popularity")]
+ public bool? OrderByPopularity { get; set; }
+
+ ///
+ /// ApprovedOnly - Only return approved packages - this option will filter out results not from the community repository.
+ ///
+ [CliFlag("--approved-only")]
+ public bool? ApprovedOnly { get; set; }
+
+ ///
+ /// NotBroken - Only return packages that are not failing testing - this option only filters out failing results from the community feed. It will not filter against other sources.
+ ///
+ [CliFlag("--not-broken")]
+ public bool? NotBroken { get; set; }
+
+ ///
+ /// Include Configured Sources - When using the '--source' option, this appends the sources that have been saved into the chocolatey.config file by 'source' command. Available in 2.3.0+
+ ///
+ [CliFlag("--include-configured-sources")]
+ public bool? IncludeConfiguredSources { get; set; }
+
+}
diff --git a/src/ModularPipelines.Chocolatey/Options/ChocoSetapikeyOptions.cs b/src/ModularPipelines.Chocolatey/Options/ChocoSetapikeyOptions.cs
new file mode 100644
index 0000000000..b421a3a7f2
--- /dev/null
+++ b/src/ModularPipelines.Chocolatey/Options/ChocoSetapikeyOptions.cs
@@ -0,0 +1,117 @@
+//
+// This file was generated by ModularPipelines.OptionsGenerator.
+// Do not edit this file manually.
+//
+
+#nullable enable
+
+using System.Diagnostics.CodeAnalysis;
+using ModularPipelines.Attributes;
+using ModularPipelines.Chocolatey.Options;
+
+namespace ModularPipelines.Chocolatey.Options;
+
+///
+/// For source location, this can be a folder/file share or an
+///
+[ExcludeFromCodeCoverage]
+[CliSubCommand("setapikey")]
+public record ChocoSetapikeyOptions : ChocoOptions
+{
+ ///
+ /// Online - Open help for specified command in default browser application. This option only works when used in combination with the -?/--help/-h option. Available in 2.0.0+
+ ///
+ [CliFlag("--online")]
+ public bool? Online { get; set; }
+
+ ///
+ /// Debug - Show debug messaging.
+ ///
+ [CliFlag("--debug", ShortForm = "-d")]
+ public bool? Debug { get; set; }
+
+ ///
+ /// Verbose - Show verbose messaging. Very verbose messaging, avoid using under normal circumstances.
+ ///
+ [CliFlag("--verbose", ShortForm = "-v")]
+ public bool? Verbose { get; set; }
+
+ ///
+ /// Trace - Show trace messaging. Very, very verbose trace messaging. Avoid except when needing super low-level .NET Framework debugging.
+ ///
+ [CliFlag("--trace")]
+ public bool? Trace { get; set; }
+
+ ///
+ /// Force - force the behavior. Do not use force during normal operation - it subverts some of the smart behavior for commands.
+ ///
+ [CliFlag("--force", ShortForm = "-f")]
+ public bool? Force { get; set; }
+
+ ///
+ /// Include header names when --limit-output is used. Requires Chocolatey CLI 2.5.0+
+ ///
+ [CliFlag("--include-headers")]
+ public bool? IncludeHeaders { get; set; }
+
+ ///
+ /// UseSystemPowerShell - Execute PowerShell using an external process instead of the built-in PowerShell host. Should only be used when internal host is failing.
+ ///
+ [CliFlag("--use-system-powershell")]
+ public bool? UseSystemPowershell { get; set; }
+
+ ///
+ /// Do Not Show Progress - Do not show download progress percentages.
+ ///
+ [CliFlag("--no-progress")]
+ public bool? NoProgress { get; set; }
+
+ ///
+ /// Proxy Location - Explicit proxy location. Overrides the default proxy location of ''.
+ ///
+ [CliOption("--proxy", Format = OptionFormat.EqualsSeparated)]
+ public string? Proxy { get; set; }
+
+ ///
+ /// Proxy User Name - Explicit proxy user (optional). Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy user of ''.
+ ///
+ [CliOption("--proxy-user", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyUser { get; set; }
+
+ ///
+ /// Proxy Password - Explicit proxy password (optional) to be used with user name. Encrypted. Requires explicit proxy (`--proxy` or config setting) and user name (`--proxy-user` or config setting). Overrides the default proxy password.
+ ///
+ [CliOption("--proxy-password", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyPassword { get; set; }
+
+ ///
+ /// ProxyBypassList - Comma separated list of regex locations to bypass on proxy. Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy bypass list of ''.
+ ///
+ [CliOption("--proxy-bypass-list", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyBypassList { get; set; }
+
+ ///
+ /// Proxy Bypass On Local - Bypass proxy for local connections. Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy bypass on local setting of 'True'.
+ ///
+ [CliFlag("--proxy-bypass-on-local")]
+ public bool? ProxyBypassOnLocal { get; set; }
+
+ ///
+ /// Log File to output to in addition to regular loggers.
+ ///
+ [CliOption("--log-file", Format = OptionFormat.EqualsSeparated)]
+ public string? LogFile { get; set; }
+
+ ///
+ /// Ignore any HTTP caches that have previously been created when querying sources, and create new caches. Available in 2.1.0+
+ ///
+ [CliFlag("--ignore-http-cache")]
+ public bool? IgnoreHttpCache { get; set; }
+
+ ///
+ /// Source [REQUIRED] - The source location for the key
+ ///
+ [CliOption("--source", ShortForm = "-s", Format = OptionFormat.EqualsSeparated)]
+ public string? Source { get; set; }
+
+}
diff --git a/src/ModularPipelines.Chocolatey/Options/ChocoSourceOptions.cs b/src/ModularPipelines.Chocolatey/Options/ChocoSourceOptions.cs
new file mode 100644
index 0000000000..cd40a127b7
--- /dev/null
+++ b/src/ModularPipelines.Chocolatey/Options/ChocoSourceOptions.cs
@@ -0,0 +1,147 @@
+//
+// This file was generated by ModularPipelines.OptionsGenerator.
+// Do not edit this file manually.
+//
+
+#nullable enable
+
+using System.Diagnostics.CodeAnalysis;
+using ModularPipelines.Attributes;
+using ModularPipelines.Chocolatey.Options;
+
+namespace ModularPipelines.Chocolatey.Options;
+
+///
+/// When it comes to the source location, this can be a folder/file share or an http
+///
+[ExcludeFromCodeCoverage]
+[CliSubCommand("source")]
+public record ChocoSourceOptions : ChocoOptions
+{
+ ///
+ /// Online - Open help for specified command in default browser application. This option only works when used in combination with the -?/--help/-h option. Available in 2.0.0+
+ ///
+ [CliFlag("--online")]
+ public bool? Online { get; set; }
+
+ ///
+ /// Debug - Show debug messaging.
+ ///
+ [CliFlag("--debug", ShortForm = "-d")]
+ public bool? Debug { get; set; }
+
+ ///
+ /// Verbose - Show verbose messaging. Very verbose messaging, avoid using under normal circumstances.
+ ///
+ [CliFlag("--verbose", ShortForm = "-v")]
+ public bool? Verbose { get; set; }
+
+ ///
+ /// Trace - Show trace messaging. Very, very verbose trace messaging. Avoid except when needing super low-level .NET Framework debugging.
+ ///
+ [CliFlag("--trace")]
+ public bool? Trace { get; set; }
+
+ ///
+ /// Force - force the behavior. Do not use force during normal operation - it subverts some of the smart behavior for commands.
+ ///
+ [CliFlag("--force", ShortForm = "-f")]
+ public bool? Force { get; set; }
+
+ ///
+ /// Include header names when --limit-output is used. Requires Chocolatey CLI 2.5.0+
+ ///
+ [CliFlag("--include-headers")]
+ public bool? IncludeHeaders { get; set; }
+
+ ///
+ /// UseSystemPowerShell - Execute PowerShell using an external process instead of the built-in PowerShell host. Should only be used when internal host is failing.
+ ///
+ [CliFlag("--use-system-powershell")]
+ public bool? UseSystemPowershell { get; set; }
+
+ ///
+ /// Do Not Show Progress - Do not show download progress percentages.
+ ///
+ [CliFlag("--no-progress")]
+ public bool? NoProgress { get; set; }
+
+ ///
+ /// Proxy Location - Explicit proxy location. Overrides the default proxy location of ''.
+ ///
+ [CliOption("--proxy", Format = OptionFormat.EqualsSeparated)]
+ public string? Proxy { get; set; }
+
+ ///
+ /// Proxy User Name - Explicit proxy user (optional). Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy user of ''.
+ ///
+ [CliOption("--proxy-user", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyUser { get; set; }
+
+ ///
+ /// Proxy Password - Explicit proxy password (optional) to be used with user name. Encrypted. Requires explicit proxy (`--proxy` or config setting) and user name (`--proxy-user` or config setting). Overrides the default proxy password.
+ ///
+ [CliOption("--proxy-password", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyPassword { get; set; }
+
+ ///
+ /// ProxyBypassList - Comma separated list of regex locations to bypass on proxy. Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy bypass list of ''.
+ ///
+ [CliOption("--proxy-bypass-list", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyBypassList { get; set; }
+
+ ///
+ /// Proxy Bypass On Local - Bypass proxy for local connections. Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy bypass on local setting of 'True'.
+ ///
+ [CliFlag("--proxy-bypass-on-local")]
+ public bool? ProxyBypassOnLocal { get; set; }
+
+ ///
+ /// Log File to output to in addition to regular loggers.
+ ///
+ [CliOption("--log-file", Format = OptionFormat.EqualsSeparated)]
+ public string? LogFile { get; set; }
+
+ ///
+ /// Ignore any HTTP caches that have previously been created when querying sources, and create new caches. Available in 2.1.0+
+ ///
+ [CliFlag("--ignore-http-cache")]
+ public bool? IgnoreHttpCache { get; set; }
+
+ ///
+ /// Name - the name of the source. Required with actions other than list. Defaults to empty.
+ ///
+ [CliOption("--name", ShortForm = "-n", Format = OptionFormat.EqualsSeparated)]
+ public string? Name { get; set; }
+
+ ///
+ /// Source - The source. This can be a folder/file share or an http locatio- n. If it is a url, it will be a location you can go to in a browser and it returns OData with something that says Packages in the browser, similar to what you see when you go to https://community.chocolate- y.org/api/v2/. Required with add action. Defaults to empty.
+ ///
+ [CliOption("--source", ShortForm = "-s", Format = OptionFormat.EqualsSeparated)]
+ public string? Source { get; set; }
+
+ ///
+ /// User - used with authenticated feeds. Defaults to empty.
+ ///
+ [CliOption("--user", ShortForm = "-u", Format = OptionFormat.EqualsSeparated)]
+ public string? User { get; set; }
+
+ ///
+ /// Password - the user's password to the source. Encrypted in chocolate- y.config file.
+ ///
+ [CliOption("--password", ShortForm = "-p", Format = OptionFormat.EqualsSeparated)]
+ public string? Password { get; set; }
+
+ ///
+ /// Client certificate - PFX pathname for an x509 authenticated feeds. Defaults to empty.
+ ///
+ [CliOption("--cert", Format = OptionFormat.EqualsSeparated)]
+ public string? Cert { get; set; }
+
+ ///
+ /// Priority - The priority order of this source as compared to other sources, lower is better. Defaults to 0 (no priority). All priorities above 0 will be evaluated first, then zero-based values will be evaluated in config file order.
+ ///
+ [CliOption("--priority", Format = OptionFormat.EqualsSeparated)]
+ public string? Priority { get; set; }
+
+}
diff --git a/src/ModularPipelines.Chocolatey/Options/ChocoSourcesOptions.cs b/src/ModularPipelines.Chocolatey/Options/ChocoSourcesOptions.cs
new file mode 100644
index 0000000000..8321d1b9c5
--- /dev/null
+++ b/src/ModularPipelines.Chocolatey/Options/ChocoSourcesOptions.cs
@@ -0,0 +1,147 @@
+//
+// This file was generated by ModularPipelines.OptionsGenerator.
+// Do not edit this file manually.
+//
+
+#nullable enable
+
+using System.Diagnostics.CodeAnalysis;
+using ModularPipelines.Attributes;
+using ModularPipelines.Chocolatey.Options;
+
+namespace ModularPipelines.Chocolatey.Options;
+
+///
+/// When it comes to the source location, this can be a folder/file share or an http
+///
+[ExcludeFromCodeCoverage]
+[CliSubCommand("sources")]
+public record ChocoSourcesOptions : ChocoOptions
+{
+ ///
+ /// Online - Open help for specified command in default browser application. This option only works when used in combination with the -?/--help/-h option. Available in 2.0.0+
+ ///
+ [CliFlag("--online")]
+ public bool? Online { get; set; }
+
+ ///
+ /// Debug - Show debug messaging.
+ ///
+ [CliFlag("--debug", ShortForm = "-d")]
+ public bool? Debug { get; set; }
+
+ ///
+ /// Verbose - Show verbose messaging. Very verbose messaging, avoid using under normal circumstances.
+ ///
+ [CliFlag("--verbose", ShortForm = "-v")]
+ public bool? Verbose { get; set; }
+
+ ///
+ /// Trace - Show trace messaging. Very, very verbose trace messaging. Avoid except when needing super low-level .NET Framework debugging.
+ ///
+ [CliFlag("--trace")]
+ public bool? Trace { get; set; }
+
+ ///
+ /// Force - force the behavior. Do not use force during normal operation - it subverts some of the smart behavior for commands.
+ ///
+ [CliFlag("--force", ShortForm = "-f")]
+ public bool? Force { get; set; }
+
+ ///
+ /// Include header names when --limit-output is used. Requires Chocolatey CLI 2.5.0+
+ ///
+ [CliFlag("--include-headers")]
+ public bool? IncludeHeaders { get; set; }
+
+ ///
+ /// UseSystemPowerShell - Execute PowerShell using an external process instead of the built-in PowerShell host. Should only be used when internal host is failing.
+ ///
+ [CliFlag("--use-system-powershell")]
+ public bool? UseSystemPowershell { get; set; }
+
+ ///
+ /// Do Not Show Progress - Do not show download progress percentages.
+ ///
+ [CliFlag("--no-progress")]
+ public bool? NoProgress { get; set; }
+
+ ///
+ /// Proxy Location - Explicit proxy location. Overrides the default proxy location of ''.
+ ///
+ [CliOption("--proxy", Format = OptionFormat.EqualsSeparated)]
+ public string? Proxy { get; set; }
+
+ ///
+ /// Proxy User Name - Explicit proxy user (optional). Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy user of ''.
+ ///
+ [CliOption("--proxy-user", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyUser { get; set; }
+
+ ///
+ /// Proxy Password - Explicit proxy password (optional) to be used with user name. Encrypted. Requires explicit proxy (`--proxy` or config setting) and user name (`--proxy-user` or config setting). Overrides the default proxy password.
+ ///
+ [CliOption("--proxy-password", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyPassword { get; set; }
+
+ ///
+ /// ProxyBypassList - Comma separated list of regex locations to bypass on proxy. Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy bypass list of ''.
+ ///
+ [CliOption("--proxy-bypass-list", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyBypassList { get; set; }
+
+ ///
+ /// Proxy Bypass On Local - Bypass proxy for local connections. Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy bypass on local setting of 'True'.
+ ///
+ [CliFlag("--proxy-bypass-on-local")]
+ public bool? ProxyBypassOnLocal { get; set; }
+
+ ///
+ /// Log File to output to in addition to regular loggers.
+ ///
+ [CliOption("--log-file", Format = OptionFormat.EqualsSeparated)]
+ public string? LogFile { get; set; }
+
+ ///
+ /// Ignore any HTTP caches that have previously been created when querying sources, and create new caches. Available in 2.1.0+
+ ///
+ [CliFlag("--ignore-http-cache")]
+ public bool? IgnoreHttpCache { get; set; }
+
+ ///
+ /// Name - the name of the source. Required with actions other than list. Defaults to empty.
+ ///
+ [CliOption("--name", ShortForm = "-n", Format = OptionFormat.EqualsSeparated)]
+ public string? Name { get; set; }
+
+ ///
+ /// Source - The source. This can be a folder/file share or an http locatio- n. If it is a url, it will be a location you can go to in a browser and it returns OData with something that says Packages in the browser, similar to what you see when you go to https://community.chocolate- y.org/api/v2/. Required with add action. Defaults to empty.
+ ///
+ [CliOption("--source", ShortForm = "-s", Format = OptionFormat.EqualsSeparated)]
+ public string? Source { get; set; }
+
+ ///
+ /// User - used with authenticated feeds. Defaults to empty.
+ ///
+ [CliOption("--user", ShortForm = "-u", Format = OptionFormat.EqualsSeparated)]
+ public string? User { get; set; }
+
+ ///
+ /// Password - the user's password to the source. Encrypted in chocolate- y.config file.
+ ///
+ [CliOption("--password", ShortForm = "-p", Format = OptionFormat.EqualsSeparated)]
+ public string? Password { get; set; }
+
+ ///
+ /// Client certificate - PFX pathname for an x509 authenticated feeds. Defaults to empty.
+ ///
+ [CliOption("--cert", Format = OptionFormat.EqualsSeparated)]
+ public string? Cert { get; set; }
+
+ ///
+ /// Priority - The priority order of this source as compared to other sources, lower is better. Defaults to 0 (no priority). All priorities above 0 will be evaluated first, then zero-based values will be evaluated in config file order.
+ ///
+ [CliOption("--priority", Format = OptionFormat.EqualsSeparated)]
+ public string? Priority { get; set; }
+
+}
diff --git a/src/ModularPipelines.Chocolatey/Options/ChocoSupportOptions.cs b/src/ModularPipelines.Chocolatey/Options/ChocoSupportOptions.cs
new file mode 100644
index 0000000000..179f65b86a
--- /dev/null
+++ b/src/ModularPipelines.Chocolatey/Options/ChocoSupportOptions.cs
@@ -0,0 +1,18 @@
+//
+// This file was generated by ModularPipelines.OptionsGenerator.
+// Do not edit this file manually.
+//
+
+#nullable enable
+
+using System.Diagnostics.CodeAnalysis;
+using ModularPipelines.Attributes;
+using ModularPipelines.Chocolatey.Options;
+
+namespace ModularPipelines.Chocolatey.Options;
+
+[ExcludeFromCodeCoverage]
+[CliSubCommand("support")]
+public record ChocoSupportOptions : ChocoOptions
+{
+}
diff --git a/src/ModularPipelines.Chocolatey/Options/ChocoTemplateOptions.cs b/src/ModularPipelines.Chocolatey/Options/ChocoTemplateOptions.cs
new file mode 100644
index 0000000000..518c55d2d7
--- /dev/null
+++ b/src/ModularPipelines.Chocolatey/Options/ChocoTemplateOptions.cs
@@ -0,0 +1,117 @@
+//
+// This file was generated by ModularPipelines.OptionsGenerator.
+// Do not edit this file manually.
+//
+
+#nullable enable
+
+using System.Diagnostics.CodeAnalysis;
+using ModularPipelines.Attributes;
+using ModularPipelines.Chocolatey.Options;
+
+namespace ModularPipelines.Chocolatey.Options;
+
+///
+/// NOTE: See scripting in the command reference (`choco --help`) for how to
+///
+[ExcludeFromCodeCoverage]
+[CliSubCommand("template")]
+public record ChocoTemplateOptions : ChocoOptions
+{
+ ///
+ /// Online - Open help for specified command in default browser application. This option only works when used in combination with the -?/--help/-h option. Available in 2.0.0+
+ ///
+ [CliFlag("--online")]
+ public bool? Online { get; set; }
+
+ ///
+ /// Debug - Show debug messaging.
+ ///
+ [CliFlag("--debug", ShortForm = "-d")]
+ public bool? Debug { get; set; }
+
+ ///
+ /// Verbose - Show verbose messaging. Very verbose messaging, avoid using under normal circumstances.
+ ///
+ [CliFlag("--verbose", ShortForm = "-v")]
+ public bool? Verbose { get; set; }
+
+ ///
+ /// Trace - Show trace messaging. Very, very verbose trace messaging. Avoid except when needing super low-level .NET Framework debugging.
+ ///
+ [CliFlag("--trace")]
+ public bool? Trace { get; set; }
+
+ ///
+ /// Force - force the behavior. Do not use force during normal operation - it subverts some of the smart behavior for commands.
+ ///
+ [CliFlag("--force", ShortForm = "-f")]
+ public bool? Force { get; set; }
+
+ ///
+ /// Include header names when --limit-output is used. Requires Chocolatey CLI 2.5.0+
+ ///
+ [CliFlag("--include-headers")]
+ public bool? IncludeHeaders { get; set; }
+
+ ///
+ /// UseSystemPowerShell - Execute PowerShell using an external process instead of the built-in PowerShell host. Should only be used when internal host is failing.
+ ///
+ [CliFlag("--use-system-powershell")]
+ public bool? UseSystemPowershell { get; set; }
+
+ ///
+ /// Do Not Show Progress - Do not show download progress percentages.
+ ///
+ [CliFlag("--no-progress")]
+ public bool? NoProgress { get; set; }
+
+ ///
+ /// Proxy Location - Explicit proxy location. Overrides the default proxy location of ''.
+ ///
+ [CliOption("--proxy", Format = OptionFormat.EqualsSeparated)]
+ public string? Proxy { get; set; }
+
+ ///
+ /// Proxy User Name - Explicit proxy user (optional). Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy user of ''.
+ ///
+ [CliOption("--proxy-user", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyUser { get; set; }
+
+ ///
+ /// Proxy Password - Explicit proxy password (optional) to be used with user name. Encrypted. Requires explicit proxy (`--proxy` or config setting) and user name (`--proxy-user` or config setting). Overrides the default proxy password.
+ ///
+ [CliOption("--proxy-password", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyPassword { get; set; }
+
+ ///
+ /// ProxyBypassList - Comma separated list of regex locations to bypass on proxy. Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy bypass list of ''.
+ ///
+ [CliOption("--proxy-bypass-list", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyBypassList { get; set; }
+
+ ///
+ /// Proxy Bypass On Local - Bypass proxy for local connections. Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy bypass on local setting of 'True'.
+ ///
+ [CliFlag("--proxy-bypass-on-local")]
+ public bool? ProxyBypassOnLocal { get; set; }
+
+ ///
+ /// Log File to output to in addition to regular loggers.
+ ///
+ [CliOption("--log-file", Format = OptionFormat.EqualsSeparated)]
+ public string? LogFile { get; set; }
+
+ ///
+ /// Ignore any HTTP caches that have previously been created when querying sources, and create new caches. Available in 2.1.0+
+ ///
+ [CliFlag("--ignore-http-cache")]
+ public bool? IgnoreHttpCache { get; set; }
+
+ ///
+ /// The name of the template to get information about.
+ ///
+ [CliOption("--name", ShortForm = "-n", Format = OptionFormat.EqualsSeparated)]
+ public string? Name { get; set; }
+
+}
diff --git a/src/ModularPipelines.Chocolatey/Options/ChocoTemplatesOptions.cs b/src/ModularPipelines.Chocolatey/Options/ChocoTemplatesOptions.cs
new file mode 100644
index 0000000000..eb4237a901
--- /dev/null
+++ b/src/ModularPipelines.Chocolatey/Options/ChocoTemplatesOptions.cs
@@ -0,0 +1,117 @@
+//
+// This file was generated by ModularPipelines.OptionsGenerator.
+// Do not edit this file manually.
+//
+
+#nullable enable
+
+using System.Diagnostics.CodeAnalysis;
+using ModularPipelines.Attributes;
+using ModularPipelines.Chocolatey.Options;
+
+namespace ModularPipelines.Chocolatey.Options;
+
+///
+/// NOTE: See scripting in the command reference (`choco --help`) for how to
+///
+[ExcludeFromCodeCoverage]
+[CliSubCommand("templates")]
+public record ChocoTemplatesOptions : ChocoOptions
+{
+ ///
+ /// Online - Open help for specified command in default browser application. This option only works when used in combination with the -?/--help/-h option. Available in 2.0.0+
+ ///
+ [CliFlag("--online")]
+ public bool? Online { get; set; }
+
+ ///
+ /// Debug - Show debug messaging.
+ ///
+ [CliFlag("--debug", ShortForm = "-d")]
+ public bool? Debug { get; set; }
+
+ ///
+ /// Verbose - Show verbose messaging. Very verbose messaging, avoid using under normal circumstances.
+ ///
+ [CliFlag("--verbose", ShortForm = "-v")]
+ public bool? Verbose { get; set; }
+
+ ///
+ /// Trace - Show trace messaging. Very, very verbose trace messaging. Avoid except when needing super low-level .NET Framework debugging.
+ ///
+ [CliFlag("--trace")]
+ public bool? Trace { get; set; }
+
+ ///
+ /// Force - force the behavior. Do not use force during normal operation - it subverts some of the smart behavior for commands.
+ ///
+ [CliFlag("--force", ShortForm = "-f")]
+ public bool? Force { get; set; }
+
+ ///
+ /// Include header names when --limit-output is used. Requires Chocolatey CLI 2.5.0+
+ ///
+ [CliFlag("--include-headers")]
+ public bool? IncludeHeaders { get; set; }
+
+ ///
+ /// UseSystemPowerShell - Execute PowerShell using an external process instead of the built-in PowerShell host. Should only be used when internal host is failing.
+ ///
+ [CliFlag("--use-system-powershell")]
+ public bool? UseSystemPowershell { get; set; }
+
+ ///
+ /// Do Not Show Progress - Do not show download progress percentages.
+ ///
+ [CliFlag("--no-progress")]
+ public bool? NoProgress { get; set; }
+
+ ///
+ /// Proxy Location - Explicit proxy location. Overrides the default proxy location of ''.
+ ///
+ [CliOption("--proxy", Format = OptionFormat.EqualsSeparated)]
+ public string? Proxy { get; set; }
+
+ ///
+ /// Proxy User Name - Explicit proxy user (optional). Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy user of ''.
+ ///
+ [CliOption("--proxy-user", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyUser { get; set; }
+
+ ///
+ /// Proxy Password - Explicit proxy password (optional) to be used with user name. Encrypted. Requires explicit proxy (`--proxy` or config setting) and user name (`--proxy-user` or config setting). Overrides the default proxy password.
+ ///
+ [CliOption("--proxy-password", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyPassword { get; set; }
+
+ ///
+ /// ProxyBypassList - Comma separated list of regex locations to bypass on proxy. Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy bypass list of ''.
+ ///
+ [CliOption("--proxy-bypass-list", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyBypassList { get; set; }
+
+ ///
+ /// Proxy Bypass On Local - Bypass proxy for local connections. Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy bypass on local setting of 'True'.
+ ///
+ [CliFlag("--proxy-bypass-on-local")]
+ public bool? ProxyBypassOnLocal { get; set; }
+
+ ///
+ /// Log File to output to in addition to regular loggers.
+ ///
+ [CliOption("--log-file", Format = OptionFormat.EqualsSeparated)]
+ public string? LogFile { get; set; }
+
+ ///
+ /// Ignore any HTTP caches that have previously been created when querying sources, and create new caches. Available in 2.1.0+
+ ///
+ [CliFlag("--ignore-http-cache")]
+ public bool? IgnoreHttpCache { get; set; }
+
+ ///
+ /// The name of the template to get information about.
+ ///
+ [CliOption("--name", ShortForm = "-n", Format = OptionFormat.EqualsSeparated)]
+ public string? Name { get; set; }
+
+}
diff --git a/src/ModularPipelines.Chocolatey/Options/ChocoUninstallOptions.cs b/src/ModularPipelines.Chocolatey/Options/ChocoUninstallOptions.cs
new file mode 100644
index 0000000000..4fa94bfa87
--- /dev/null
+++ b/src/ModularPipelines.Chocolatey/Options/ChocoUninstallOptions.cs
@@ -0,0 +1,123 @@
+//
+// This file was generated by ModularPipelines.OptionsGenerator.
+// Do not edit this file manually.
+//
+
+#nullable enable
+
+using System.Diagnostics.CodeAnalysis;
+using ModularPipelines.Attributes;
+using ModularPipelines.Chocolatey.Options;
+
+namespace ModularPipelines.Chocolatey.Options;
+
+///
+/// NOTE: `all` is a special package keyword that will allow you to
+///
+[ExcludeFromCodeCoverage]
+[CliSubCommand("uninstall")]
+public record ChocoUninstallOptions : ChocoOptions
+{
+ ///
+ /// Online - Open help for specified command in default browser application. This option only works when used in combination with the -?/--help/-h option. Available in 2.0.0+
+ ///
+ [CliFlag("--online")]
+ public bool? Online { get; set; }
+
+ ///
+ /// Debug - Show debug messaging.
+ ///
+ [CliFlag("--debug", ShortForm = "-d")]
+ public bool? Debug { get; set; }
+
+ ///
+ /// Verbose - Show verbose messaging. Very verbose messaging, avoid using under normal circumstances.
+ ///
+ [CliFlag("--verbose", ShortForm = "-v")]
+ public bool? Verbose { get; set; }
+
+ ///
+ /// Trace - Show trace messaging. Very, very verbose trace messaging. Avoid except when needing super low-level .NET Framework debugging.
+ ///
+ [CliFlag("--trace")]
+ public bool? Trace { get; set; }
+
+ ///
+ /// Force - force the behavior. Do not use force during normal operation - it subverts some of the smart behavior for commands.
+ ///
+ [CliFlag("--force", ShortForm = "-f")]
+ public bool? Force { get; set; }
+
+ ///
+ /// Include header names when --limit-output is used. Requires Chocolatey CLI 2.5.0+
+ ///
+ [CliFlag("--include-headers")]
+ public bool? IncludeHeaders { get; set; }
+
+ ///
+ /// UseSystemPowerShell - Execute PowerShell using an external process instead of the built-in PowerShell host. Should only be used when internal host is failing.
+ ///
+ [CliFlag("--use-system-powershell")]
+ public bool? UseSystemPowershell { get; set; }
+
+ ///
+ /// Do Not Show Progress - Do not show download progress percentages.
+ ///
+ [CliFlag("--no-progress")]
+ public bool? NoProgress { get; set; }
+
+ ///
+ /// Proxy Location - Explicit proxy location. Overrides the default proxy location of ''.
+ ///
+ [CliOption("--proxy", Format = OptionFormat.EqualsSeparated)]
+ public string? Proxy { get; set; }
+
+ ///
+ /// Proxy User Name - Explicit proxy user (optional). Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy user of ''.
+ ///
+ [CliOption("--proxy-user", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyUser { get; set; }
+
+ ///
+ /// Proxy Password - Explicit proxy password (optional) to be used with user name. Encrypted. Requires explicit proxy (`--proxy` or config setting) and user name (`--proxy-user` or config setting). Overrides the default proxy password.
+ ///
+ [CliOption("--proxy-password", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyPassword { get; set; }
+
+ ///
+ /// ProxyBypassList - Comma separated list of regex locations to bypass on proxy. Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy bypass list of ''.
+ ///
+ [CliOption("--proxy-bypass-list", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyBypassList { get; set; }
+
+ ///
+ /// Proxy Bypass On Local - Bypass proxy for local connections. Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy bypass on local setting of 'True'.
+ ///
+ [CliFlag("--proxy-bypass-on-local")]
+ public bool? ProxyBypassOnLocal { get; set; }
+
+ ///
+ /// Log File to output to in addition to regular loggers.
+ ///
+ [CliOption("--log-file", Format = OptionFormat.EqualsSeparated)]
+ public string? LogFile { get; set; }
+
+ ///
+ /// Ignore any HTTP caches that have previously been created when querying sources, and create new caches. Available in 2.1.0+
+ ///
+ [CliFlag("--ignore-http-cache")]
+ public bool? IgnoreHttpCache { get; set; }
+
+ ///
+ /// Source - The source to find the package(s) to install. Special sources include: ruby, cygwin, windowsfeatures, and python. Defaults to default feeds.
+ ///
+ [CliOption("--source", ShortForm = "-s", Format = OptionFormat.EqualsSeparated)]
+ public string? Source { get; set; }
+
+ ///
+ /// Version - A specific version to uninstall. Defaults to unspecified.
+ ///
+ [CliOption("--version", Format = OptionFormat.EqualsSeparated)]
+ public string? Version { get; set; }
+
+}
diff --git a/src/ModularPipelines.Chocolatey/Options/ChocoUnpackselfOptions.cs b/src/ModularPipelines.Chocolatey/Options/ChocoUnpackselfOptions.cs
new file mode 100644
index 0000000000..6a4c690b08
--- /dev/null
+++ b/src/ModularPipelines.Chocolatey/Options/ChocoUnpackselfOptions.cs
@@ -0,0 +1,108 @@
+//
+// This file was generated by ModularPipelines.OptionsGenerator.
+// Do not edit this file manually.
+//
+
+#nullable enable
+
+using System.Diagnostics.CodeAnalysis;
+using ModularPipelines.Attributes;
+using ModularPipelines.Chocolatey.Options;
+
+namespace ModularPipelines.Chocolatey.Options;
+
+[ExcludeFromCodeCoverage]
+[CliSubCommand("unpackself")]
+public record ChocoUnpackselfOptions : ChocoOptions
+{
+ ///
+ /// Online - Open help for specified command in default browser application. This option only works when used in combination with the -?/--help/-h option. Available in 2.0.0+
+ ///
+ [CliFlag("--online")]
+ public bool? Online { get; set; }
+
+ ///
+ /// Debug - Show debug messaging.
+ ///
+ [CliFlag("--debug", ShortForm = "-d")]
+ public bool? Debug { get; set; }
+
+ ///
+ /// Verbose - Show verbose messaging. Very verbose messaging, avoid using under normal circumstances.
+ ///
+ [CliFlag("--verbose", ShortForm = "-v")]
+ public bool? Verbose { get; set; }
+
+ ///
+ /// Trace - Show trace messaging. Very, very verbose trace messaging. Avoid except when needing super low-level .NET Framework debugging.
+ ///
+ [CliFlag("--trace")]
+ public bool? Trace { get; set; }
+
+ ///
+ /// Force - force the behavior. Do not use force during normal operation - it subverts some of the smart behavior for commands.
+ ///
+ [CliFlag("--force", ShortForm = "-f")]
+ public bool? Force { get; set; }
+
+ ///
+ /// Include header names when --limit-output is used. Requires Chocolatey CLI 2.5.0+
+ ///
+ [CliFlag("--include-headers")]
+ public bool? IncludeHeaders { get; set; }
+
+ ///
+ /// UseSystemPowerShell - Execute PowerShell using an external process instead of the built-in PowerShell host. Should only be used when internal host is failing.
+ ///
+ [CliFlag("--use-system-powershell")]
+ public bool? UseSystemPowershell { get; set; }
+
+ ///
+ /// Do Not Show Progress - Do not show download progress percentages.
+ ///
+ [CliFlag("--no-progress")]
+ public bool? NoProgress { get; set; }
+
+ ///
+ /// Proxy Location - Explicit proxy location. Overrides the default proxy location of ''.
+ ///
+ [CliOption("--proxy", Format = OptionFormat.EqualsSeparated)]
+ public string? Proxy { get; set; }
+
+ ///
+ /// Proxy User Name - Explicit proxy user (optional). Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy user of ''.
+ ///
+ [CliOption("--proxy-user", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyUser { get; set; }
+
+ ///
+ /// Proxy Password - Explicit proxy password (optional) to be used with user name. Encrypted. Requires explicit proxy (`--proxy` or config setting) and user name (`--proxy-user` or config setting). Overrides the default proxy password.
+ ///
+ [CliOption("--proxy-password", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyPassword { get; set; }
+
+ ///
+ /// ProxyBypassList - Comma separated list of regex locations to bypass on proxy. Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy bypass list of ''.
+ ///
+ [CliOption("--proxy-bypass-list", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyBypassList { get; set; }
+
+ ///
+ /// Proxy Bypass On Local - Bypass proxy for local connections. Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy bypass on local setting of 'True'.
+ ///
+ [CliFlag("--proxy-bypass-on-local")]
+ public bool? ProxyBypassOnLocal { get; set; }
+
+ ///
+ /// Log File to output to in addition to regular loggers.
+ ///
+ [CliOption("--log-file", Format = OptionFormat.EqualsSeparated)]
+ public string? LogFile { get; set; }
+
+ ///
+ /// Ignore any HTTP caches that have previously been created when querying sources, and create new caches. Available in 2.1.0+
+ ///
+ [CliFlag("--ignore-http-cache")]
+ public bool? IgnoreHttpCache { get; set; }
+
+}
diff --git a/src/ModularPipelines.Chocolatey/Options/ChocoUpgradeOptions.cs b/src/ModularPipelines.Chocolatey/Options/ChocoUpgradeOptions.cs
new file mode 100644
index 0000000000..ce439fe360
--- /dev/null
+++ b/src/ModularPipelines.Chocolatey/Options/ChocoUpgradeOptions.cs
@@ -0,0 +1,171 @@
+//
+// This file was generated by ModularPipelines.OptionsGenerator.
+// Do not edit this file manually.
+//
+
+#nullable enable
+
+using System.Diagnostics.CodeAnalysis;
+using ModularPipelines.Attributes;
+using ModularPipelines.Chocolatey.Options;
+
+namespace ModularPipelines.Chocolatey.Options;
+
+///
+/// NOTE: `all` is a special package keyword that will allow you to upgrade
+///
+[ExcludeFromCodeCoverage]
+[CliSubCommand("upgrade")]
+public record ChocoUpgradeOptions : ChocoOptions
+{
+ ///
+ /// Online - Open help for specified command in default browser application. This option only works when used in combination with the -?/--help/-h option. Available in 2.0.0+
+ ///
+ [CliFlag("--online")]
+ public bool? Online { get; set; }
+
+ ///
+ /// Debug - Show debug messaging.
+ ///
+ [CliFlag("--debug", ShortForm = "-d")]
+ public bool? Debug { get; set; }
+
+ ///
+ /// Verbose - Show verbose messaging. Very verbose messaging, avoid using under normal circumstances.
+ ///
+ [CliFlag("--verbose", ShortForm = "-v")]
+ public bool? Verbose { get; set; }
+
+ ///
+ /// Trace - Show trace messaging. Very, very verbose trace messaging. Avoid except when needing super low-level .NET Framework debugging.
+ ///
+ [CliFlag("--trace")]
+ public bool? Trace { get; set; }
+
+ ///
+ /// Force - force the behavior. Do not use force during normal operation - it subverts some of the smart behavior for commands.
+ ///
+ [CliFlag("--force", ShortForm = "-f")]
+ public bool? Force { get; set; }
+
+ ///
+ /// Include header names when --limit-output is used. Requires Chocolatey CLI 2.5.0+
+ ///
+ [CliFlag("--include-headers")]
+ public bool? IncludeHeaders { get; set; }
+
+ ///
+ /// UseSystemPowerShell - Execute PowerShell using an external process instead of the built-in PowerShell host. Should only be used when internal host is failing.
+ ///
+ [CliFlag("--use-system-powershell")]
+ public bool? UseSystemPowershell { get; set; }
+
+ ///
+ /// Do Not Show Progress - Do not show download progress percentages.
+ ///
+ [CliFlag("--no-progress")]
+ public bool? NoProgress { get; set; }
+
+ ///
+ /// Proxy Location - Explicit proxy location. Overrides the default proxy location of ''.
+ ///
+ [CliOption("--proxy", Format = OptionFormat.EqualsSeparated)]
+ public string? Proxy { get; set; }
+
+ ///
+ /// Proxy User Name - Explicit proxy user (optional). Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy user of ''.
+ ///
+ [CliOption("--proxy-user", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyUser { get; set; }
+
+ ///
+ /// Proxy Password - Explicit proxy password (optional) to be used with user name. Encrypted. Requires explicit proxy (`--proxy` or config setting) and user name (`--proxy-user` or config setting). Overrides the default proxy password.
+ ///
+ [CliOption("--proxy-password", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyPassword { get; set; }
+
+ ///
+ /// ProxyBypassList - Comma separated list of regex locations to bypass on proxy. Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy bypass list of ''.
+ ///
+ [CliOption("--proxy-bypass-list", Format = OptionFormat.EqualsSeparated)]
+ public string? ProxyBypassList { get; set; }
+
+ ///
+ /// Proxy Bypass On Local - Bypass proxy for local connections. Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy bypass on local setting of 'True'.
+ ///
+ [CliFlag("--proxy-bypass-on-local")]
+ public bool? ProxyBypassOnLocal { get; set; }
+
+ ///
+ /// Log File to output to in addition to regular loggers.
+ ///
+ [CliOption("--log-file", Format = OptionFormat.EqualsSeparated)]
+ public string? LogFile { get; set; }
+
+ ///
+ /// Ignore any HTTP caches that have previously been created when querying sources, and create new caches. Available in 2.1.0+
+ ///
+ [CliFlag("--ignore-http-cache")]
+ public bool? IgnoreHttpCache { get; set; }
+
+ ///
+ /// Source - The source to find the package(s) to install. Special sources include: ruby, cygwin, windowsfeatures, and python. To specify more than one source, pass it with a semi-colon separating the values (e.g. "'source1;source2'"). Defaults to default feeds.
+ ///
+ [CliOption("--source", ShortForm = "-s", Format = OptionFormat.EqualsSeparated)]
+ public string? Source { get; set; }
+
+ ///
+ /// Version - A specific version to install. Defaults to unspecified.
+ ///
+ [CliOption("--version", Format = OptionFormat.EqualsSeparated)]
+ public string? Version { get; set; }
+
+ ///
+ /// Ignore Unfound Packages - Ignore packages that are not found on the sources used (or the defaults). Overrides the default feature 'ignoreUnfoundPackagesOnUpgradeOutdated' set to 'False'.
+ ///
+ [CliFlag("--ignore-unfound")]
+ public bool? IgnoreUnfound { get; set; }
+
+ ///
+ /// User - used with authenticated feeds. Defaults to empty.
+ ///
+ [CliOption("--user", ShortForm = "-u", Format = OptionFormat.EqualsSeparated)]
+ public string? User { get; set; }
+
+ ///
+ /// Password - the user's password to the source. Defaults to empty.
+ ///
+ [CliOption("--password", ShortForm = "-p", Format = OptionFormat.EqualsSeparated)]
+ public string? Password { get; set; }
+
+ ///
+ /// Client certificate - PFX pathname for an x509 authenticated feeds. Defaults to empty.
+ ///
+ [CliOption("--cert", Format = OptionFormat.EqualsSeparated)]
+ public string? Cert { get; set; }
+
+ ///
+ /// Except - a comma-separated list of package names that should not be upgraded when upgrading 'all'. Overrides the configuration setting 'upgradeAllExceptions' set to ''.
+ ///
+ [CliOption("--except", Format = OptionFormat.EqualsSeparated)]
+ public string? Except { get; set; }
+
+ ///
+ /// Install Missing Packages When Not Installed - if a package is not installed, install it as part of running upgrade (typically default behavior). Overrides the default feature 'skipPackageUpgradesWhenNotInstalled' set to 'False'.
+ ///
+ [CliFlag("--install-if-not-installed")]
+ public bool? InstallIfNotInstalled { get; set; }
+
+ ///
+ /// Ignore Pinned - Ignores any pins and upgrades the package(s) anyway. Available in 2.3.0+
+ ///
+ [CliFlag("--ignore-pinned")]
+ public bool? IgnorePinned { get; set; }
+
+ ///
+ /// Include Configured Sources - When using the '--source' option, this appends the sources that have been saved into the chocolatey.config file by 'source' command. Available in 2.3.0+
+ ///
+ [CliFlag("--include-configured-sources")]
+ public bool? IncludeConfiguredSources { get; set; }
+
+}
diff --git a/src/ModularPipelines.Chocolatey/Options/ConfigGetOptions.cs b/src/ModularPipelines.Chocolatey/Options/ConfigGetOptions.cs
deleted file mode 100644
index 1d730d3e32..0000000000
--- a/src/ModularPipelines.Chocolatey/Options/ConfigGetOptions.cs
+++ /dev/null
@@ -1,15 +0,0 @@
-using System.Diagnostics.CodeAnalysis;
-using ModularPipelines.Attributes;
-
-namespace ModularPipelines.Chocolatey.Options;
-
-[ExcludeFromCodeCoverage]
-[CliCommand("config", "get")]
-public record ConfigGetOptions : ChocoOptions
-{
- [CliOption("--name")]
- public virtual string? Name { get; set; }
-
- [CliOption("--value")]
- public virtual string? Value { get; set; }
-}
\ No newline at end of file
diff --git a/src/ModularPipelines.Chocolatey/Options/ConfigOptions.cs b/src/ModularPipelines.Chocolatey/Options/ConfigOptions.cs
deleted file mode 100644
index 0efcdbb37e..0000000000
--- a/src/ModularPipelines.Chocolatey/Options/ConfigOptions.cs
+++ /dev/null
@@ -1,15 +0,0 @@
-using System.Diagnostics.CodeAnalysis;
-using ModularPipelines.Attributes;
-
-namespace ModularPipelines.Chocolatey.Options;
-
-[ExcludeFromCodeCoverage]
-[CliSubCommand("config")]
-public record ConfigOptions : ChocoOptions
-{
- [CliOption("--name")]
- public virtual string? Name { get; set; }
-
- [CliOption("--value")]
- public virtual string? Value { get; set; }
-}
\ No newline at end of file
diff --git a/src/ModularPipelines.Chocolatey/Options/ConfigSetOptions.cs b/src/ModularPipelines.Chocolatey/Options/ConfigSetOptions.cs
deleted file mode 100644
index a5c3965b86..0000000000
--- a/src/ModularPipelines.Chocolatey/Options/ConfigSetOptions.cs
+++ /dev/null
@@ -1,15 +0,0 @@
-using System.Diagnostics.CodeAnalysis;
-using ModularPipelines.Attributes;
-
-namespace ModularPipelines.Chocolatey.Options;
-
-[ExcludeFromCodeCoverage]
-[CliCommand("config", "set")]
-public record ConfigSetOptions : ChocoOptions
-{
- [CliOption("--name")]
- public virtual string? Name { get; set; }
-
- [CliOption("--value")]
- public virtual string? Value { get; set; }
-}
\ No newline at end of file
diff --git a/src/ModularPipelines.Chocolatey/Options/ConfigUnsetOptions.cs b/src/ModularPipelines.Chocolatey/Options/ConfigUnsetOptions.cs
deleted file mode 100644
index 5d242b9962..0000000000
--- a/src/ModularPipelines.Chocolatey/Options/ConfigUnsetOptions.cs
+++ /dev/null
@@ -1,15 +0,0 @@
-using System.Diagnostics.CodeAnalysis;
-using ModularPipelines.Attributes;
-
-namespace ModularPipelines.Chocolatey.Options;
-
-[ExcludeFromCodeCoverage]
-[CliCommand("config", "unset")]
-public record ConfigUnsetOptions : ChocoOptions
-{
- [CliOption("--name")]
- public virtual string? Name { get; set; }
-
- [CliOption("--value")]
- public virtual string? Value { get; set; }
-}
\ No newline at end of file
diff --git a/src/ModularPipelines.Chocolatey/Options/ConvertOptions.cs b/src/ModularPipelines.Chocolatey/Options/ConvertOptions.cs
deleted file mode 100644
index f8ca446ad9..0000000000
--- a/src/ModularPipelines.Chocolatey/Options/ConvertOptions.cs
+++ /dev/null
@@ -1,23 +0,0 @@
-using System.Diagnostics.CodeAnalysis;
-using ModularPipelines.Attributes;
-
-namespace ModularPipelines.Chocolatey.Options;
-
-[ExcludeFromCodeCoverage]
-[CliSubCommand("convert")]
-public record ConvertOptions(
- [property: CliArgument] string Pkg
-) : ChocoOptions
-{
- [CliOption("--to-format")]
- public virtual string? ToFormat { get; set; }
-
- [CliFlag("--includeall")]
- public virtual bool? Includeall { get; set; }
-
- [CliFlag("--ignore-dependencies")]
- public virtual bool? IgnoreDependencies { get; set; }
-
- [CliFlag("--force-self-service")]
- public virtual bool? ForceSelfService { get; set; }
-}
\ No newline at end of file
diff --git a/src/ModularPipelines.Chocolatey/Options/DownloadOptions.cs b/src/ModularPipelines.Chocolatey/Options/DownloadOptions.cs
deleted file mode 100644
index c56c07d6c7..0000000000
--- a/src/ModularPipelines.Chocolatey/Options/DownloadOptions.cs
+++ /dev/null
@@ -1,80 +0,0 @@
-using System.Diagnostics.CodeAnalysis;
-using ModularPipelines.Attributes;
-
-namespace ModularPipelines.Chocolatey.Options;
-
-[ExcludeFromCodeCoverage]
-[CliSubCommand("download")]
-public record DownloadOptions(
- [property: CliArgument] string Pkg
-) : ChocoOptions
-{
- [CliOption("--source")]
- public virtual string? Source { get; set; }
-
- [CliOption("--version")]
- public virtual string? Version { get; set; }
-
- [CliFlag("--prerelease")]
- public virtual bool? Prerelease { get; set; }
-
- [CliOption("--user")]
- public virtual string? User { get; set; }
-
- [CliOption("--password")]
- public virtual string? Password { get; set; }
-
- [CliOption("--cert")]
- public virtual string? Cert { get; set; }
-
- [CliOption("--certpassword")]
- public virtual string? Certpassword { get; set; }
-
- [CliOption("--output-directory")]
- public virtual string? OutputDirectory { get; set; }
-
- [CliFlag("--ignore-dependencies")]
- public virtual bool? IgnoreDependencies { get; set; }
-
- [CliFlag("--installed-packages")]
- public virtual bool? InstalledPackages { get; set; }
-
- [CliFlag("--ignore-unfound-packages")]
- public virtual bool? IgnoreUnfoundPackages { get; set; }
-
- [CliFlag("--disable-package-repository-optimizations")]
- public virtual bool? DisablePackageRepositoryOptimizations { get; set; }
-
- [CliFlag("--internalize")]
- public virtual bool? Internalize { get; set; }
-
- [CliOption("--resources-location")]
- public virtual string? ResourcesLocation { get; set; }
-
- [CliOption("--download-location")]
- public virtual string? DownloadLocation { get; set; }
-
- [CliFlag("--internalize-all-urls")]
- public virtual bool? InternalizeAllUrls { get; set; }
-
- [CliFlag("--append-use-original-location")]
- public virtual bool? AppendUseOriginalLocation { get; set; }
-
- [CliFlag("--skip-download-cache")]
- public virtual bool? SkipDownloadCache { get; set; }
-
- [CliFlag("--use-download-cache")]
- public virtual bool? UseDownloadCache { get; set; }
-
- [CliFlag("--skip-virus-check")]
- public virtual bool? SkipVirusCheck { get; set; }
-
- [CliFlag("--virus-check")]
- public virtual bool? VirusCheck { get; set; }
-
- [CliOption("--virus-positives-minimum")]
- public virtual string? VirusPositivesMinimum { get; set; }
-
- [CliFlag("--force-self-service")]
- public virtual bool? ForceSelfService { get; set; }
-}
\ No newline at end of file
diff --git a/src/ModularPipelines.Chocolatey/Options/ExportOptions.cs b/src/ModularPipelines.Chocolatey/Options/ExportOptions.cs
deleted file mode 100644
index 9ed5db6d23..0000000000
--- a/src/ModularPipelines.Chocolatey/Options/ExportOptions.cs
+++ /dev/null
@@ -1,15 +0,0 @@
-using System.Diagnostics.CodeAnalysis;
-using ModularPipelines.Attributes;
-
-namespace ModularPipelines.Chocolatey.Options;
-
-[ExcludeFromCodeCoverage]
-[CliSubCommand("export")]
-public record ExportOptions : ChocoOptions
-{
- [CliOption("--output-file-path")]
- public virtual string? OutputFilePath { get; set; }
-
- [CliFlag("--include-version")]
- public virtual bool? IncludeVersion { get; set; }
-}
\ No newline at end of file
diff --git a/src/ModularPipelines.Chocolatey/Options/FeatureDisableOptions.cs b/src/ModularPipelines.Chocolatey/Options/FeatureDisableOptions.cs
deleted file mode 100644
index 57e56b0877..0000000000
--- a/src/ModularPipelines.Chocolatey/Options/FeatureDisableOptions.cs
+++ /dev/null
@@ -1,12 +0,0 @@
-using System.Diagnostics.CodeAnalysis;
-using ModularPipelines.Attributes;
-
-namespace ModularPipelines.Chocolatey.Options;
-
-[ExcludeFromCodeCoverage]
-[CliCommand("feature", "disable")]
-public record FeatureDisableOptions : ChocoOptions
-{
- [CliOption("--name")]
- public virtual string? Name { get; set; }
-}
\ No newline at end of file
diff --git a/src/ModularPipelines.Chocolatey/Options/FeatureEnableOptions.cs b/src/ModularPipelines.Chocolatey/Options/FeatureEnableOptions.cs
deleted file mode 100644
index 3d2a3112fd..0000000000
--- a/src/ModularPipelines.Chocolatey/Options/FeatureEnableOptions.cs
+++ /dev/null
@@ -1,12 +0,0 @@
-using System.Diagnostics.CodeAnalysis;
-using ModularPipelines.Attributes;
-
-namespace ModularPipelines.Chocolatey.Options;
-
-[ExcludeFromCodeCoverage]
-[CliCommand("feature", "enable")]
-public record FeatureEnableOptions : ChocoOptions
-{
- [CliOption("--name")]
- public virtual string? Name { get; set; }
-}
\ No newline at end of file
diff --git a/src/ModularPipelines.Chocolatey/Options/FeatureOptions.cs b/src/ModularPipelines.Chocolatey/Options/FeatureOptions.cs
deleted file mode 100644
index 52ce2926da..0000000000
--- a/src/ModularPipelines.Chocolatey/Options/FeatureOptions.cs
+++ /dev/null
@@ -1,12 +0,0 @@
-using System.Diagnostics.CodeAnalysis;
-using ModularPipelines.Attributes;
-
-namespace ModularPipelines.Chocolatey.Options;
-
-[ExcludeFromCodeCoverage]
-[CliSubCommand("feature")]
-public record FeatureOptions : ChocoOptions
-{
- [CliOption("--name")]
- public virtual string? Name { get; set; }
-}
\ No newline at end of file
diff --git a/src/ModularPipelines.Chocolatey/Options/FindOptions.cs b/src/ModularPipelines.Chocolatey/Options/FindOptions.cs
deleted file mode 100644
index 2bb97b62ac..0000000000
--- a/src/ModularPipelines.Chocolatey/Options/FindOptions.cs
+++ /dev/null
@@ -1,83 +0,0 @@
-using System.Diagnostics.CodeAnalysis;
-using ModularPipelines.Attributes;
-
-namespace ModularPipelines.Chocolatey.Options;
-
-[ExcludeFromCodeCoverage]
-[CliSubCommand("find")]
-public record FindOptions(
- [property: CliArgument] string Filter
-) : ChocoOptions
-{
- [CliOption("--source")]
- public virtual string? Source { get; set; }
-
- [CliFlag("--id-only")]
- public virtual bool? IdOnly { get; set; }
-
- [CliFlag("--prerelease")]
- public virtual bool? Prerelease { get; set; }
-
- [CliFlag("--include-programs")]
- public virtual bool? IncludePrograms { get; set; }
-
- [CliFlag("--all-versions")]
- public virtual bool? AllVersions { get; set; }
-
- [CliOption("--version")]
- public virtual string? Version { get; set; }
-
- [CliOption("--user")]
- public virtual string? User { get; set; }
-
- [CliOption("--password")]
- public virtual string? Password { get; set; }
-
- [CliOption("--cert")]
- public virtual string? Cert { get; set; }
-
- [CliOption("--certpassword")]
- public virtual string? Certpassword { get; set; }
-
- [CliOption("--page")]
- public virtual string? Page { get; set; }
-
- [CliOption("--page-size")]
- public virtual string? PageSize { get; set; }
-
- [CliFlag("--exact")]
- public virtual bool? Exact { get; set; }
-
- [CliFlag("--by-id-only")]
- public virtual bool? ByIdOnly { get; set; }
-
- [CliFlag("--by-tags-only")]
- public virtual bool? ByTagsOnly { get; set; }
-
- [CliFlag("--id-starts-with")]
- public virtual bool? IdStartsWith { get; set; }
-
- [CliFlag("--order-by-popularity")]
- public virtual bool? OrderByPopularity { get; set; }
-
- [CliFlag("--approved-only")]
- public virtual bool? ApprovedOnly { get; set; }
-
- [CliFlag("--download-cache-only")]
- public virtual bool? DownloadCacheOnly { get; set; }
-
- [CliFlag("--not-broken")]
- public virtual bool? NotBroken { get; set; }
-
- [CliFlag("--detailed")]
- public virtual bool? Detailed { get; set; }
-
- [CliFlag("--disable-package-repository-optimizations")]
- public virtual bool? DisablePackageRepositoryOptimizations { get; set; }
-
- [CliFlag("--show-audit-info")]
- public virtual bool? ShowAuditInfo { get; set; }
-
- [CliFlag("--force-self-service")]
- public virtual bool? ForceSelfService { get; set; }
-}
\ No newline at end of file
diff --git a/src/ModularPipelines.Chocolatey/Options/HelpOptions.cs b/src/ModularPipelines.Chocolatey/Options/HelpOptions.cs
deleted file mode 100644
index 87062fcdd1..0000000000
--- a/src/ModularPipelines.Chocolatey/Options/HelpOptions.cs
+++ /dev/null
@@ -1,8 +0,0 @@
-using System.Diagnostics.CodeAnalysis;
-using ModularPipelines.Attributes;
-
-namespace ModularPipelines.Chocolatey.Options;
-
-[ExcludeFromCodeCoverage]
-[CliSubCommand("help")]
-public record HelpOptions : ChocoOptions;
\ No newline at end of file
diff --git a/src/ModularPipelines.Chocolatey/Options/InfoOptions.cs b/src/ModularPipelines.Chocolatey/Options/InfoOptions.cs
deleted file mode 100644
index 50daa2d40c..0000000000
--- a/src/ModularPipelines.Chocolatey/Options/InfoOptions.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-using System.Diagnostics.CodeAnalysis;
-using ModularPipelines.Attributes;
-
-namespace ModularPipelines.Chocolatey.Options;
-
-[ExcludeFromCodeCoverage]
-[CliSubCommand("info")]
-public record InfoOptions : ChocoOptions
-{
- [CliOption("--source")]
- public virtual string? Source { get; set; }
-
- [CliFlag("--local-only")]
- public virtual bool? LocalOnly { get; set; }
-
- [CliOption("--version")]
- public virtual string? Version { get; set; }
-
- [CliFlag("--prerelease")]
- public virtual bool? Prerelease { get; set; }
-
- [CliOption("--user")]
- public virtual string? User { get; set; }
-
- [CliOption("--password")]
- public virtual string? Password { get; set; }
-
- [CliOption("--cert")]
- public virtual string? Cert { get; set; }
-
- [CliOption("--certpassword")]
- public virtual string? Certpassword { get; set; }
-
- [CliFlag("--disable-package-repository-optimizations")]
- public virtual bool? DisablePackageRepositoryOptimizations { get; set; }
-
- [CliFlag("--force-self-service")]
- public virtual bool? ForceSelfService { get; set; }
-}
\ No newline at end of file
diff --git a/src/ModularPipelines.Chocolatey/Options/InstallOptions.cs b/src/ModularPipelines.Chocolatey/Options/InstallOptions.cs
deleted file mode 100644
index f0e45b74c1..0000000000
--- a/src/ModularPipelines.Chocolatey/Options/InstallOptions.cs
+++ /dev/null
@@ -1,155 +0,0 @@
-using System.Diagnostics.CodeAnalysis;
-using ModularPipelines.Attributes;
-
-namespace ModularPipelines.Chocolatey.Options;
-
-[ExcludeFromCodeCoverage]
-[CliSubCommand("install")]
-public record InstallOptions(
- [property: CliArgument] string Pkg
-) : ChocoOptions
-{
- [CliOption("--source")]
- public virtual string? Source { get; set; }
-
- [CliOption("--version")]
- public virtual string? Version { get; set; }
-
- [CliFlag("--prerelease")]
- public virtual bool? Prerelease { get; set; }
-
- [CliFlag("--forcex86")]
- public virtual bool? Forcex86 { get; set; }
-
- [CliOption("--install-arguments")]
- public virtual string? InstallArguments { get; set; }
-
- [CliFlag("--override-arguments")]
- public virtual bool? OverrideArguments { get; set; }
-
- [CliFlag("--not-silent")]
- public virtual bool? NotSilent { get; set; }
-
- [CliOption("--package-parameters")]
- public virtual string? PackageParameters { get; set; }
-
- [CliFlag("--apply-install-arguments-to-dependencies")]
- public virtual bool? ApplyInstallArgumentsToDependencies { get; set; }
-
- [CliFlag("--apply-package-parameters-to-dependencies")]
- public virtual bool? ApplyPackageParametersToDependencies { get; set; }
-
- [CliFlag("--allow-downgrade")]
- public virtual bool? AllowDowngrade { get; set; }
-
- [CliFlag("--ignore-dependencies")]
- public virtual bool? IgnoreDependencies { get; set; }
-
- [CliFlag("--force-dependencies")]
- public virtual bool? ForceDependencies { get; set; }
-
- [CliFlag("--skip-automation-scripts")]
- public virtual bool? SkipAutomationScripts { get; set; }
-
- [CliOption("--user")]
- public virtual string? User { get; set; }
-
- [CliOption("--password")]
- public virtual string? Password { get; set; }
-
- [CliOption("--cert")]
- public virtual string? Cert { get; set; }
-
- [CliOption("--certpassword")]
- public virtual string? Certpassword { get; set; }
-
- [CliFlag("--ignore-checksums")]
- public virtual bool? IgnoreChecksums { get; set; }
-
- [CliFlag("--allow-empty-checksums")]
- public virtual bool? AllowEmptyChecksums { get; set; }
-
- [CliFlag("--allow-empty-checksums-secure")]
- public virtual bool? AllowEmptyChecksumsSecure { get; set; }
-
- [CliFlag("--require-checksums")]
- public virtual bool? RequireChecksums { get; set; }
-
- [CliOption("--download-checksum")]
- public virtual string? DownloadChecksum { get; set; }
-
- [CliOption("--download-checksum-x64")]
- public virtual string? DownloadChecksumX64 { get; set; }
-
- [CliOption("--download-checksum-type")]
- public virtual string? DownloadChecksumType { get; set; }
-
- [CliOption("--download-checksum-type-x64")]
- public virtual string? DownloadChecksumTypeX64 { get; set; }
-
- [CliFlag("--ignore-package-exit-codes")]
- public virtual bool? IgnorePackageExitCodes { get; set; }
-
- [CliFlag("--use-package-exit-codes")]
- public virtual bool? UsePackageExitCodes { get; set; }
-
- [CliFlag("--stop-on-first-package-failure")]
- public virtual bool? StopOnFirstPackageFailure { get; set; }
-
- [CliFlag("--exit-when-reboot-detected")]
- public virtual bool? ExitWhenRebootDetected { get; set; }
-
- [CliFlag("--ignore-detected-reboot")]
- public virtual bool? IgnoreDetectedReboot { get; set; }
-
- [CliFlag("--disable-package-repository-optimizations")]
- public virtual bool? DisablePackageRepositoryOptimizations { get; set; }
-
- [CliFlag("--pin-package")]
- public virtual bool? PinPackage { get; set; }
-
- [CliFlag("--skip-hooks")]
- public virtual bool? SkipHooks { get; set; }
-
- [CliFlag("--skip-download-cache")]
- public virtual bool? SkipDownloadCache { get; set; }
-
- [CliFlag("--use-download-cache")]
- public virtual bool? UseDownloadCache { get; set; }
-
- [CliFlag("--skip-virus-check")]
- public virtual bool? SkipVirusCheck { get; set; }
-
- [CliFlag("--virus-check")]
- public virtual bool? VirusCheck { get; set; }
-
- [CliOption("--virus-positives-minimum")]
- public virtual string? VirusPositivesMinimum { get; set; }
-
- [CliOption("--install-arguments-sensitive")]
- public virtual string? InstallArgumentsSensitive { get; set; }
-
- [CliOption("--package-parameters-sensitive")]
- public virtual string? PackageParametersSensitive { get; set; }
-
- [CliOption("--install-directory")]
- public virtual string? InstallDirectory { get; set; }
-
- [CliOption("--maximum-download-bits-per-second")]
- public virtual string? MaximumDownloadBitsPerSecond { get; set; }
-
- [CliFlag("--deflate-package-size")]
- public virtual bool? DeflatePackageSize { get; set; }
-
- [CliFlag("--no-deflate-package-size")]
- public virtual bool? NoDeflatePackageSize { get; set; }
-
- [CliFlag("--deflate-nupkg-only")]
- public virtual bool? DeflateNupkgOnly { get; set; }
-
- [CliOption("--note")]
- public virtual string? Note { get; set; }
-
- [CliFlag("--force-self-service")]
- public virtual bool? ForceSelfService { get; set; }
-}
\ No newline at end of file
diff --git a/src/ModularPipelines.Chocolatey/Options/ListOptions.cs b/src/ModularPipelines.Chocolatey/Options/ListOptions.cs
deleted file mode 100644
index b0c7105a43..0000000000
--- a/src/ModularPipelines.Chocolatey/Options/ListOptions.cs
+++ /dev/null
@@ -1,56 +0,0 @@
-using System.Diagnostics.CodeAnalysis;
-using ModularPipelines.Attributes;
-
-namespace ModularPipelines.Chocolatey.Options;
-
-[ExcludeFromCodeCoverage]
-[CliSubCommand("list")]
-public record ListOptions(
- [property: CliArgument] string Filter
-) : ChocoOptions
-{
- [CliOption("--source")]
- public virtual string? Source { get; set; }
-
- [CliFlag("--id-only")]
- public virtual bool? IdOnly { get; set; }
-
- [CliFlag("--prerelease")]
- public virtual bool? Prerelease { get; set; }
-
- [CliFlag("--include-programs")]
- public virtual bool? IncludePrograms { get; set; }
-
- [CliOption("--version")]
- public virtual string? Version { get; set; }
-
- [CliOption("--page")]
- public virtual string? Page { get; set; }
-
- [CliOption("--page-size")]
- public virtual string? PageSize { get; set; }
-
- [CliFlag("--exact")]
- public virtual bool? Exact { get; set; }
-
- [CliFlag("--by-id-only")]
- public virtual bool? ByIdOnly { get; set; }
-
- [CliFlag("--by-tags-only")]
- public virtual bool? ByTagsOnly { get; set; }
-
- [CliFlag("--id-starts-with")]
- public virtual bool? IdStartsWith { get; set; }
-
- [CliFlag("--detailed")]
- public virtual bool? Detailed { get; set; }
-
- [CliFlag("--disable-package-repository-optimizations")]
- public virtual bool? DisablePackageRepositoryOptimizations { get; set; }
-
- [CliFlag("--show-audit-info")]
- public virtual bool? ShowAuditInfo { get; set; }
-
- [CliFlag("--force-self-service")]
- public virtual bool? ForceSelfService { get; set; }
-}
\ No newline at end of file
diff --git a/src/ModularPipelines.Chocolatey/Options/NewOptions.cs b/src/ModularPipelines.Chocolatey/Options/NewOptions.cs
deleted file mode 100644
index b3f898c938..0000000000
--- a/src/ModularPipelines.Chocolatey/Options/NewOptions.cs
+++ /dev/null
@@ -1,62 +0,0 @@
-using System.Diagnostics.CodeAnalysis;
-using ModularPipelines.Attributes;
-
-namespace ModularPipelines.Chocolatey.Options;
-
-[ExcludeFromCodeCoverage]
-[CliSubCommand("new")]
-public record NewOptions(
- [property: CliArgument] string Name
-) : ChocoOptions
-{
- [CliFlag("--automaticpackage")]
- public virtual bool? Automaticpackage { get; set; }
-
- [CliOption("--template-name")]
- public virtual string? TemplateName { get; set; }
-
- [CliOption("--version")]
- public virtual string? Version { get; set; }
-
- [CliOption("--maintainer")]
- public virtual string? Maintainer { get; set; }
-
- [CliOption("--output-directory")]
- public virtual string? OutputDirectory { get; set; }
-
- [CliFlag("--use-built-in-template")]
- public virtual bool? UseBuiltInTemplate { get; set; }
-
- [CliOption("--url")]
- public virtual string? Url { get; set; }
-
- [CliOption("--url64")]
- public virtual string? Url64 { get; set; }
-
- [CliFlag("--use-original-files-location")]
- public virtual bool? UseOriginalFilesLocation { get; set; }
-
- [CliOption("--download-checksum")]
- public virtual string? DownloadChecksum { get; set; }
-
- [CliOption("--download-checksum-x64")]
- public virtual string? DownloadChecksumX64 { get; set; }
-
- [CliOption("--download-checksum-type")]
- public virtual string? DownloadChecksumType { get; set; }
-
- [CliFlag("--pause-on-error")]
- public virtual bool? PauseOnError { get; set; }
-
- [CliFlag("--build-packages")]
- public virtual bool? BuildPackages { get; set; }
-
- [CliFlag("--from-programs-and-features")]
- public virtual bool? FromProgramsAndFeatures { get; set; }
-
- [CliFlag("--remove-architecture-from-name")]
- public virtual bool? RemoveArchitectureFromName { get; set; }
-
- [CliFlag("--include-architecture-in-name")]
- public virtual bool? IncludeArchitectureInName { get; set; }
-}
\ No newline at end of file
diff --git a/src/ModularPipelines.Chocolatey/Options/OptimizeOptions.cs b/src/ModularPipelines.Chocolatey/Options/OptimizeOptions.cs
deleted file mode 100644
index fdfa0e9248..0000000000
--- a/src/ModularPipelines.Chocolatey/Options/OptimizeOptions.cs
+++ /dev/null
@@ -1,18 +0,0 @@
-using System.Diagnostics.CodeAnalysis;
-using ModularPipelines.Attributes;
-
-namespace ModularPipelines.Chocolatey.Options;
-
-[ExcludeFromCodeCoverage]
-[CliSubCommand("optimize")]
-public record OptimizeOptions : ChocoOptions
-{
- [CliFlag("--deflate-nupkg-only")]
- public virtual bool? DeflateNupkgOnly { get; set; }
-
- [CliOption("--id")]
- public virtual string? Id { get; set; }
-
- [CliFlag("--force-self-service")]
- public virtual bool? ForceSelfService { get; set; }
-}
\ No newline at end of file
diff --git a/src/ModularPipelines.Chocolatey/Options/OutdatedOptions.cs b/src/ModularPipelines.Chocolatey/Options/OutdatedOptions.cs
deleted file mode 100644
index 22a7374e55..0000000000
--- a/src/ModularPipelines.Chocolatey/Options/OutdatedOptions.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-using System.Diagnostics.CodeAnalysis;
-using ModularPipelines.Attributes;
-
-namespace ModularPipelines.Chocolatey.Options;
-
-[ExcludeFromCodeCoverage]
-[CliSubCommand("outdated")]
-public record OutdatedOptions : ChocoOptions
-{
- [CliOption("--source")]
- public virtual string? Source { get; set; }
-
- [CliOption("--user")]
- public virtual string? User { get; set; }
-
- [CliOption("--password")]
- public virtual string? Password { get; set; }
-
- [CliOption("--cert")]
- public virtual string? Cert { get; set; }
-
- [CliOption("--certpassword")]
- public virtual string? Certpassword { get; set; }
-
- [CliFlag("--prerelease")]
- public virtual bool? Prerelease { get; set; }
-
- [CliFlag("--ignore-pinned")]
- public virtual bool? IgnorePinned { get; set; }
-
- [CliFlag("--ignore-unfound")]
- public virtual bool? IgnoreUnfound { get; set; }
-
- [CliFlag("--disable-package-repository-optimizations")]
- public virtual bool? DisablePackageRepositoryOptimizations { get; set; }
-
- [CliFlag("--force-self-service")]
- public virtual bool? ForceSelfService { get; set; }
-}
\ No newline at end of file
diff --git a/src/ModularPipelines.Chocolatey/Options/PackOptions.cs b/src/ModularPipelines.Chocolatey/Options/PackOptions.cs
deleted file mode 100644
index 3923a01a96..0000000000
--- a/src/ModularPipelines.Chocolatey/Options/PackOptions.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-using System.Diagnostics.CodeAnalysis;
-using ModularPipelines.Attributes;
-
-namespace ModularPipelines.Chocolatey.Options;
-
-[ExcludeFromCodeCoverage]
-[CliSubCommand("pack")]
-public record PackOptions(
- [property: CliArgument] string Path
-) : ChocoOptions;
\ No newline at end of file
diff --git a/src/ModularPipelines.Chocolatey/Options/PinAddOptions.cs b/src/ModularPipelines.Chocolatey/Options/PinAddOptions.cs
deleted file mode 100644
index 8c44cf0a39..0000000000
--- a/src/ModularPipelines.Chocolatey/Options/PinAddOptions.cs
+++ /dev/null
@@ -1,21 +0,0 @@
-using System.Diagnostics.CodeAnalysis;
-using ModularPipelines.Attributes;
-
-namespace ModularPipelines.Chocolatey.Options;
-
-[ExcludeFromCodeCoverage]
-[CliCommand("pin", "add")]
-public record PinAddOptions : ChocoOptions
-{
- [CliOption("--name")]
- public virtual string? Name { get; set; }
-
- [CliOption("--version")]
- public virtual string? Version { get; set; }
-
- [CliOption("--note")]
- public virtual string? Note { get; set; }
-
- [CliFlag("--force-self-service")]
- public virtual bool? ForceSelfService { get; set; }
-}
\ No newline at end of file
diff --git a/src/ModularPipelines.Chocolatey/Options/PinOptions.cs b/src/ModularPipelines.Chocolatey/Options/PinOptions.cs
deleted file mode 100644
index 534e227794..0000000000
--- a/src/ModularPipelines.Chocolatey/Options/PinOptions.cs
+++ /dev/null
@@ -1,21 +0,0 @@
-using System.Diagnostics.CodeAnalysis;
-using ModularPipelines.Attributes;
-
-namespace ModularPipelines.Chocolatey.Options;
-
-[ExcludeFromCodeCoverage]
-[CliSubCommand("pin")]
-public record PinOptions : ChocoOptions
-{
- [CliOption("--name")]
- public virtual string? Name { get; set; }
-
- [CliOption("--version")]
- public virtual string? Version { get; set; }
-
- [CliOption("--note")]
- public virtual string? Note { get; set; }
-
- [CliFlag("--force-self-service")]
- public virtual bool? ForceSelfService { get; set; }
-}
\ No newline at end of file
diff --git a/src/ModularPipelines.Chocolatey/Options/PinRemoveOptions.cs b/src/ModularPipelines.Chocolatey/Options/PinRemoveOptions.cs
deleted file mode 100644
index d7ce85119f..0000000000
--- a/src/ModularPipelines.Chocolatey/Options/PinRemoveOptions.cs
+++ /dev/null
@@ -1,21 +0,0 @@
-using System.Diagnostics.CodeAnalysis;
-using ModularPipelines.Attributes;
-
-namespace ModularPipelines.Chocolatey.Options;
-
-[ExcludeFromCodeCoverage]
-[CliCommand("pin", "remove")]
-public record PinRemoveOptions : ChocoOptions
-{
- [CliOption("--name")]
- public virtual string? Name { get; set; }
-
- [CliOption("--version")]
- public virtual string? Version { get; set; }
-
- [CliOption("--note")]
- public virtual string? Note { get; set; }
-
- [CliFlag("--force-self-service")]
- public virtual bool? ForceSelfService { get; set; }
-}
\ No newline at end of file
diff --git a/src/ModularPipelines.Chocolatey/Options/PushOptions.cs b/src/ModularPipelines.Chocolatey/Options/PushOptions.cs
deleted file mode 100644
index dbdcc23e9a..0000000000
--- a/src/ModularPipelines.Chocolatey/Options/PushOptions.cs
+++ /dev/null
@@ -1,32 +0,0 @@
-using System.Diagnostics.CodeAnalysis;
-using ModularPipelines.Attributes;
-
-namespace ModularPipelines.Chocolatey.Options;
-
-[ExcludeFromCodeCoverage]
-[CliSubCommand("push")]
-public record PushOptions(
- [property: CliArgument] string Pkg
-) : ChocoOptions
-{
- [CliOption("--source")]
- public virtual string? Source { get; set; }
-
- [CliOption("--api-key")]
- public virtual string? ApiKey { get; set; }
-
- [CliOption("--code")]
- public virtual string? Code { get; set; }
-
- [CliOption("--redirecturl")]
- public virtual string? Redirecturl { get; set; }
-
- [CliOption("--endpoint")]
- public virtual string? Endpoint { get; set; }
-
- [CliFlag("--skip-cleanup")]
- public virtual bool? SkipCleanup { get; set; }
-
- [CliFlag("--force-self-service")]
- public virtual bool? ForceSelfService { get; set; }
-}
\ No newline at end of file
diff --git a/src/ModularPipelines.Chocolatey/Options/SearchOptions.cs b/src/ModularPipelines.Chocolatey/Options/SearchOptions.cs
deleted file mode 100644
index df1b5ed5ab..0000000000
--- a/src/ModularPipelines.Chocolatey/Options/SearchOptions.cs
+++ /dev/null
@@ -1,83 +0,0 @@
-using System.Diagnostics.CodeAnalysis;
-using ModularPipelines.Attributes;
-
-namespace ModularPipelines.Chocolatey.Options;
-
-[ExcludeFromCodeCoverage]
-[CliSubCommand("search")]
-public record SearchOptions(
- [property: CliArgument] string Filter
-) : ChocoOptions
-{
- [CliOption("--source")]
- public virtual string? Source { get; set; }
-
- [CliFlag("--id-only")]
- public virtual bool? IdOnly { get; set; }
-
- [CliFlag("--prerelease")]
- public virtual bool? Prerelease { get; set; }
-
- [CliFlag("--include-programs")]
- public virtual bool? IncludePrograms { get; set; }
-
- [CliFlag("--all-versions")]
- public virtual bool? AllVersions { get; set; }
-
- [CliOption("--version")]
- public virtual string? Version { get; set; }
-
- [CliOption("--user")]
- public virtual string? User { get; set; }
-
- [CliOption("--password")]
- public virtual string? Password { get; set; }
-
- [CliOption("--cert")]
- public virtual string? Cert { get; set; }
-
- [CliOption("--certpassword")]
- public virtual string? Certpassword { get; set; }
-
- [CliOption("--page")]
- public virtual string? Page { get; set; }
-
- [CliOption("--page-size")]
- public virtual string? PageSize { get; set; }
-
- [CliFlag("--exact")]
- public virtual bool? Exact { get; set; }
-
- [CliFlag("--by-id-only")]
- public virtual bool? ByIdOnly { get; set; }
-
- [CliFlag("--by-tags-only")]
- public virtual bool? ByTagsOnly { get; set; }
-
- [CliFlag("--id-starts-with")]
- public virtual bool? IdStartsWith { get; set; }
-
- [CliFlag("--order-by-popularity")]
- public virtual bool? OrderByPopularity { get; set; }
-
- [CliFlag("--approved-only")]
- public virtual bool? ApprovedOnly { get; set; }
-
- [CliFlag("--download-cache-only")]
- public virtual bool? DownloadCacheOnly { get; set; }
-
- [CliFlag("--not-broken")]
- public virtual bool? NotBroken { get; set; }
-
- [CliFlag("--detailed")]
- public virtual bool? Detailed { get; set; }
-
- [CliFlag("--disable-package-repository-optimizations")]
- public virtual bool? DisablePackageRepositoryOptimizations { get; set; }
-
- [CliFlag("--show-audit-info")]
- public virtual bool? ShowAuditInfo { get; set; }
-
- [CliFlag("--force-self-service")]
- public virtual bool? ForceSelfService { get; set; }
-}
\ No newline at end of file
diff --git a/src/ModularPipelines.Chocolatey/Options/SetapikeyOptions.cs b/src/ModularPipelines.Chocolatey/Options/SetapikeyOptions.cs
deleted file mode 100644
index d853e5c2b4..0000000000
--- a/src/ModularPipelines.Chocolatey/Options/SetapikeyOptions.cs
+++ /dev/null
@@ -1,15 +0,0 @@
-using System.Diagnostics.CodeAnalysis;
-using ModularPipelines.Attributes;
-
-namespace ModularPipelines.Chocolatey.Options;
-
-[ExcludeFromCodeCoverage]
-[CliSubCommand("setapikey")]
-public record SetApiKeyOptions : ChocoOptions
-{
- [CliOption("--source")]
- public virtual string? Source { get; set; }
-
- [CliOption("--api-key")]
- public virtual string? ApiKey { get; set; }
-}
\ No newline at end of file
diff --git a/src/ModularPipelines.Chocolatey/Options/SourceAddOptions.cs b/src/ModularPipelines.Chocolatey/Options/SourceAddOptions.cs
deleted file mode 100644
index 0fc01a980b..0000000000
--- a/src/ModularPipelines.Chocolatey/Options/SourceAddOptions.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-using System.Diagnostics.CodeAnalysis;
-using ModularPipelines.Attributes;
-
-namespace ModularPipelines.Chocolatey.Options;
-
-[ExcludeFromCodeCoverage]
-[CliCommand("source", "add")]
-public record SourceAddOptions : ChocoOptions
-{
- [CliOption("--name")]
- public virtual string? Name { get; set; }
-
- [CliOption("--source")]
- public virtual string? Source { get; set; }
-
- [CliOption("--user")]
- public virtual string? User { get; set; }
-
- [CliOption("--password")]
- public virtual string? Password { get; set; }
-
- [CliOption("--cert")]
- public virtual string? Cert { get; set; }
-
- [CliOption("--certpassword")]
- public virtual string? Certpassword { get; set; }
-
- [CliOption("--priority")]
- public virtual string? Priority { get; set; }
-
- [CliFlag("--bypass-proxy")]
- public virtual bool? BypassProxy { get; set; }
-
- [CliFlag("--allow-self-service")]
- public virtual bool? AllowSelfService { get; set; }
-
- [CliFlag("--admin-only")]
- public virtual bool? AdminOnly { get; set; }
-}
\ No newline at end of file
diff --git a/src/ModularPipelines.Chocolatey/Options/SourceDisableOptions.cs b/src/ModularPipelines.Chocolatey/Options/SourceDisableOptions.cs
deleted file mode 100644
index f7e0f5435a..0000000000
--- a/src/ModularPipelines.Chocolatey/Options/SourceDisableOptions.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-using System.Diagnostics.CodeAnalysis;
-using ModularPipelines.Attributes;
-
-namespace ModularPipelines.Chocolatey.Options;
-
-[ExcludeFromCodeCoverage]
-[CliCommand("source", "disable")]
-public record SourceDisableOptions : ChocoOptions
-{
- [CliOption("--name")]
- public virtual string? Name { get; set; }
-
- [CliOption("--source")]
- public virtual string? Source { get; set; }
-
- [CliOption("--user")]
- public virtual string? User { get; set; }
-
- [CliOption("--password")]
- public virtual string? Password { get; set; }
-
- [CliOption("--cert")]
- public virtual string? Cert { get; set; }
-
- [CliOption("--certpassword")]
- public virtual string? Certpassword { get; set; }
-
- [CliOption("--priority")]
- public virtual string? Priority { get; set; }
-
- [CliFlag("--bypass-proxy")]
- public virtual bool? BypassProxy { get; set; }
-
- [CliFlag("--allow-self-service")]
- public virtual bool? AllowSelfService { get; set; }
-
- [CliFlag("--admin-only")]
- public virtual bool? AdminOnly { get; set; }
-}
\ No newline at end of file
diff --git a/src/ModularPipelines.Chocolatey/Options/SourceEnableOptions.cs b/src/ModularPipelines.Chocolatey/Options/SourceEnableOptions.cs
deleted file mode 100644
index 5145c7ac2d..0000000000
--- a/src/ModularPipelines.Chocolatey/Options/SourceEnableOptions.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-using System.Diagnostics.CodeAnalysis;
-using ModularPipelines.Attributes;
-
-namespace ModularPipelines.Chocolatey.Options;
-
-[ExcludeFromCodeCoverage]
-[CliCommand("source", "enable")]
-public record SourceEnableOptions : ChocoOptions
-{
- [CliOption("--name")]
- public virtual string? Name { get; set; }
-
- [CliOption("--source")]
- public virtual string? Source { get; set; }
-
- [CliOption("--user")]
- public virtual string? User { get; set; }
-
- [CliOption("--password")]
- public virtual string? Password { get; set; }
-
- [CliOption("--cert")]
- public virtual string? Cert { get; set; }
-
- [CliOption("--certpassword")]
- public virtual string? Certpassword { get; set; }
-
- [CliOption("--priority")]
- public virtual string? Priority { get; set; }
-
- [CliFlag("--bypass-proxy")]
- public virtual bool? BypassProxy { get; set; }
-
- [CliFlag("--allow-self-service")]
- public virtual bool? AllowSelfService { get; set; }
-
- [CliFlag("--admin-only")]
- public virtual bool? AdminOnly { get; set; }
-}
\ No newline at end of file
diff --git a/src/ModularPipelines.Chocolatey/Options/SourceOptions.cs b/src/ModularPipelines.Chocolatey/Options/SourceOptions.cs
deleted file mode 100644
index 31b7b6b56d..0000000000
--- a/src/ModularPipelines.Chocolatey/Options/SourceOptions.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-using System.Diagnostics.CodeAnalysis;
-using ModularPipelines.Attributes;
-
-namespace ModularPipelines.Chocolatey.Options;
-
-[ExcludeFromCodeCoverage]
-[CliSubCommand("source")]
-public record SourceOptions : ChocoOptions
-{
- [CliOption("--name")]
- public virtual string? Name { get; set; }
-
- [CliOption("--source")]
- public virtual string? Source { get; set; }
-
- [CliOption("--user")]
- public virtual string? User { get; set; }
-
- [CliOption("--password")]
- public virtual string? Password { get; set; }
-
- [CliOption("--cert")]
- public virtual string? Cert { get; set; }
-
- [CliOption("--certpassword")]
- public virtual string? Certpassword { get; set; }
-
- [CliOption("--priority")]
- public virtual string? Priority { get; set; }
-
- [CliFlag("--bypass-proxy")]
- public virtual bool? BypassProxy { get; set; }
-
- [CliFlag("--allow-self-service")]
- public virtual bool? AllowSelfService { get; set; }
-
- [CliFlag("--admin-only")]
- public virtual bool? AdminOnly { get; set; }
-}
\ No newline at end of file
diff --git a/src/ModularPipelines.Chocolatey/Options/SourceRemoveOptions.cs b/src/ModularPipelines.Chocolatey/Options/SourceRemoveOptions.cs
deleted file mode 100644
index 2dd752133f..0000000000
--- a/src/ModularPipelines.Chocolatey/Options/SourceRemoveOptions.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-using System.Diagnostics.CodeAnalysis;
-using ModularPipelines.Attributes;
-
-namespace ModularPipelines.Chocolatey.Options;
-
-[ExcludeFromCodeCoverage]
-[CliCommand("source", "remove")]
-public record SourceRemoveOptions : ChocoOptions
-{
- [CliOption("--name")]
- public virtual string? Name { get; set; }
-
- [CliOption("--source")]
- public virtual string? Source { get; set; }
-
- [CliOption("--user")]
- public virtual string? User { get; set; }
-
- [CliOption("--password")]
- public virtual string? Password { get; set; }
-
- [CliOption("--cert")]
- public virtual string? Cert { get; set; }
-
- [CliOption("--certpassword")]
- public virtual string? Certpassword { get; set; }
-
- [CliOption("--priority")]
- public virtual string? Priority { get; set; }
-
- [CliFlag("--bypass-proxy")]
- public virtual bool? BypassProxy { get; set; }
-
- [CliFlag("--allow-self-service")]
- public virtual bool? AllowSelfService { get; set; }
-
- [CliFlag("--admin-only")]
- public virtual bool? AdminOnly { get; set; }
-}
\ No newline at end of file
diff --git a/src/ModularPipelines.Chocolatey/Options/SourcesAddOptions.cs b/src/ModularPipelines.Chocolatey/Options/SourcesAddOptions.cs
deleted file mode 100644
index b25db15546..0000000000
--- a/src/ModularPipelines.Chocolatey/Options/SourcesAddOptions.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-using System.Diagnostics.CodeAnalysis;
-using ModularPipelines.Attributes;
-
-namespace ModularPipelines.Chocolatey.Options;
-
-[ExcludeFromCodeCoverage]
-[CliCommand("sources", "add")]
-public record SourcesAddOptions : ChocoOptions
-{
- [CliOption("--name")]
- public virtual string? Name { get; set; }
-
- [CliOption("--source")]
- public virtual string? Source { get; set; }
-
- [CliOption("--user")]
- public virtual string? User { get; set; }
-
- [CliOption("--password")]
- public virtual string? Password { get; set; }
-
- [CliOption("--cert")]
- public virtual string? Cert { get; set; }
-
- [CliOption("--certpassword")]
- public virtual string? Certpassword { get; set; }
-
- [CliOption("--priority")]
- public virtual string? Priority { get; set; }
-
- [CliFlag("--bypass-proxy")]
- public virtual bool? BypassProxy { get; set; }
-
- [CliFlag("--allow-self-service")]
- public virtual bool? AllowSelfService { get; set; }
-
- [CliFlag("--admin-only")]
- public virtual bool? AdminOnly { get; set; }
-}
\ No newline at end of file
diff --git a/src/ModularPipelines.Chocolatey/Options/SourcesDisableOptions.cs b/src/ModularPipelines.Chocolatey/Options/SourcesDisableOptions.cs
deleted file mode 100644
index 1322af1979..0000000000
--- a/src/ModularPipelines.Chocolatey/Options/SourcesDisableOptions.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-using System.Diagnostics.CodeAnalysis;
-using ModularPipelines.Attributes;
-
-namespace ModularPipelines.Chocolatey.Options;
-
-[ExcludeFromCodeCoverage]
-[CliCommand("sources", "disable")]
-public record SourcesDisableOptions : ChocoOptions
-{
- [CliOption("--name")]
- public virtual string? Name { get; set; }
-
- [CliOption("--source")]
- public virtual string? Source { get; set; }
-
- [CliOption("--user")]
- public virtual string? User { get; set; }
-
- [CliOption("--password")]
- public virtual string? Password { get; set; }
-
- [CliOption("--cert")]
- public virtual string? Cert { get; set; }
-
- [CliOption("--certpassword")]
- public virtual string? Certpassword { get; set; }
-
- [CliOption("--priority")]
- public virtual string? Priority { get; set; }
-
- [CliFlag("--bypass-proxy")]
- public virtual bool? BypassProxy { get; set; }
-
- [CliFlag("--allow-self-service")]
- public virtual bool? AllowSelfService { get; set; }
-
- [CliFlag("--admin-only")]
- public virtual bool? AdminOnly { get; set; }
-}
\ No newline at end of file
diff --git a/src/ModularPipelines.Chocolatey/Options/SourcesEnableOptions.cs b/src/ModularPipelines.Chocolatey/Options/SourcesEnableOptions.cs
deleted file mode 100644
index 3630c56f6e..0000000000
--- a/src/ModularPipelines.Chocolatey/Options/SourcesEnableOptions.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-using System.Diagnostics.CodeAnalysis;
-using ModularPipelines.Attributes;
-
-namespace ModularPipelines.Chocolatey.Options;
-
-[ExcludeFromCodeCoverage]
-[CliCommand("sources", "enable")]
-public record SourcesEnableOptions : ChocoOptions
-{
- [CliOption("--name")]
- public virtual string? Name { get; set; }
-
- [CliOption("--source")]
- public virtual string? Source { get; set; }
-
- [CliOption("--user")]
- public virtual string? User { get; set; }
-
- [CliOption("--password")]
- public virtual string? Password { get; set; }
-
- [CliOption("--cert")]
- public virtual string? Cert { get; set; }
-
- [CliOption("--certpassword")]
- public virtual string? Certpassword { get; set; }
-
- [CliOption("--priority")]
- public virtual string? Priority { get; set; }
-
- [CliFlag("--bypass-proxy")]
- public virtual bool? BypassProxy { get; set; }
-
- [CliFlag("--allow-self-service")]
- public virtual bool? AllowSelfService { get; set; }
-
- [CliFlag("--admin-only")]
- public virtual bool? AdminOnly { get; set; }
-}
\ No newline at end of file
diff --git a/src/ModularPipelines.Chocolatey/Options/SourcesOptions.cs b/src/ModularPipelines.Chocolatey/Options/SourcesOptions.cs
deleted file mode 100644
index 014850f15f..0000000000
--- a/src/ModularPipelines.Chocolatey/Options/SourcesOptions.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-using System.Diagnostics.CodeAnalysis;
-using ModularPipelines.Attributes;
-
-namespace ModularPipelines.Chocolatey.Options;
-
-[ExcludeFromCodeCoverage]
-[CliSubCommand("sources")]
-public record SourcesOptions : ChocoOptions
-{
- [CliOption("--name")]
- public virtual string? Name { get; set; }
-
- [CliOption("--source")]
- public virtual string? Source { get; set; }
-
- [CliOption("--user")]
- public virtual string? User { get; set; }
-
- [CliOption("--password")]
- public virtual string? Password { get; set; }
-
- [CliOption("--cert")]
- public virtual string? Cert { get; set; }
-
- [CliOption("--certpassword")]
- public virtual string? Certpassword { get; set; }
-
- [CliOption("--priority")]
- public virtual string? Priority { get; set; }
-
- [CliFlag("--bypass-proxy")]
- public virtual bool? BypassProxy { get; set; }
-
- [CliFlag("--allow-self-service")]
- public virtual bool? AllowSelfService { get; set; }
-
- [CliFlag("--admin-only")]
- public virtual bool? AdminOnly { get; set; }
-}
\ No newline at end of file
diff --git a/src/ModularPipelines.Chocolatey/Options/SourcesRemoveOptions.cs b/src/ModularPipelines.Chocolatey/Options/SourcesRemoveOptions.cs
deleted file mode 100644
index beaa688ca4..0000000000
--- a/src/ModularPipelines.Chocolatey/Options/SourcesRemoveOptions.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-using System.Diagnostics.CodeAnalysis;
-using ModularPipelines.Attributes;
-
-namespace ModularPipelines.Chocolatey.Options;
-
-[ExcludeFromCodeCoverage]
-[CliCommand("sources", "remove")]
-public record SourcesRemoveOptions : ChocoOptions
-{
- [CliOption("--name")]
- public virtual string? Name { get; set; }
-
- [CliOption("--source")]
- public virtual string? Source { get; set; }
-
- [CliOption("--user")]
- public virtual string? User { get; set; }
-
- [CliOption("--password")]
- public virtual string? Password { get; set; }
-
- [CliOption("--cert")]
- public virtual string? Cert { get; set; }
-
- [CliOption("--certpassword")]
- public virtual string? Certpassword { get; set; }
-
- [CliOption("--priority")]
- public virtual string? Priority { get; set; }
-
- [CliFlag("--bypass-proxy")]
- public virtual bool? BypassProxy { get; set; }
-
- [CliFlag("--allow-self-service")]
- public virtual bool? AllowSelfService { get; set; }
-
- [CliFlag("--admin-only")]
- public virtual bool? AdminOnly { get; set; }
-}
\ No newline at end of file
diff --git a/src/ModularPipelines.Chocolatey/Options/SupportOptions.cs b/src/ModularPipelines.Chocolatey/Options/SupportOptions.cs
deleted file mode 100644
index 8734b556cb..0000000000
--- a/src/ModularPipelines.Chocolatey/Options/SupportOptions.cs
+++ /dev/null
@@ -1,8 +0,0 @@
-using System.Diagnostics.CodeAnalysis;
-using ModularPipelines.Attributes;
-
-namespace ModularPipelines.Chocolatey.Options;
-
-[ExcludeFromCodeCoverage]
-[CliSubCommand("support")]
-public record SupportOptions : ChocoOptions;
\ No newline at end of file
diff --git a/src/ModularPipelines.Chocolatey/Options/SyncOptions.cs b/src/ModularPipelines.Chocolatey/Options/SyncOptions.cs
deleted file mode 100644
index 17ffe0c376..0000000000
--- a/src/ModularPipelines.Chocolatey/Options/SyncOptions.cs
+++ /dev/null
@@ -1,21 +0,0 @@
-using System.Diagnostics.CodeAnalysis;
-using ModularPipelines.Attributes;
-
-namespace ModularPipelines.Chocolatey.Options;
-
-[ExcludeFromCodeCoverage]
-[CliSubCommand("sync")]
-public record SyncOptions : ChocoOptions
-{
- [CliOption("--id")]
- public virtual string? Id { get; set; }
-
- [CliOption("--package-id")]
- public virtual string? PackageId { get; set; }
-
- [CliOption("--output-directory")]
- public virtual string? OutputDirectory { get; set; }
-
- [CliFlag("--force-self-service")]
- public virtual bool? ForceSelfService { get; set; }
-}
\ No newline at end of file
diff --git a/src/ModularPipelines.Chocolatey/Options/TemplateInfoOptions.cs b/src/ModularPipelines.Chocolatey/Options/TemplateInfoOptions.cs
deleted file mode 100644
index f040acc10c..0000000000
--- a/src/ModularPipelines.Chocolatey/Options/TemplateInfoOptions.cs
+++ /dev/null
@@ -1,12 +0,0 @@
-using System.Diagnostics.CodeAnalysis;
-using ModularPipelines.Attributes;
-
-namespace ModularPipelines.Chocolatey.Options;
-
-[ExcludeFromCodeCoverage]
-[CliCommand("template", "info")]
-public record TemplateInfoOptions : ChocoOptions
-{
- [CliOption("--name")]
- public virtual string? Name { get; set; }
-}
\ No newline at end of file
diff --git a/src/ModularPipelines.Chocolatey/Options/TemplateOptions.cs b/src/ModularPipelines.Chocolatey/Options/TemplateOptions.cs
deleted file mode 100644
index b3be2b82dd..0000000000
--- a/src/ModularPipelines.Chocolatey/Options/TemplateOptions.cs
+++ /dev/null
@@ -1,12 +0,0 @@
-using System.Diagnostics.CodeAnalysis;
-using ModularPipelines.Attributes;
-
-namespace ModularPipelines.Chocolatey.Options;
-
-[ExcludeFromCodeCoverage]
-[CliSubCommand("template")]
-public record TemplateOptions : ChocoOptions
-{
- [CliOption("--name")]
- public virtual string? Name { get; set; }
-}
\ No newline at end of file
diff --git a/src/ModularPipelines.Chocolatey/Options/UninstallOptions.cs b/src/ModularPipelines.Chocolatey/Options/UninstallOptions.cs
deleted file mode 100644
index d27355bdce..0000000000
--- a/src/ModularPipelines.Chocolatey/Options/UninstallOptions.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-using System.Diagnostics.CodeAnalysis;
-using ModularPipelines.Attributes;
-
-namespace ModularPipelines.Chocolatey.Options;
-
-[ExcludeFromCodeCoverage]
-[CliSubCommand("uninstall")]
-public record UninstallOptions(
- [property: CliArgument] string Package
-) : ChocoOptions;
\ No newline at end of file
diff --git a/src/ModularPipelines.Chocolatey/Options/UpgradeOptions.cs b/src/ModularPipelines.Chocolatey/Options/UpgradeOptions.cs
deleted file mode 100644
index dba4928509..0000000000
--- a/src/ModularPipelines.Chocolatey/Options/UpgradeOptions.cs
+++ /dev/null
@@ -1,185 +0,0 @@
-using System.Diagnostics.CodeAnalysis;
-using ModularPipelines.Attributes;
-
-namespace ModularPipelines.Chocolatey.Options;
-
-[ExcludeFromCodeCoverage]
-[CliSubCommand("upgrade")]
-public record UpgradeOptions(
- [property: CliArgument] string Pkg
-) : ChocoOptions
-{
- [CliOption("--source")]
- public virtual string? Source { get; set; }
-
- [CliOption("--version")]
- public virtual string? Version { get; set; }
-
- [CliFlag("--prerelease")]
- public virtual bool? Prerelease { get; set; }
-
- [CliFlag("--forcex86")]
- public virtual bool? Forcex86 { get; set; }
-
- [CliOption("--install-arguments")]
- public virtual string? InstallArguments { get; set; }
-
- [CliFlag("--override-arguments")]
- public virtual bool? OverrideArguments { get; set; }
-
- [CliFlag("--not-silent")]
- public virtual bool? NotSilent { get; set; }
-
- [CliOption("--package-parameters")]
- public virtual string? PackageParameters { get; set; }
-
- [CliFlag("--apply-install-arguments-to-dependencies")]
- public virtual bool? ApplyInstallArgumentsToDependencies { get; set; }
-
- [CliFlag("--apply-package-parameters-to-dependencies")]
- public virtual bool? ApplyPackageParametersToDependencies { get; set; }
-
- [CliFlag("--allow-downgrade")]
- public virtual bool? AllowDowngrade { get; set; }
-
- [CliFlag("--ignore-dependencies")]
- public virtual bool? IgnoreDependencies { get; set; }
-
- [CliFlag("--skip-automation-scripts")]
- public virtual bool? SkipAutomationScripts { get; set; }
-
- [CliFlag("--fail-on-unfound")]
- public virtual bool? FailOnUnfound { get; set; }
-
- [CliFlag("--ignore-unfound")]
- public virtual bool? IgnoreUnfound { get; set; }
-
- [CliFlag("--fail-on-not-installed")]
- public virtual bool? FailOnNotInstalled { get; set; }
-
- [CliOption("--user")]
- public virtual string? User { get; set; }
-
- [CliOption("--password")]
- public virtual string? Password { get; set; }
-
- [CliOption("--cert")]
- public virtual string? Cert { get; set; }
-
- [CliOption("--certpassword")]
- public virtual string? Certpassword { get; set; }
-
- [CliFlag("--ignore-checksums")]
- public virtual bool? IgnoreChecksums { get; set; }
-
- [CliFlag("--allow-empty-checksums")]
- public virtual bool? AllowEmptyChecksums { get; set; }
-
- [CliFlag("--allow-empty-checksums-secure")]
- public virtual bool? AllowEmptyChecksumsSecure { get; set; }
-
- [CliFlag("--require-checksums")]
- public virtual bool? RequireChecksums { get; set; }
-
- [CliOption("--download-checksum")]
- public virtual string? DownloadChecksum { get; set; }
-
- [CliOption("--download-checksum-x64")]
- public virtual string? DownloadChecksumX64 { get; set; }
-
- [CliOption("--download-checksum-type")]
- public virtual string? DownloadChecksumType { get; set; }
-
- [CliOption("--download-checksum-type-x64")]
- public virtual string? DownloadChecksumTypeX64 { get; set; }
-
- [CliFlag("--ignore-package-exit-codes")]
- public virtual bool? IgnorePackageExitCodes { get; set; }
-
- [CliFlag("--use-package-exit-codes")]
- public virtual bool? UsePackageExitCodes { get; set; }
-
- [CliOption("--except")]
- public virtual string? Except { get; set; }
-
- [CliFlag("--stop-on-first-package-failure")]
- public virtual bool? StopOnFirstPackageFailure { get; set; }
-
- [CliFlag("--skip-when-not-installed")]
- public virtual bool? SkipWhenNotInstalled { get; set; }
-
- [CliFlag("--install-if-not-installed")]
- public virtual bool? InstallIfNotInstalled { get; set; }
-
- [CliFlag("--exclude-prereleases")]
- public virtual bool? ExcludePrereleases { get; set; }
-
- [CliFlag("--use-remembered-options")]
- public virtual bool? UseRememberedOptions { get; set; }
-
- [CliFlag("--ignore-remembered-options")]
- public virtual bool? IgnoreRememberedOptions { get; set; }
-
- [CliFlag("--exit-when-reboot-detected")]
- public virtual bool? ExitWhenRebootDetected { get; set; }
-
- [CliFlag("--ignore-detected-reboot")]
- public virtual bool? IgnoreDetectedReboot { get; set; }
-
- [CliFlag("--disable-package-repository-optimizations")]
- public virtual bool? DisablePackageRepositoryOptimizations { get; set; }
-
- [CliFlag("--pin-package")]
- public virtual bool? PinPackage { get; set; }
-
- [CliFlag("--skip-hooks")]
- public virtual bool? SkipHooks { get; set; }
-
- [CliFlag("--skip-download-cache")]
- public virtual bool? SkipDownloadCache { get; set; }
-
- [CliFlag("--use-download-cache")]
- public virtual bool? UseDownloadCache { get; set; }
-
- [CliFlag("--skip-virus-check")]
- public virtual bool? SkipVirusCheck { get; set; }
-
- [CliFlag("--virus-check")]
- public virtual bool? VirusCheck { get; set; }
-
- [CliOption("--virus-positives-minimum")]
- public virtual string? VirusPositivesMinimum { get; set; }
-
- [CliOption("--install-arguments-sensitive")]
- public virtual string? InstallArgumentsSensitive { get; set; }
-
- [CliOption("--package-parameters-sensitive")]
- public virtual string? PackageParametersSensitive { get; set; }
-
- [CliOption("--install-directory")]
- public virtual string? InstallDirectory { get; set; }
-
- [CliOption("--maximum-download-bits-per-second")]
- public virtual string? MaximumDownloadBitsPerSecond { get; set; }
-
- [CliFlag("--deflate-package-size")]
- public virtual bool? DeflatePackageSize { get; set; }
-
- [CliFlag("--no-deflate-package-size")]
- public virtual bool? NoDeflatePackageSize { get; set; }
-
- [CliFlag("--deflate-nupkg-only")]
- public virtual bool? DeflateNupkgOnly { get; set; }
-
- [CliFlag("--exclude-chocolatey-packages-during-upgrade-all")]
- public virtual bool? ExcludeChocolateyPackagesDuringUpgradeAll { get; set; }
-
- [CliFlag("--include-chocolatey-packages-during-upgrade-all")]
- public virtual bool? IncludeChocolateyPackagesDuringUpgradeAll { get; set; }
-
- [CliOption("--note")]
- public virtual string? Note { get; set; }
-
- [CliFlag("--force-self-service")]
- public virtual bool? ForceSelfService { get; set; }
-}
\ No newline at end of file
diff --git a/src/ModularPipelines.Chocolatey/Services/Choco.cs b/src/ModularPipelines.Chocolatey/Services/Choco.cs
new file mode 100644
index 0000000000..d1696c8398
--- /dev/null
+++ b/src/ModularPipelines.Chocolatey/Services/Choco.cs
@@ -0,0 +1,274 @@
+//
+// This file was generated by ModularPipelines.OptionsGenerator.
+// Do not edit this file manually.
+//
+
+using ModularPipelines.Context;
+using ModularPipelines.Models;
+using ModularPipelines.Options;
+using ModularPipelines.Chocolatey.Options;
+
+namespace ModularPipelines.Chocolatey.Services;
+
+///
+/// Generated implementation for choco CLI commands.
+///
+internal class Choco : IChoco
+{
+ private readonly ICommand _command;
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public Choco(ICommand command)
+ {
+ _command = command;
+ }
+
+ #region Commands
+
+ ///
+ public virtual async Task Apikey(
+ ChocoApikeyOptions? options = default,
+ CommandExecutionOptions? executionOptions = null,
+ CancellationToken cancellationToken = default)
+ {
+ return await _command.ExecuteCommandLineTool(options ?? new ChocoApikeyOptions(), executionOptions, cancellationToken);
+ }
+
+ ///
+ public virtual async Task Cache(
+ ChocoCacheOptions? options = default,
+ CommandExecutionOptions? executionOptions = null,
+ CancellationToken cancellationToken = default)
+ {
+ return await _command.ExecuteCommandLineTool(options ?? new ChocoCacheOptions(), executionOptions, cancellationToken);
+ }
+
+ ///
+ public virtual async Task Config(
+ ChocoConfigOptions? options = default,
+ CommandExecutionOptions? executionOptions = null,
+ CancellationToken cancellationToken = default)
+ {
+ return await _command.ExecuteCommandLineTool(options ?? new ChocoConfigOptions(), executionOptions, cancellationToken);
+ }
+
+ ///
+ public virtual async Task Export(
+ ChocoExportOptions? options = default,
+ CommandExecutionOptions? executionOptions = null,
+ CancellationToken cancellationToken = default)
+ {
+ return await _command.ExecuteCommandLineTool(options ?? new ChocoExportOptions(), executionOptions, cancellationToken);
+ }
+
+ ///
+ public virtual async Task Feature(
+ ChocoFeatureOptions? options = default,
+ CommandExecutionOptions? executionOptions = null,
+ CancellationToken cancellationToken = default)
+ {
+ return await _command.ExecuteCommandLineTool(options ?? new ChocoFeatureOptions(), executionOptions, cancellationToken);
+ }
+
+ ///
+ public virtual async Task Features(
+ ChocoFeaturesOptions? options = default,
+ CommandExecutionOptions? executionOptions = null,
+ CancellationToken cancellationToken = default)
+ {
+ return await _command.ExecuteCommandLineTool(options ?? new ChocoFeaturesOptions(), executionOptions, cancellationToken);
+ }
+
+ ///
+ public virtual async Task Find(
+ ChocoFindOptions? options = default,
+ CommandExecutionOptions? executionOptions = null,
+ CancellationToken cancellationToken = default)
+ {
+ return await _command.ExecuteCommandLineTool(options ?? new ChocoFindOptions(), executionOptions, cancellationToken);
+ }
+
+ ///
+ public virtual async Task Info(
+ ChocoInfoOptions? options = default,
+ CommandExecutionOptions? executionOptions = null,
+ CancellationToken cancellationToken = default)
+ {
+ return await _command.ExecuteCommandLineTool(options ?? new ChocoInfoOptions(), executionOptions, cancellationToken);
+ }
+
+ ///
+ public virtual async Task Install(
+ ChocoInstallOptions? options = default,
+ CommandExecutionOptions? executionOptions = null,
+ CancellationToken cancellationToken = default)
+ {
+ return await _command.ExecuteCommandLineTool(options ?? new ChocoInstallOptions(), executionOptions, cancellationToken);
+ }
+
+ ///
+ public virtual async Task License(
+ ChocoLicenseOptions? options = default,
+ CommandExecutionOptions? executionOptions = null,
+ CancellationToken cancellationToken = default)
+ {
+ return await _command.ExecuteCommandLineTool(options ?? new ChocoLicenseOptions(), executionOptions, cancellationToken);
+ }
+
+ ///
+ public virtual async Task List(
+ ChocoListOptions? options = default,
+ CommandExecutionOptions? executionOptions = null,
+ CancellationToken cancellationToken = default)
+ {
+ return await _command.ExecuteCommandLineTool(options ?? new ChocoListOptions(), executionOptions, cancellationToken);
+ }
+
+ ///
+ public virtual async Task New(
+ ChocoNewOptions? options = default,
+ CommandExecutionOptions? executionOptions = null,
+ CancellationToken cancellationToken = default)
+ {
+ return await _command.ExecuteCommandLineTool(options ?? new ChocoNewOptions(), executionOptions, cancellationToken);
+ }
+
+ ///
+ public virtual async Task Outdated(
+ ChocoOutdatedOptions? options = default,
+ CommandExecutionOptions? executionOptions = null,
+ CancellationToken cancellationToken = default)
+ {
+ return await _command.ExecuteCommandLineTool(options ?? new ChocoOutdatedOptions(), executionOptions, cancellationToken);
+ }
+
+ ///
+ public virtual async Task Pack(
+ ChocoPackOptions? options = default,
+ CommandExecutionOptions? executionOptions = null,
+ CancellationToken cancellationToken = default)
+ {
+ return await _command.ExecuteCommandLineTool(options ?? new ChocoPackOptions(), executionOptions, cancellationToken);
+ }
+
+ ///
+ public virtual async Task Pin(
+ ChocoPinOptions? options = default,
+ CommandExecutionOptions? executionOptions = null,
+ CancellationToken cancellationToken = default)
+ {
+ return await _command.ExecuteCommandLineTool(options ?? new ChocoPinOptions(), executionOptions, cancellationToken);
+ }
+
+ ///
+ public virtual async Task Push(
+ ChocoPushOptions? options = default,
+ CommandExecutionOptions? executionOptions = null,
+ CancellationToken cancellationToken = default)
+ {
+ return await _command.ExecuteCommandLineTool(options ?? new ChocoPushOptions(), executionOptions, cancellationToken);
+ }
+
+ ///
+ public virtual async Task Rule(
+ ChocoRuleOptions? options = default,
+ CommandExecutionOptions? executionOptions = null,
+ CancellationToken cancellationToken = default)
+ {
+ return await _command.ExecuteCommandLineTool(options ?? new ChocoRuleOptions(), executionOptions, cancellationToken);
+ }
+
+ ///
+ public virtual async Task Search(
+ ChocoSearchOptions? options = default,
+ CommandExecutionOptions? executionOptions = null,
+ CancellationToken cancellationToken = default)
+ {
+ return await _command.ExecuteCommandLineTool(options ?? new ChocoSearchOptions(), executionOptions, cancellationToken);
+ }
+
+ ///
+ public virtual async Task Setapikey(
+ ChocoSetapikeyOptions? options = default,
+ CommandExecutionOptions? executionOptions = null,
+ CancellationToken cancellationToken = default)
+ {
+ return await _command.ExecuteCommandLineTool(options ?? new ChocoSetapikeyOptions(), executionOptions, cancellationToken);
+ }
+
+ ///
+ public virtual async Task Source(
+ ChocoSourceOptions? options = default,
+ CommandExecutionOptions? executionOptions = null,
+ CancellationToken cancellationToken = default)
+ {
+ return await _command.ExecuteCommandLineTool(options ?? new ChocoSourceOptions(), executionOptions, cancellationToken);
+ }
+
+ ///
+ public virtual async Task Sources(
+ ChocoSourcesOptions? options = default,
+ CommandExecutionOptions? executionOptions = null,
+ CancellationToken cancellationToken = default)
+ {
+ return await _command.ExecuteCommandLineTool(options ?? new ChocoSourcesOptions(), executionOptions, cancellationToken);
+ }
+
+ ///
+ public virtual async Task Support(
+ ChocoSupportOptions? options = default,
+ CommandExecutionOptions? executionOptions = null,
+ CancellationToken cancellationToken = default)
+ {
+ return await _command.ExecuteCommandLineTool(options ?? new ChocoSupportOptions(), executionOptions, cancellationToken);
+ }
+
+ ///
+ public virtual async Task Template(
+ ChocoTemplateOptions? options = default,
+ CommandExecutionOptions? executionOptions = null,
+ CancellationToken cancellationToken = default)
+ {
+ return await _command.ExecuteCommandLineTool(options ?? new ChocoTemplateOptions(), executionOptions, cancellationToken);
+ }
+
+ ///
+ public virtual async Task Templates(
+ ChocoTemplatesOptions? options = default,
+ CommandExecutionOptions? executionOptions = null,
+ CancellationToken cancellationToken = default)
+ {
+ return await _command.ExecuteCommandLineTool(options ?? new ChocoTemplatesOptions(), executionOptions, cancellationToken);
+ }
+
+ ///
+ public virtual async Task Uninstall(
+ ChocoUninstallOptions? options = default,
+ CommandExecutionOptions? executionOptions = null,
+ CancellationToken cancellationToken = default)
+ {
+ return await _command.ExecuteCommandLineTool(options ?? new ChocoUninstallOptions(), executionOptions, cancellationToken);
+ }
+
+ ///
+ public virtual async Task Unpackself(
+ ChocoUnpackselfOptions? options = default,
+ CommandExecutionOptions? executionOptions = null,
+ CancellationToken cancellationToken = default)
+ {
+ return await _command.ExecuteCommandLineTool(options ?? new ChocoUnpackselfOptions(), executionOptions, cancellationToken);
+ }
+
+ ///
+ public virtual async Task Upgrade(
+ ChocoUpgradeOptions? options = default,
+ CommandExecutionOptions? executionOptions = null,
+ CancellationToken cancellationToken = default)
+ {
+ return await _command.ExecuteCommandLineTool(options ?? new ChocoUpgradeOptions(), executionOptions, cancellationToken);
+ }
+
+ #endregion
+}
diff --git a/src/ModularPipelines.Chocolatey/Services/IChoco.cs b/src/ModularPipelines.Chocolatey/Services/IChoco.cs
new file mode 100644
index 0000000000..2aea11946e
--- /dev/null
+++ b/src/ModularPipelines.Chocolatey/Services/IChoco.cs
@@ -0,0 +1,249 @@
+//
+// This file was generated by ModularPipelines.OptionsGenerator.
+// Do not edit this file manually.
+//
+
+using ModularPipelines.Models;
+using ModularPipelines.Options;
+using ModularPipelines.Chocolatey.Options;
+
+namespace ModularPipelines.Chocolatey.Services;
+
+///
+/// Generated interface for choco CLI commands.
+///
+public partial interface IChoco
+{
+ #region Commands
+
+ ///
+ /// For source location, this can be a folder/file share or an
+ ///
+ /// The command options.
+ /// The execution configuration options.
+ /// Cancellation token.
+ /// The command result.
+ Task Apikey(ChocoApikeyOptions? options = default, CommandExecutionOptions? executionOptions = null, CancellationToken cancellationToken = default);
+
+ ///
+ /// NOTE: See scripting in the command reference (`choco --help`) for how to
+ ///
+ /// The command options.
+ /// The execution configuration options.
+ /// Cancellation token.
+ /// The command result.
+ Task Cache(ChocoCacheOptions? options = default, CommandExecutionOptions? executionOptions = null, CancellationToken cancellationToken = default);
+
+ ///
+ /// NOTE: See scripting in the command reference (`choco --help`) for how to
+ ///
+ /// The command options.
+ /// The execution configuration options.
+ /// Cancellation token.
+ /// The command result.
+ Task Config(ChocoConfigOptions? options = default, CommandExecutionOptions? executionOptions = null, CancellationToken cancellationToken = default);
+
+ ///
+ /// NOTE: See scripting in the command reference (`choco --help`) for how to
+ ///
+ /// The command options.
+ /// The execution configuration options.
+ /// Cancellation token.
+ /// The command result.
+ Task Export(ChocoExportOptions? options = default, CommandExecutionOptions? executionOptions = null, CancellationToken cancellationToken = default);
+
+ ///
+ /// NOTE: See scripting in the command reference (`choco --help`) for how to
+ ///
+ /// The command options.
+ /// The execution configuration options.
+ /// Cancellation token.
+ /// The command result.
+ Task Feature(ChocoFeatureOptions? options = default, CommandExecutionOptions? executionOptions = null, CancellationToken cancellationToken = default);
+
+ ///
+ /// NOTE: See scripting in the command reference (`choco --help`) for how to
+ ///
+ /// The command options.
+ /// The execution configuration options.
+ /// Cancellation token.
+ /// The command result.
+ Task Features(ChocoFeaturesOptions? options = default, CommandExecutionOptions? executionOptions = null, CancellationToken cancellationToken = default);
+
+ ///
+ /// NOTE: See scripting in the command reference (`choco --help`) for how to
+ ///
+ /// The command options.
+ /// The execution configuration options.
+ /// Cancellation token.
+ /// The command result.
+ Task Find(ChocoFindOptions? options = default, CommandExecutionOptions? executionOptions = null, CancellationToken cancellationToken = default);
+
+ ///
+ /// NOTE: See scripting in the command reference (`choco --help`) for how to
+ ///
+ /// The command options.
+ /// The execution configuration options.
+ /// Cancellation token.
+ /// The command result.
+ Task Info(ChocoInfoOptions? options = default, CommandExecutionOptions? executionOptions = null, CancellationToken cancellationToken = default);
+
+ ///
+ /// NOTE: Any package name ending with .config is considered a
+ ///
+ /// The command options.
+ /// The execution configuration options.
+ /// Cancellation token.
+ /// The command result.
+ Task Install(ChocoInstallOptions? options = default, CommandExecutionOptions? executionOptions = null, CancellationToken cancellationToken = default);
+
+ ///
+ /// NOTE: See scripting in the command reference (`choco --help`) for how to
+ ///
+ /// The command options.
+ /// The execution configuration options.
+ /// Cancellation token.
+ /// The command result.
+ Task License(ChocoLicenseOptions? options = default, CommandExecutionOptions? executionOptions = null, CancellationToken cancellationToken = default);
+
+ ///
+ /// NOTE: See scripting in the command reference (`choco --help`) for how to
+ ///
+ /// The command options.
+ /// The execution configuration options.
+ /// Cancellation token.
+ /// The command result.
+ Task List(ChocoListOptions? options = default, CommandExecutionOptions? executionOptions = null, CancellationToken cancellationToken = default);
+
+ ///
+ /// packageversion
+ ///
+ /// The command options.
+ /// The execution configuration options.
+ /// Cancellation token.
+ /// The command result.
+ Task New(ChocoNewOptions? options = default, CommandExecutionOptions? executionOptions = null, CancellationToken cancellationToken = default);
+
+ ///
+ /// If you use `--source=https://somewhere/out/there`, it is
+ ///
+ /// The command options.
+ /// The execution configuration options.
+ /// Cancellation token.
+ /// The command result.
+ Task Outdated(ChocoOutdatedOptions? options = default, CommandExecutionOptions? executionOptions = null, CancellationToken cancellationToken = default);
+
+ ///
+ /// NOTE: See scripting in the command reference (`choco --help`) for how to
+ ///
+ /// The command options.
+ /// The execution configuration options.
+ /// Cancellation token.
+ /// The command result.
+ Task Pack(ChocoPackOptions? options = default, CommandExecutionOptions? executionOptions = null, CancellationToken cancellationToken = default);
+
+ ///
+ /// NOTE: See scripting in the command reference (`choco --help`) for how to
+ ///
+ /// The command options.
+ /// The execution configuration options.
+ /// Cancellation token.
+ /// The command result.
+ Task Pin(ChocoPinOptions? options = default, CommandExecutionOptions? executionOptions = null, CancellationToken cancellationToken = default);
+
+ ///
+ /// NOTE: If there is more than one nupkg file in the folder, the command
+ ///
+ /// The command options.
+ /// The execution configuration options.
+ /// Cancellation token.
+ /// The command result.
+ Task Push(ChocoPushOptions? options = default, CommandExecutionOptions? executionOptions = null, CancellationToken cancellationToken = default);
+
+ ///
+ /// NOTE: See scripting in the command reference (`choco --help`) for how to
+ ///
+ /// The command options.
+ /// The execution configuration options.
+ /// Cancellation token.
+ /// The command result.
+ Task Rule(ChocoRuleOptions? options = default, CommandExecutionOptions? executionOptions = null, CancellationToken cancellationToken = default);
+
+ ///
+ /// NOTE: See scripting in the command reference (`choco --help`) for how to
+ ///
+ /// The command options.
+ /// The execution configuration options.
+ /// Cancellation token.
+ /// The command result.
+ Task Search(ChocoSearchOptions? options = default, CommandExecutionOptions? executionOptions = null, CancellationToken cancellationToken = default);
+
+ ///
+ /// For source location, this can be a folder/file share or an
+ ///
+ /// The command options.
+ /// The execution configuration options.
+ /// Cancellation token.
+ /// The command result.
+ Task Setapikey(ChocoSetapikeyOptions? options = default, CommandExecutionOptions? executionOptions = null, CancellationToken cancellationToken = default);
+
+ ///
+ /// When it comes to the source location, this can be a folder/file share or an http
+ ///
+ /// The command options.
+ /// The execution configuration options.
+ /// Cancellation token.
+ /// The command result.
+ Task Source(ChocoSourceOptions? options = default, CommandExecutionOptions? executionOptions = null, CancellationToken cancellationToken = default);
+
+ ///
+ /// When it comes to the source location, this can be a folder/file share or an http
+ ///
+ /// The command options.
+ /// The execution configuration options.
+ /// Cancellation token.
+ /// The command result.
+ Task Sources(ChocoSourcesOptions? options = default, CommandExecutionOptions? executionOptions = null, CancellationToken cancellationToken = default);
+
+ Task Support(ChocoSupportOptions? options = default, CommandExecutionOptions? executionOptions = null, CancellationToken cancellationToken = default);
+
+ ///
+ /// NOTE: See scripting in the command reference (`choco --help`) for how to
+ ///
+ /// The command options.
+ /// The execution configuration options.
+ /// Cancellation token.
+ /// The command result.
+ Task Template(ChocoTemplateOptions? options = default, CommandExecutionOptions? executionOptions = null, CancellationToken cancellationToken = default);
+
+ ///
+ /// NOTE: See scripting in the command reference (`choco --help`) for how to
+ ///
+ /// The command options.
+ /// The execution configuration options.
+ /// Cancellation token.
+ /// The command result.
+ Task Templates(ChocoTemplatesOptions? options = default, CommandExecutionOptions? executionOptions = null, CancellationToken cancellationToken = default);
+
+ ///
+ /// NOTE: `all` is a special package keyword that will allow you to
+ ///
+ /// The command options.
+ /// The execution configuration options.
+ /// Cancellation token.
+ /// The command result.
+ Task Uninstall(ChocoUninstallOptions? options = default, CommandExecutionOptions? executionOptions = null, CancellationToken cancellationToken = default);
+
+ Task Unpackself(ChocoUnpackselfOptions? options = default, CommandExecutionOptions? executionOptions = null, CancellationToken cancellationToken = default);
+
+ ///
+ /// NOTE: `all` is a special package keyword that will allow you to upgrade
+ ///
+ /// The command options.
+ /// The execution configuration options.
+ /// Cancellation token.
+ /// The command result.
+ Task Upgrade(ChocoUpgradeOptions? options = default, CommandExecutionOptions? executionOptions = null, CancellationToken cancellationToken = default);
+
+ #endregion
+}