From 4fed31679fcbc9268c7e907a841558a41d80c567 Mon Sep 17 00:00:00 2001 From: Tom Longhurst <30480171+thomhurst@users.noreply.github.com> Date: Wed, 16 Apr 2025 21:46:14 +0100 Subject: [PATCH 01/45] +semver:minor - Virtual Methods & Properties (#1044) * Add analyzer * dotnet format * Virtual properties * Method analyzer * Method analyzer * Update code fix logic * Tweak analyzer logic * Add virtual keyword to methods * TargetFrameworks --- Directory.Build.props | 4 + Directory.Packages.props | 3 + ModularPipelines.sln | 9 + .../Attributes/SkipIfDependencyPullRequest.cs | 4 +- src/ModularPipelines.Build/GitHelpers.cs | 2 +- .../Modules/CodeFormattedNicelyModule.cs | 2 +- .../Modules/CreateReleaseModule.cs | 4 +- .../Modules/DependabotCommitsModule.cs | 6 +- .../Modules/FindProjectsModule.cs | 5 + .../Modules/NugetVersionGeneratorModule.cs | 4 +- .../PrintEnvironmentVariablesModule.cs | 4 +- .../Modules/PrintGitInformationModule.cs | 4 +- .../WaitForOtherOperatingSystemBuilds.cs | 2 +- src/ModularPipelines.Build/Program.cs | 4 +- src/ModularPipelines.Chocolatey/Choco.cs | 92 +++---- .../Options/ApikeyOptions.cs | 4 +- .../Options/CacheOptions.cs | 2 +- .../Options/CacheRemoveOptions.cs | 2 +- .../Options/ChocoOptions.cs | 50 ++-- .../Options/ConfigGetOptions.cs | 4 +- .../Options/ConfigOptions.cs | 4 +- .../Options/ConfigSetOptions.cs | 4 +- .../Options/ConfigUnsetOptions.cs | 4 +- .../Options/ConvertOptions.cs | 8 +- .../Options/DownloadOptions.cs | 46 ++-- .../Options/ExportOptions.cs | 4 +- .../Options/FeatureDisableOptions.cs | 2 +- .../Options/FeatureEnableOptions.cs | 2 +- .../Options/FeatureOptions.cs | 2 +- .../Options/FindOptions.cs | 48 ++-- .../Options/InfoOptions.cs | 20 +- .../Options/InstallOptions.cs | 96 +++---- .../Options/ListOptions.cs | 30 +-- .../Options/NewOptions.cs | 34 +-- .../Options/OptimizeOptions.cs | 6 +- .../Options/OutdatedOptions.cs | 20 +- .../Options/PinAddOptions.cs | 8 +- .../Options/PinOptions.cs | 8 +- .../Options/PinRemoveOptions.cs | 8 +- .../Options/PushOptions.cs | 14 +- .../Options/SearchOptions.cs | 48 ++-- .../Options/SetapikeyOptions.cs | 4 +- .../Options/SourceAddOptions.cs | 20 +- .../Options/SourceDisableOptions.cs | 20 +- .../Options/SourceEnableOptions.cs | 20 +- .../Options/SourceOptions.cs | 20 +- .../Options/SourceRemoveOptions.cs | 20 +- .../Options/SourcesAddOptions.cs | 20 +- .../Options/SourcesDisableOptions.cs | 20 +- .../Options/SourcesEnableOptions.cs | 20 +- .../Options/SourcesOptions.cs | 20 +- .../Options/SourcesRemoveOptions.cs | 20 +- .../Options/SyncOptions.cs | 8 +- .../Options/TemplateInfoOptions.cs | 2 +- .../Options/TemplateOptions.cs | 2 +- .../Options/UpgradeOptions.cs | 116 ++++----- src/ModularPipelines.Cmd/Cmd.cs | 2 +- .../Models/CmdScriptOptions.cs | 10 +- .../AnalyzerReleases.Shipped.md | 8 + .../AnalyzerReleases.Unshipped.md | 4 + ...ularPipelines.Development.Analyzers.csproj | 37 +++ .../Properties/launchSettings.json | 9 + .../Readme.md | 158 ++++++++++++ .../Resources.Designer.cs | 134 ++++++++++ .../Resources.resx | 45 ++++ .../VirtualCommandAnalyzer.cs | 83 ++++++ .../VirtualCommandCodeFixProvider.cs | 87 +++++++ .../VirtualSwitchPropertyAnalyzer.cs | 68 +++++ .../VirtualSwitchPropertyCodeFixProvider.cs | 79 ++++++ .../Options/DockerBuilderPruneOptions.cs | 8 +- .../Options/DockerBuildxBakeOptions.cs | 22 +- .../Options/DockerBuildxBuildOptions.cs | 96 +++---- .../Options/DockerBuildxCreateOptions.cs | 22 +- .../Options/DockerBuildxDebugBuildOptions.cs | 96 +++---- .../Options/DockerBuildxDebugOptions.cs | 12 +- .../Options/DockerBuildxDuOptions.cs | 4 +- .../DockerBuildxImagetoolsCreateOptions.cs | 12 +- .../DockerBuildxImagetoolsInspectOptions.cs | 4 +- .../Options/DockerBuildxInspectOptions.cs | 2 +- .../Options/DockerBuildxLsOptions.cs | 4 +- .../Options/DockerBuildxOptions.cs | 2 +- .../Options/DockerBuildxPruneOptions.cs | 10 +- .../Options/DockerBuildxRmOptions.cs | 8 +- .../Options/DockerBuildxUseOptions.cs | 4 +- .../Options/DockerBuildxVersionOptions.cs | 2 +- .../Options/DockerCheckpointCreateOptions.cs | 4 +- .../Options/DockerCheckpointLsOptions.cs | 2 +- .../Options/DockerCheckpointRmOptions.cs | 2 +- .../DockerComposeAlphaPublishOptions.cs | 4 +- .../Options/DockerComposeAlphaScaleOptions.cs | 2 +- .../Options/DockerComposeAlphaVizOptions.cs | 10 +- .../Options/DockerComposeBuildOptions.cs | 28 +- .../Options/DockerComposeConfigOptions.cs | 26 +- .../Options/DockerComposeCpOptions.cs | 8 +- .../Options/DockerComposeCreateOptions.cs | 14 +- .../Options/DockerComposeDownOptions.cs | 8 +- .../Options/DockerComposeEventsOptions.cs | 2 +- .../Options/DockerComposeExecOptions.cs | 18 +- .../Options/DockerComposeImagesOptions.cs | 4 +- .../Options/DockerComposeKillOptions.cs | 4 +- .../Options/DockerComposeLogsOptions.cs | 16 +- .../Options/DockerComposeLsOptions.cs | 8 +- .../Options/DockerComposeOptions.cs | 28 +- .../Options/DockerComposePortOptions.cs | 4 +- .../Options/DockerComposePsOptions.cs | 16 +- .../Options/DockerComposePullOptions.cs | 14 +- .../Options/DockerComposePushOptions.cs | 6 +- .../Options/DockerComposeRestartOptions.cs | 4 +- .../Options/DockerComposeRmOptions.cs | 8 +- .../Options/DockerComposeRunOptions.cs | 42 +-- .../Options/DockerComposeStopOptions.cs | 2 +- .../Options/DockerComposeUpOptions.cs | 48 ++-- .../Options/DockerComposeVersionOptions.cs | 4 +- .../Options/DockerComposeWaitOptions.cs | 2 +- .../Options/DockerComposeWatchOptions.cs | 4 +- .../Options/DockerConfigCreateOptions.cs | 4 +- .../Options/DockerConfigInspectOptions.cs | 4 +- .../Options/DockerConfigLsOptions.cs | 6 +- .../Options/DockerContainerAttachOptions.cs | 6 +- .../Options/DockerContainerCommitOptions.cs | 8 +- .../Options/DockerContainerCpOptions.cs | 6 +- .../Options/DockerContainerCreateOptions.cs | 204 +++++++-------- .../Options/DockerContainerExecOptions.cs | 18 +- .../Options/DockerContainerExportOptions.cs | 2 +- .../Options/DockerContainerInspectOptions.cs | 4 +- .../Options/DockerContainerKillOptions.cs | 2 +- .../Options/DockerContainerLogsOptions.cs | 12 +- .../Options/DockerContainerLsOptions.cs | 16 +- .../Options/DockerContainerPruneOptions.cs | 4 +- .../Options/DockerContainerRestartOptions.cs | 4 +- .../Options/DockerContainerRmOptions.cs | 6 +- .../Options/DockerContainerRunOptions.cs | 210 +++++++-------- .../Options/DockerContainerStartOptions.cs | 10 +- .../Options/DockerContainerStatsOptions.cs | 8 +- .../Options/DockerContainerStopOptions.cs | 4 +- .../Options/DockerContainerUpdateOptions.cs | 30 +-- .../Options/DockerContextCreateOptions.cs | 6 +- .../Options/DockerContextInspectOptions.cs | 2 +- .../Options/DockerContextLsOptions.cs | 4 +- .../Options/DockerContextRmOptions.cs | 2 +- .../Options/DockerContextUpdateOptions.cs | 4 +- .../Options/DockerImageBuildOptions.cs | 60 ++--- .../Options/DockerImageHistoryOptions.cs | 8 +- .../Options/DockerImageImportOptions.cs | 6 +- .../Options/DockerImageInspectOptions.cs | 2 +- .../Options/DockerImageLoadOptions.cs | 4 +- .../Options/DockerImageLsOptions.cs | 12 +- .../Options/DockerImagePruneOptions.cs | 6 +- .../Options/DockerImagePullOptions.cs | 8 +- .../Options/DockerImagePushOptions.cs | 6 +- .../Options/DockerImageRmOptions.cs | 4 +- .../Options/DockerImageSaveOptions.cs | 2 +- .../Options/DockerInitOptions.cs | 2 +- .../Options/DockerInspectOptions.cs | 6 +- .../Options/DockerLoginOptions.cs | 6 +- .../Options/DockerManifestAnnotateOptions.cs | 10 +- .../Options/DockerManifestCreateOptions.cs | 4 +- .../Options/DockerManifestInspectOptions.cs | 4 +- .../Options/DockerManifestPushOptions.cs | 4 +- .../Options/DockerNetworkConnectOptions.cs | 12 +- .../Options/DockerNetworkCreateOptions.cs | 32 +-- .../Options/DockerNetworkDisconnectOptions.cs | 2 +- .../Options/DockerNetworkInspectOptions.cs | 4 +- .../Options/DockerNetworkLsOptions.cs | 8 +- .../Options/DockerNetworkPruneOptions.cs | 4 +- .../Options/DockerNetworkRmOptions.cs | 2 +- .../Options/DockerNodeInspectOptions.cs | 4 +- .../Options/DockerNodeLsOptions.cs | 6 +- .../Options/DockerNodePsOptions.cs | 10 +- .../Options/DockerNodeRmOptions.cs | 2 +- .../Options/DockerNodeUpdateOptions.cs | 8 +- .../Options/DockerOptions.cs | 22 +- .../Options/DockerPluginCreateOptions.cs | 2 +- .../Options/DockerPluginDisableOptions.cs | 2 +- .../Options/DockerPluginEnableOptions.cs | 2 +- .../Options/DockerPluginInspectOptions.cs | 2 +- .../Options/DockerPluginInstallOptions.cs | 8 +- .../Options/DockerPluginLsOptions.cs | 8 +- .../Options/DockerPluginRmOptions.cs | 2 +- .../Options/DockerPluginUpgradeOptions.cs | 6 +- .../Options/DockerScoutCachePruneOptions.cs | 4 +- .../Options/DockerScoutCompareOptions.cs | 42 +-- .../Options/DockerScoutCvesOptions.cs | 50 ++-- .../Options/DockerScoutEnvironmentOptions.cs | 6 +- .../DockerScoutIntegrationConfigureOptions.cs | 6 +- .../DockerScoutIntegrationDeleteOptions.cs | 4 +- .../DockerScoutIntegrationListOptions.cs | 4 +- .../Options/DockerScoutOptions.cs | 2 +- .../Options/DockerScoutPolicyOptions.cs | 14 +- .../Options/DockerScoutQuickviewOptions.cs | 14 +- .../DockerScoutRecommendationsOptions.cs | 14 +- .../Options/DockerScoutRepoDisableOptions.cs | 10 +- .../Options/DockerScoutRepoEnableOptions.cs | 10 +- .../Options/DockerScoutRepoListOptions.cs | 10 +- .../Options/DockerScoutSbomOptions.cs | 10 +- .../Options/DockerScoutStreamOptions.cs | 6 +- .../Options/DockerScoutWatchOptions.cs | 20 +- .../Options/DockerSearchOptions.cs | 8 +- .../Options/DockerSecretCreateOptions.cs | 6 +- .../Options/DockerSecretInspectOptions.cs | 4 +- .../Options/DockerSecretLsOptions.cs | 6 +- .../Options/DockerServiceCreateOptions.cs | 140 +++++----- .../Options/DockerServiceInspectOptions.cs | 4 +- .../Options/DockerServiceLogsOptions.cs | 18 +- .../Options/DockerServiceLsOptions.cs | 6 +- .../Options/DockerServicePsOptions.cs | 10 +- .../Options/DockerServiceRollbackOptions.cs | 4 +- .../Options/DockerServiceScaleOptions.cs | 2 +- .../Options/DockerServiceUpdateOptions.cs | 182 ++++++------- .../Options/DockerStackConfigOptions.cs | 4 +- .../Options/DockerStackDeployOptions.cs | 8 +- .../Options/DockerStackLsOptions.cs | 2 +- .../Options/DockerStackOptions.cs | 2 +- .../Options/DockerStackPsOptions.cs | 10 +- .../Options/DockerStackServicesOptions.cs | 6 +- .../Options/DockerSwarmCaOptions.cs | 14 +- .../Options/DockerSwarmInitOptions.cs | 30 +-- .../Options/DockerSwarmJoinOptions.cs | 10 +- .../Options/DockerSwarmJoinTokenOptions.cs | 4 +- .../Options/DockerSwarmLeaveOptions.cs | 2 +- .../Options/DockerSwarmUnlockKeyOptions.cs | 4 +- .../Options/DockerSwarmUpdateOptions.cs | 14 +- .../Options/DockerSystemDfOptions.cs | 4 +- .../Options/DockerSystemEventsOptions.cs | 8 +- .../Options/DockerSystemInfoOptions.cs | 2 +- .../Options/DockerSystemPruneOptions.cs | 8 +- .../Options/DockerTrustInspectOptions.cs | 2 +- .../Options/DockerTrustKeyGenerateOptions.cs | 2 +- .../Options/DockerTrustKeyLoadOptions.cs | 2 +- .../Options/DockerTrustRevokeOptions.cs | 2 +- .../Options/DockerTrustSignOptions.cs | 2 +- .../Options/DockerTrustSignerAddOptions.cs | 2 +- .../Options/DockerTrustSignerRemoveOptions.cs | 2 +- .../Options/DockerVersionOptions.cs | 2 +- .../Options/DockerVolumeCreateOptions.cs | 28 +- .../Options/DockerVolumeInspectOptions.cs | 2 +- .../Options/DockerVolumeLsOptions.cs | 8 +- .../Options/DockerVolumePruneOptions.cs | 6 +- .../Options/DockerVolumeRmOptions.cs | 2 +- .../Options/DockerVolumeUpdateOptions.cs | 2 +- .../Services/Docker.cs | 50 ++-- .../Services/DockerBuilder.cs | 2 +- .../Services/DockerBuildx.cs | 28 +- .../Services/DockerBuildxImagetools.cs | 4 +- .../Services/DockerCheckpoint.cs | 6 +- .../Services/DockerCompose.cs | 56 ++-- .../Services/DockerComposeAlpha.cs | 8 +- .../Services/DockerConfig.cs | 8 +- .../Services/DockerContainer.cs | 50 ++-- .../Services/DockerContext.cs | 18 +- .../Services/DockerImage.cs | 24 +- .../Services/DockerManifest.cs | 10 +- .../Services/DockerNetwork.cs | 14 +- .../Services/DockerNode.cs | 14 +- .../Services/DockerPlugin.cs | 18 +- .../Services/DockerScout.cs | 30 +-- .../Services/DockerScoutCache.cs | 4 +- .../Services/DockerScoutIntegration.cs | 6 +- .../Services/DockerScoutRepo.cs | 6 +- .../Services/DockerSecret.cs | 8 +- .../Services/DockerService.cs | 18 +- .../Services/DockerStack.cs | 12 +- .../Services/DockerSwarm.cs | 16 +- .../Services/DockerSystem.cs | 8 +- .../Services/DockerTrust.cs | 10 +- .../Services/DockerTrustKey.cs | 4 +- .../Services/DockerTrustSigner.cs | 4 +- .../Services/DockerVolume.cs | 12 +- .../Options/DotNetAddPackageOptions.cs | 14 +- .../Options/DotNetAddReferenceOptions.cs | 4 +- .../Options/DotNetBuildOptions.cs | 40 +-- .../Options/DotNetBuildServerOptions.cs | 6 +- .../Options/DotNetCleanOptions.cs | 16 +- .../Options/DotNetDevCertsOptions.cs | 22 +- .../Options/DotNetFormatOptions.cs | 22 +- .../Options/DotNetListPackageOptions.cs | 28 +- .../Options/DotNetMigrateOptions.cs | 14 +- .../Options/DotNetMsbuildOptions.cs | 2 +- .../Options/DotNetNewOptions.cs | 20 +- .../Options/DotNetNugetAddSourceOptions.cs | 12 +- .../Options/DotNetNugetDeleteOptions.cs | 12 +- .../DotNetNugetDisableSourceOptions.cs | 2 +- .../Options/DotNetNugetEnableSourceOptions.cs | 2 +- .../Options/DotNetNugetListSourceOptions.cs | 4 +- .../Options/DotNetNugetLocalsOptions.cs | 6 +- .../Options/DotNetNugetPushOptions.cs | 22 +- .../Options/DotNetNugetRemoveSourceOptions.cs | 2 +- .../Options/DotNetNugetSignOptions.cs | 24 +- .../Options/DotNetNugetUpdateSourceOptions.cs | 12 +- .../Options/DotNetNugetVerifyOptions.cs | 8 +- .../Options/DotNetOptions.cs | 2 +- .../Options/DotNetPackOptions.cs | 30 +-- .../Options/DotNetPublishOptions.cs | 42 +-- .../Options/DotNetRemoveReferenceOptions.cs | 2 +- .../Options/DotNetRestoreOptions.cs | 36 +-- .../Options/DotNetRunOptions.cs | 30 +-- .../Options/DotNetStoreOptions.cs | 16 +- .../Options/DotNetTestOptions.cs | 54 ++-- .../Options/DotNetToolInstallOptions.cs | 32 +-- .../Options/DotNetToolListOptions.cs | 6 +- .../Options/DotNetToolSearchOptions.cs | 8 +- .../Options/DotNetToolUninstallOptions.cs | 6 +- .../Options/DotNetToolUpdateOptions.cs | 28 +- .../Options/DotNetVstestOptions.cs | 32 +-- .../Options/DotNetWatchOptions.cs | 14 +- .../Options/DotNetWorkloadInstallOptions.cs | 20 +- .../Options/DotNetWorkloadListOptions.cs | 2 +- .../Options/DotNetWorkloadOptions.cs | 2 +- .../Options/DotNetWorkloadRepairOptions.cs | 16 +- .../Options/DotNetWorkloadRestoreOptions.cs | 20 +- .../Options/DotNetWorkloadSearchOptions.cs | 2 +- .../Options/DotNetWorkloadUpdateOptions.cs | 22 +- .../Parsers/Trx/TrxParser.cs | 2 +- .../Services/DotNet.cs | 36 +-- .../Services/DotNetAdd.cs | 4 +- .../Services/DotNetList.cs | 4 +- .../Services/DotNetNuget.cs | 12 +- .../Services/DotNetNugetAdd.cs | 2 +- .../Services/DotNetNugetDisable.cs | 2 +- .../Services/DotNetNugetEnable.cs | 2 +- .../Services/DotNetNugetList.cs | 2 +- .../Services/DotNetNugetRemove.cs | 2 +- .../Services/DotNetNugetUpdate.cs | 2 +- .../Services/DotNetRemove.cs | 4 +- .../Services/DotNetSdk.cs | 2 +- .../Services/DotNetTool.cs | 10 +- .../Services/DotNetWorkload.cs | 14 +- .../Attributes/RunOnlyOnBranchAttribute.cs | 4 +- src/ModularPipelines.Git/GitCommands.cs | 156 ++++++------ src/ModularPipelines.Git/GitVersioning.cs | 10 +- .../Models/GitVersionInformation.cs | 48 ++-- .../Options/GitAddOptions.cs | 40 +-- .../Options/GitAmOptions.cs | 68 ++--- .../Options/GitApplyOptions.cs | 46 ++-- .../Options/GitArchiveOptions.cs | 6 +- .../Options/GitBaseOptions.cs | 28 +- .../Options/GitBisectOptions.cs | 4 +- .../Options/GitBlameOptions.cs | 30 +-- .../Options/GitBranchOptions.cs | 46 ++-- .../Options/GitBugreportOptions.cs | 2 +- .../Options/GitBundleOptions.cs | 4 +- .../Options/GitCatFileOptions.cs | 28 +- .../Options/GitCheckIgnoreOptions.cs | 4 +- .../Options/GitCheckoutIndexOptions.cs | 16 +- .../Options/GitCheckoutOptions.cs | 56 ++-- .../Options/GitCherryPickOptions.cs | 28 +- .../Options/GitCleanOptions.cs | 8 +- .../Options/GitCloneOptions.cs | 42 +-- .../Options/GitCommitOptions.cs | 54 ++-- .../Options/GitCommitTreeOptions.cs | 2 +- .../Options/GitConfigOptions.cs | 56 ++-- .../Options/GitCountObjectsOptions.cs | 4 +- .../Options/GitDaemonOptions.cs | 22 +- .../Options/GitDescribeOptions.cs | 16 +- .../Options/GitDiffIndexOptions.cs | 102 ++++---- .../Options/GitDiffOptions.cs | 98 +++---- .../Options/GitDifftoolOptions.cs | 20 +- .../Options/GitFastImportOptions.cs | 14 +- .../Options/GitFetchOptions.cs | 76 +++--- .../Options/GitFilterBranchOptions.cs | 4 +- .../Options/GitForEachRefOptions.cs | 14 +- .../Options/GitFormatPatchOptions.cs | 116 ++++----- .../Options/GitFsckOptions.cs | 30 +-- .../Options/GitGcOptions.cs | 16 +- .../Options/GitGrepOptions.cs | 76 +++--- .../Options/GitHashObjectOptions.cs | 10 +- .../Options/GitHelpOptions.cs | 24 +- .../Options/GitInitOptions.cs | 4 +- .../Options/GitInstawebOptions.cs | 16 +- .../Options/GitLogOptions.cs | 240 +++++++++--------- .../Options/GitLsFilesOptions.cs | 40 +-- .../Options/GitLsTreeOptions.cs | 12 +- .../Options/GitMergeBaseOptions.cs | 10 +- .../Options/GitMergeOptions.cs | 70 ++--- .../Options/GitMergetoolOptions.cs | 10 +- .../Options/GitMvOptions.cs | 6 +- .../Options/GitNotesOptions.cs | 18 +- .../Options/GitPullOptions.cs | 100 ++++---- .../Options/GitPushOptions.cs | 60 ++--- .../Options/GitRangeDiffOptions.cs | 6 +- .../Options/GitReadTreeOptions.cs | 18 +- .../Options/GitRebaseOptions.cs | 90 +++---- .../Options/GitReflogOptions.cs | 14 +- .../Options/GitRemoteOptions.cs | 2 +- .../Options/GitResetOptions.cs | 22 +- .../Options/GitRestoreOptions.cs | 32 +-- .../Options/GitRevListOptions.cs | 150 +++++------ .../Options/GitRevParseOptions.cs | 84 +++--- .../Options/GitRevertOptions.cs | 26 +- .../Options/GitRmOptions.cs | 14 +- .../Options/GitSendEmailOptions.cs | 68 ++--- .../Options/GitShortlogOptions.cs | 84 +++--- .../Options/GitShowOptions.cs | 122 ++++----- .../Options/GitShowRefOptions.cs | 12 +- .../Options/GitStashOptions.cs | 22 +- .../Options/GitStatusOptions.cs | 20 +- .../Options/GitSubmoduleOptions.cs | 42 +-- .../Options/GitSvnOptions.cs | 66 ++--- .../Options/GitSwitchOptions.cs | 28 +- .../Options/GitSymbolicRefOptions.cs | 10 +- .../Options/GitTagOptions.cs | 24 +- .../Options/GitUpdateIndexOptions.cs | 64 ++--- .../Options/GitUpdateServerInfoOptions.cs | 2 +- .../Options/GitVerifyPackOptions.cs | 4 +- .../Options/GitWorktreeOptions.cs | 26 +- .../Options/GitWriteTreeOptions.cs | 2 +- .../StaticGitInformation.cs | 2 +- src/ModularPipelines.GitHub/GitHub.cs | 146 +++++------ .../GitHubEnvironmentVariables.cs | 8 +- .../GitHubMarkdownSummaryGenerator.cs | 16 +- .../GitHubRepositoryInfo.cs | 156 ++++++------ src/ModularPipelines.GitHub/IGitHub.cs | 4 +- .../IGitHubEnvironmentVariables.cs | 64 ++--- .../IGitHubRepositoryInfo.cs | 72 +++--- .../Options/GitHubOptions.cs | 4 +- src/ModularPipelines.Helm/Helm.cs | 82 +++--- .../Options/HelmCompletionBashOptions.cs | 2 +- .../Options/HelmCompletionFishOptions.cs | 2 +- .../HelmCompletionPowershellOptions.cs | 2 +- .../Options/HelmCompletionZshOptions.cs | 2 +- .../Options/HelmDependencyBuildOptions.cs | 4 +- .../Options/HelmDependencyUpdateOptions.cs | 4 +- .../Options/HelmGetValuesOptions.cs | 2 +- .../Options/HelmInstallOptions.cs | 36 +-- .../Options/HelmLintOptions.cs | 6 +- .../Options/HelmListOptions.cs | 24 +- .../Options/HelmOptions.cs | 2 +- .../Options/HelmPackageOptions.cs | 4 +- .../Options/HelmPullOptions.cs | 12 +- .../Options/HelmPushOptions.cs | 2 +- .../Options/HelmRegistryLoginOptions.cs | 4 +- .../Options/HelmRepoAddOptions.cs | 12 +- .../Options/HelmRepoUpdateOptions.cs | 2 +- .../Options/HelmRollbackOptions.cs | 14 +- .../Options/HelmSearchHubOptions.cs | 2 +- .../Options/HelmSearchRepoOptions.cs | 6 +- .../Options/HelmShowAllOptions.cs | 8 +- .../Options/HelmShowChartOptions.cs | 8 +- .../Options/HelmShowCrdsOptions.cs | 8 +- .../Options/HelmShowReadmeOptions.cs | 8 +- .../Options/HelmShowValuesOptions.cs | 8 +- .../Options/HelmStatusOptions.cs | 4 +- .../Options/HelmTemplateOptions.cs | 46 ++-- .../Options/HelmTestOptions.cs | 2 +- .../Options/HelmUninstallOptions.cs | 8 +- .../Options/HelmUpgradeOptions.cs | 40 +-- .../Options/HelmVersionOptions.cs | 2 +- src/ModularPipelines.Kubernetes/Kubernetes.cs | 208 +++++++-------- .../Options/KubernetesAlphaOptions.cs | 6 +- .../Options/KubernetesAnnotateOptions.cs | 18 +- .../Options/KubernetesApiResourcesOptions.cs | 6 +- .../Options/KubernetesApiVersionsOptions.cs | 8 +- .../KubernetesApplyEditLastAppliedOptions.cs | 10 +- .../Options/KubernetesApplyOptions.cs | 26 +- .../KubernetesApplySetLastAppliedOptions.cs | 6 +- .../KubernetesApplyViewLastAppliedOptions.cs | 4 +- .../Options/KubernetesAttachOptions.cs | 6 +- .../Options/KubernetesAuthCanIOptions.cs | 8 +- .../Options/KubernetesAuthOptions.cs | 8 +- .../Options/KubernetesAuthReconcileOptions.cs | 10 +- .../Options/KubernetesAutoscaleOptions.cs | 10 +- .../KubernetesCertificateApproveOptions.cs | 8 +- .../KubernetesCertificateDenyOptions.cs | 8 +- .../Options/KubernetesCertificateOptions.cs | 8 +- .../KubernetesClusterInfoDumpOptions.cs | 6 +- .../Options/KubernetesClusterInfoOptions.cs | 6 +- .../Options/KubernetesCompletionOptions.cs | 2 +- .../KubernetesConfigCurrentContextOptions.cs | 2 +- .../KubernetesConfigDeleteClusterOptions.cs | 2 +- .../KubernetesConfigDeleteContextOptions.cs | 2 +- .../KubernetesConfigDeleteUserOptions.cs | 2 +- .../KubernetesConfigGetClustersOptions.cs | 2 +- .../KubernetesConfigGetContextsOptions.cs | 2 +- .../KubernetesConfigGetUsersOptions.cs | 2 +- .../Options/KubernetesConfigOptions.cs | 2 +- .../KubernetesConfigRenameContextOptions.cs | 2 +- .../KubernetesConfigSetClusterOptions.cs | 2 +- .../KubernetesConfigSetContextOptions.cs | 2 +- .../KubernetesConfigSetCredentialsOptions.cs | 2 +- .../Options/KubernetesConfigSetOptions.cs | 2 +- .../Options/KubernetesConfigUnsetOptions.cs | 12 +- .../KubernetesConfigUseContextOptions.cs | 12 +- .../Options/KubernetesConfigViewOptions.cs | 12 +- .../Options/KubernetesCpOptions.cs | 2 +- ...bernetesCreateClusterRoleBindingOptions.cs | 8 +- .../KubernetesCreateClusterRoleOptions.cs | 8 +- .../KubernetesCreateConfigMapOptions.cs | 10 +- .../Options/KubernetesCreateCronJobOptions.cs | 8 +- .../KubernetesCreateDeploymentOptions.cs | 8 +- .../Options/KubernetesCreateIngressOptions.cs | 8 +- .../Options/KubernetesCreateJobOptions.cs | 8 +- .../KubernetesCreateNamespaceOptions.cs | 8 +- .../Options/KubernetesCreateOptions.cs | 16 +- ...ernetesCreatePodDisruptionBudgetOptions.cs | 8 +- .../KubernetesCreatePriorityClassOptions.cs | 10 +- .../Options/KubernetesCreateQuotaOptions.cs | 8 +- .../KubernetesCreateRoleBindingOptions.cs | 8 +- .../Options/KubernetesCreateRoleOptions.cs | 8 +- ...rnetesCreateSecretDockerRegistryOptions.cs | 10 +- .../KubernetesCreateSecretGenericOptions.cs | 10 +- .../Options/KubernetesCreateSecretOptions.cs | 10 +- .../KubernetesCreateSecretTlsOptions.cs | 10 +- .../KubernetesCreateServiceAccountOptions.cs | 8 +- ...KubernetesCreateServiceClusteripOptions.cs | 8 +- ...ernetesCreateServiceExternalnameOptions.cs | 8 +- ...ernetesCreateServiceLoadbalancerOptions.cs | 8 +- .../KubernetesCreateServiceNodePortOptions.cs | 8 +- .../Options/KubernetesCreateServiceOptions.cs | 8 +- .../Options/KubernetesDebugOptions.cs | 16 +- .../Options/KubernetesDeleteOptions.cs | 14 +- .../Options/KubernetesDescribeOptions.cs | 6 +- .../Options/KubernetesDiffOptions.cs | 6 +- .../Options/KubernetesDrainOptions.cs | 12 +- .../Options/KubernetesEditOptions.cs | 16 +- .../Options/KubernetesExecOptions.cs | 6 +- .../Options/KubernetesExplainOptions.cs | 2 +- .../Options/KubernetesExposeOptions.cs | 10 +- .../Options/KubernetesGetOptions.cs | 26 +- .../Options/KubernetesKustomizeOptions.cs | 10 +- .../Options/KubernetesLabelOptions.cs | 18 +- .../Options/KubernetesLogsOptions.cs | 14 +- .../Options/KubernetesOptionsOptions.cs | 2 +- .../Options/KubernetesPatchOptions.cs | 10 +- .../Options/KubernetesPluginListOptions.cs | 2 +- .../Options/KubernetesPluginOptions.cs | 2 +- .../Options/KubernetesProxyOptions.cs | 2 +- .../Options/KubernetesReplaceOptions.cs | 14 +- .../KubernetesRolloutHistoryOptions.cs | 6 +- .../Options/KubernetesRolloutOptions.cs | 6 +- .../Options/KubernetesRolloutPauseOptions.cs | 6 +- .../KubernetesRolloutRestartOptions.cs | 6 +- .../Options/KubernetesRolloutResumeOptions.cs | 6 +- .../Options/KubernetesRolloutStatusOptions.cs | 4 +- .../Options/KubernetesRolloutUndoOptions.cs | 6 +- .../Options/KubernetesRunOptions.cs | 32 +-- .../Options/KubernetesScaleOptions.cs | 10 +- .../Options/KubernetesSetEnvOptions.cs | 16 +- .../Options/KubernetesSetImageOptions.cs | 12 +- .../Options/KubernetesSetOptions.cs | 16 +- .../Options/KubernetesSetResourcesOptions.cs | 12 +- .../Options/KubernetesSetSelectorOptions.cs | 12 +- .../KubernetesSetServiceAccountOptions.cs | 12 +- .../Options/KubernetesSetSubjectOptions.cs | 10 +- .../Options/KubernetesTaintOptions.cs | 10 +- .../Options/KubernetesTopNodeOptions.cs | 4 +- .../Options/KubernetesTopOptions.cs | 4 +- .../Options/KubernetesTopPodOptions.cs | 8 +- .../Options/KubernetesVersionOptions.cs | 4 +- .../Options/KubernetesWaitOptions.cs | 12 +- .../Models/NpmAccessGetStatusOptions.cs | 6 +- .../Models/NpmAccessGrantOptions.cs | 6 +- .../NpmAccessListCollaboratorsOptions.cs | 6 +- .../Models/NpmAccessListPackagesOptions.cs | 6 +- .../Models/NpmAccessRevokeOptions.cs | 6 +- .../Models/NpmAccessSetOptions.cs | 6 +- .../Models/NpmAdduserOptions.cs | 6 +- .../Models/NpmAuditOptions.cs | 28 +- .../Models/NpmBugsOptions.cs | 10 +- .../Models/NpmCacheAddOptions.cs | 2 +- .../Models/NpmCacheCleanOptions.cs | 2 +- .../Models/NpmCacheLsOptions.cs | 2 +- .../Models/NpmCacheVerifyOptions.cs | 2 +- .../Models/NpmCiOptions.cs | 28 +- .../Models/NpmConfigDeleteOptions.cs | 10 +- .../Models/NpmConfigEditOptions.cs | 10 +- .../Models/NpmConfigFixOptions.cs | 10 +- .../Models/NpmConfigGetOptions.cs | 10 +- .../Models/NpmConfigListOptions.cs | 10 +- .../Models/NpmConfigSetOptions.cs | 10 +- .../Models/NpmConfigSetRegistryOptions.cs | 10 +- .../Models/NpmDedupeOptions.cs | 28 +- .../Models/NpmDeprecateOptions.cs | 4 +- .../Models/NpmDiffOptions.cs | 26 +- .../Models/NpmDocsOptions.cs | 10 +- .../Models/NpmDoctorOptions.cs | 2 +- .../Models/NpmEditOptions.cs | 2 +- .../Models/NpmExecCOptions.cs | 10 +- .../Models/NpmExecOptions.cs | 10 +- .../Models/NpmExplainOptions.cs | 4 +- .../Models/NpmExploreOptions.cs | 2 +- .../Models/NpmFundOptions.cs | 10 +- .../Models/NpmHelpOptions.cs | 2 +- .../Models/NpmHookAddOptions.cs | 4 +- .../Models/NpmHookLsOptions.cs | 4 +- .../Models/NpmHookRmOptions.cs | 4 +- .../Models/NpmHookUpdateOptions.cs | 4 +- .../Models/NpmInitOptions.cs | 24 +- .../Models/NpmInstallOptions.cs | 54 ++-- .../Models/NpmLinkOptions.cs | 34 +-- .../Models/NpmLoginOptions.cs | 6 +- .../Models/NpmLogoutOptions.cs | 4 +- .../Models/NpmLsOptions.cs | 30 +-- .../Models/NpmOrgLsOptions.cs | 8 +- .../Models/NpmOrgRmOptions.cs | 8 +- .../Models/NpmOrgSetOptions.cs | 8 +- .../Models/NpmOutdatedOptions.cs | 12 +- .../Models/NpmOwnerAddOptions.cs | 8 +- .../Models/NpmOwnerLsOptions.cs | 8 +- .../Models/NpmOwnerRmOptions.cs | 8 +- .../Models/NpmPackOptions.cs | 12 +- .../Models/NpmPingOptions.cs | 2 +- .../Models/NpmPkgDeleteOptions.cs | 8 +- .../Models/NpmPkgFixOptions.cs | 8 +- .../Models/NpmPkgGetOptions.cs | 8 +- .../Models/NpmPkgSetOptions.cs | 8 +- .../Models/NpmPrefixOptions.cs | 2 +- .../Models/NpmProfileDisable2faOptions.cs | 8 +- .../Models/NpmProfileEnable2faOptions.cs | 8 +- .../Models/NpmProfileGetOptions.cs | 8 +- .../Models/NpmProfileSetOptions.cs | 8 +- .../Models/NpmPruneOptions.cs | 20 +- .../Models/NpmPublishOptions.cs | 18 +- .../Models/NpmQueryOptions.cs | 10 +- .../Models/NpmRebuildOptions.cs | 16 +- .../Models/NpmRepoOptions.cs | 10 +- .../Models/NpmRestartOptions.cs | 4 +- .../Models/NpmRootOptions.cs | 2 +- .../Models/NpmSbomOptions.cs | 12 +- .../Models/NpmSearchOptions.cs | 22 +- .../Models/NpmStarOptions.cs | 6 +- .../Models/NpmStarsOptions.cs | 2 +- .../Models/NpmStartOptions.cs | 4 +- .../Models/NpmStopOptions.cs | 4 +- .../Models/NpmTeamAddOptions.cs | 8 +- .../Models/NpmTeamCreateOptions.cs | 8 +- .../Models/NpmTeamDestroyOptions.cs | 8 +- .../Models/NpmTeamLsOptions.cs | 8 +- .../Models/NpmTeamRmOptions.cs | 8 +- .../Models/NpmTestOptions.cs | 4 +- .../Models/NpmTokenCreateOptions.cs | 8 +- .../Models/NpmTokenListOptions.cs | 8 +- .../Models/NpmTokenRevokeOptions.cs | 8 +- .../Models/NpmUninstallOptions.cs | 12 +- .../Models/NpmUnpublishOptions.cs | 8 +- .../Models/NpmUnstarOptions.cs | 6 +- .../Models/NpmUpdateOptions.cs | 34 +-- .../Models/NpmVersionOptions.cs | 20 +- .../Models/NpmViewOptions.cs | 8 +- .../Models/NpmWhoamiOptions.cs | 2 +- src/ModularPipelines.Node/Node.cs | 2 +- src/ModularPipelines.Node/Npm.cs | 190 +++++++------- src/ModularPipelines.Node/Npx.cs | 2 +- src/ModularPipelines.Node/Nvm.cs | 8 +- .../Options/TerraformApplyOptions.cs | 28 +- .../Options/TerraformConsoleOptions.cs | 2 +- .../Options/TerraformDestroyOptions.cs | 2 +- .../Options/TerraformFmtOptions.cs | 10 +- .../Options/TerraformForceUnlockOptions.cs | 2 +- .../Options/TerraformGetOptions.cs | 4 +- .../Options/TerraformGraphOptions.cs | 8 +- .../Options/TerraformImportOptions.cs | 26 +- .../Options/TerraformInitOptions.cs | 32 +-- .../Options/TerraformOutputOptions.cs | 8 +- .../Options/TerraformPlanOptions.cs | 38 +-- .../Options/TerraformRefreshOptions.cs | 4 +- .../Options/TerraformShowOptions.cs | 6 +- .../Options/TerraformStateCommandOptions.cs | 2 +- .../Options/TerraformStateListOptions.cs | 4 +- .../Options/TerraformStateMvOptions.cs | 18 +- .../Options/TerraformStatePushOptions.cs | 4 +- .../TerraformStateReplaceProviderOptions.cs | 14 +- .../Options/TerraformStateRmOptions.cs | 14 +- .../Options/TerraformStateShowOptions.cs | 2 +- .../Options/TerraformTaintOptions.cs | 16 +- .../TerraformTerraformProvidersLockOptions.cs | 6 +- ...erraformTerraformProvidersMirrorOptions.cs | 2 +- ...erraformTerraformProvidersSchemaOptions.cs | 2 +- .../Options/TerraformUntaintOptions.cs | 16 +- .../Options/TerraformValidateOptions.cs | 4 +- .../Options/TerraformVersionOptions.cs | 2 +- .../TerraformWorkspaceDeleteOptions.cs | 6 +- .../Options/TerraformWorkspaceNewOptions.cs | 6 +- .../TerraformWorkspaceSelectOptions.cs | 2 +- src/ModularPipelines.Terraform/Terraform.cs | 62 ++--- .../Options/DownloadOptions.cs | 40 +-- .../Options/ExportOptions.cs | 14 +- .../Options/HashOptions.cs | 10 +- .../Options/ImportOptions.cs | 18 +- .../Options/InstallOptions.cs | 62 ++--- .../Options/ListOptions.cs | 32 +-- .../Options/PinOptions.cs | 8 +- .../Options/ShowOptions.cs | 36 +-- .../Options/SourceAddOptions.cs | 12 +- .../Options/SourceExportOptions.cs | 8 +- .../Options/SourceListOptions.cs | 8 +- .../Options/SourceRemoveOptions.cs | 8 +- .../Options/SourceResetOptions.cs | 8 +- .../Options/SourceUpdateOptions.cs | 8 +- .../Options/UninstallOptions.cs | 42 +-- .../Options/UpgradeOptions.cs | 64 ++--- .../Options/ValidateOptions.cs | 8 +- src/ModularPipelines.WinGet/WinGet.cs | 46 ++-- .../Models/YarnAddOptions.cs | 24 +- .../Models/YarnBinOptions.cs | 4 +- .../Models/YarnCacheCleanOptions.cs | 4 +- .../Models/YarnConfigGetOptions.cs | 6 +- .../Models/YarnConfigOptions.cs | 4 +- .../Models/YarnConfigSetOptions.cs | 4 +- .../Models/YarnConfigUnsetOptions.cs | 2 +- .../Models/YarnConstraintsOptions.cs | 4 +- .../Models/YarnConstraintsQueryOptions.cs | 2 +- .../Models/YarnConstraintsSourceOptions.cs | 2 +- .../Models/YarnDedupeOptions.cs | 8 +- .../Models/YarnDlxOptions.cs | 4 +- .../Models/YarnExplainOptions.cs | 2 +- .../Models/YarnInfoOptions.cs | 18 +- .../Models/YarnInitOptions.cs | 8 +- .../Models/YarnInstallOptions.cs | 16 +- .../Models/YarnLinkOptions.cs | 6 +- .../Models/YarnNpmAuditOptions.cs | 16 +- .../Models/YarnNpmInfoOptions.cs | 4 +- .../Models/YarnNpmLoginOptions.cs | 6 +- .../Models/YarnNpmLogoutOptions.cs | 6 +- .../Models/YarnNpmPublishOptions.cs | 8 +- .../Models/YarnNpmTagListOptions.cs | 2 +- .../Models/YarnNpmWhoamiOptions.cs | 4 +- .../Models/YarnPackOptions.cs | 8 +- .../Models/YarnPatchCommitOptions.cs | 2 +- .../Models/YarnPatchOptions.cs | 4 +- .../Models/YarnPluginCheckOptions.cs | 2 +- .../YarnPluginImportFromSourcesOptions.cs | 10 +- .../Models/YarnPluginImportOptions.cs | 2 +- .../Models/YarnPluginListOptions.cs | 2 +- .../Models/YarnPluginRuntimeOptions.cs | 2 +- .../Models/YarnRemoveOptions.cs | 4 +- .../Models/YarnRunOptions.cs | 10 +- .../Models/YarnSetResolutionOptions.cs | 2 +- .../YarnSetVersionFromSourcesOptions.cs | 16 +- .../Models/YarnSetVersionOptions.cs | 4 +- .../Models/YarnStageOptions.cs | 6 +- .../Models/YarnUnlinkOptions.cs | 2 +- .../Models/YarnUnplugOptions.cs | 6 +- .../Models/YarnUpOptions.cs | 14 +- .../Models/YarnVersionApplyOptions.cs | 10 +- .../Models/YarnVersionCheckOptions.cs | 2 +- .../Models/YarnVersionOptions.cs | 4 +- .../Models/YarnWhyOptions.cs | 6 +- .../Models/YarnWorkspacesFocusOptions.cs | 6 +- .../Models/YarnWorkspacesForeachOptions.cs | 30 +-- .../Models/YarnWorkspacesListOptions.cs | 10 +- src/ModularPipelines.Yarn/Yarn.cs | 116 ++++----- .../BooleanCommandSwitchAttribute.cs | 2 +- .../Attributes/CommandSwitchAttribute.cs | 2 +- .../Attributes/ICommandSwitchAttribute.cs | 3 + .../Attributes/NotInParallelAttribute.cs | 2 +- .../Attributes/ParallelLimiterAttribute.cs | 2 +- src/ModularPipelines/Context/Bash.cs | 4 +- src/ModularPipelines/Context/Command.cs | 8 +- src/ModularPipelines/Context/FileInstaller.cs | 4 +- src/ModularPipelines/Context/Linux/AptGet.cs | 24 +- .../Context/LinuxInstaller.cs | 2 +- src/ModularPipelines/Context/MacInstaller.cs | 2 +- src/ModularPipelines/Context/Powershell.cs | 4 +- .../Context/PredefinedInstallers.cs | 6 +- .../Context/WindowsInstaller.cs | 4 +- .../Engine/DependencyChainProvider.cs | 2 +- .../Engine/DependencyPrinter.cs | 4 +- .../Engine/ExceptionContainer.cs | 2 +- .../Engine/Executors/ExecutionOrchestrator.cs | 6 +- .../Executors/ModuleHandlers/ErrorHandler.cs | 4 +- .../Engine/Executors/PipelineExecutor.cs | 4 +- .../Engine/Executors/PrintProgressExecutor.cs | 4 +- .../Engine/IExceptionContainer.cs | 2 +- .../Engine/ModuleContextProvider.cs | 4 +- src/ModularPipelines/Engine/ModuleExecutor.cs | 16 +- .../Engine/OptionsProvider.cs | 2 +- src/ModularPipelines/Enums/Status.cs | 2 +- .../Exceptions/SubModuleFailedException.cs | 2 +- .../Extensions/FileExtensions.cs | 2 +- .../Extensions/TypeExtensions.cs | 12 +- src/ModularPipelines/FileSystem/File.cs | 34 +-- src/ModularPipelines/FileSystem/Folder.cs | 28 +- .../CommandOptionsObjectArgumentParser.cs | 2 +- .../Helpers/NoOpDisposable.cs | 4 +- .../Helpers/ParallelLimitProvider.cs | 2 +- .../Helpers/ProgressPrinter.cs | 2 +- src/ModularPipelines/Http/Http.cs | 4 +- .../Interfaces/IScopeDisposer.cs | 2 +- .../Logging/AfterPipelineLogger.cs | 2 +- .../Logging/IAfterPipelineLogger.cs | 2 +- src/ModularPipelines/Logging/ModuleLogger.cs | 6 +- .../Logging/ModuleLoggerProvider.cs | 4 +- src/ModularPipelines/Models/CommandResult.cs | 2 +- src/ModularPipelines/Models/IModuleResult.cs | 4 +- .../Models/PipelineSummary.cs | 2 +- src/ModularPipelines/Modules/Module.cs | 22 +- src/ModularPipelines/Modules/ModuleBase.cs | 14 +- src/ModularPipelines/Options/HttpOptions.cs | 2 +- .../Options/Linux/AptGet/AptGetOptions.cs | 48 ++-- .../Options/Linux/DpkgInstallOptions.cs | 2 +- .../Options/PipelineOptions.cs | 2 +- .../Options/Windows/ExeInstallerOptions.cs | 20 +- .../Options/Windows/MsiInstallerOptions.cs | 20 +- .../SmartCollapsableLogging.cs | 4 +- test/ModularPipelines.TestHelpers/TestBase.cs | 2 +- .../TestPipelineHostBuilder.cs | 4 +- .../AfterPipelineLoggerTests.cs | 10 +- .../AlwaysRunTests.cs | 2 +- .../CommandParserTests.cs | 4 +- .../DependsOnAllInheritingFromTests.cs | 8 +- .../EngineCancellationTokenTests.cs | 2 +- .../Extensions/BooleanExtensionTests.cs | 2 +- .../Extensions/CommandExtensionsTests.cs | 10 +- .../Extensions/FileExtensionsTests.cs | 6 +- .../FileSystemContextTests.cs | 12 +- test/ModularPipelines.UnitTests/FileTests.cs | 18 +- .../ModularPipelines.UnitTests/FolderTests.cs | 42 +-- .../GitInformationTests.cs | 4 +- .../Helpers/Base64Tests.cs | 4 +- .../Helpers/BashTests.cs | 6 +- .../Helpers/CmdTests.cs | 4 +- .../Helpers/CommandTests.cs | 12 +- .../Helpers/DockerTests.cs | 2 +- .../Helpers/DotNetTestResultsTests.cs | 6 +- .../Helpers/DotNetTests.cs | 8 +- .../Helpers/EnvironmentContextTests.cs | 2 +- .../Helpers/FtpTests.cs | 2 +- .../Helpers/GitHubRepositoryInfoTests.cs | 4 +- .../Helpers/GitTests.cs | 6 +- .../Helpers/HexTests.cs | 4 +- .../Helpers/InstallerTests.cs | 2 +- .../Helpers/Md5Tests.cs | 2 +- .../Helpers/NodeTests.cs | 2 +- .../Helpers/PowershellTests.cs | 4 +- .../Helpers/Sha1Tests.cs | 2 +- .../Helpers/Sha256Tests.cs | 2 +- .../Helpers/Sha384Tests.cs | 2 +- .../Helpers/Sha512Tests.cs | 2 +- .../Helpers/ZipTests.cs | 8 +- test/ModularPipelines.UnitTests/HttpTests.cs | 6 +- .../IgnoredFailureTests.cs | 2 +- .../JsonSerializationTests.cs | 6 +- .../KeyValueTests.cs | 6 +- .../Models/RequirementDecisionTests.cs | 12 +- .../Models/SkipDecisionTests.cs | 12 +- .../ModuleLoggerTests.cs | 4 +- .../NotInParallelTests.cs | 2 +- .../NotInParallelTestsWithConstraintKeys.cs | 2 +- ...ParallelTestsWithMultipleConstraintKeys.cs | 4 +- .../ParallelLimiterTests.cs | 4 +- .../PipelineRequirementTests.cs | 2 +- test/ModularPipelines.UnitTests/RetryTests.cs | 8 +- .../RunnableCategoryTests.cs | 4 +- .../SkippedModuleTests.cs | 2 +- .../SmartCollapsableLoggingInternalTests.cs | 2 +- .../SubModuleTests.cs | 20 +- .../TimedDependencyTests.cs | 2 +- .../TrxParsingTests.cs | 8 +- 848 files changed, 7002 insertions(+), 6266 deletions(-) create mode 100644 src/ModularPipelines.Development.Analyzers/AnalyzerReleases.Shipped.md create mode 100644 src/ModularPipelines.Development.Analyzers/AnalyzerReleases.Unshipped.md create mode 100644 src/ModularPipelines.Development.Analyzers/ModularPipelines.Development.Analyzers.csproj create mode 100644 src/ModularPipelines.Development.Analyzers/Properties/launchSettings.json create mode 100644 src/ModularPipelines.Development.Analyzers/Readme.md create mode 100644 src/ModularPipelines.Development.Analyzers/Resources.Designer.cs create mode 100644 src/ModularPipelines.Development.Analyzers/Resources.resx create mode 100644 src/ModularPipelines.Development.Analyzers/VirtualCommandAnalyzer.cs create mode 100644 src/ModularPipelines.Development.Analyzers/VirtualCommandCodeFixProvider.cs create mode 100644 src/ModularPipelines.Development.Analyzers/VirtualSwitchPropertyAnalyzer.cs create mode 100644 src/ModularPipelines.Development.Analyzers/VirtualSwitchPropertyCodeFixProvider.cs create mode 100644 src/ModularPipelines/Attributes/ICommandSwitchAttribute.cs diff --git a/Directory.Build.props b/Directory.Build.props index 4fdb7c6e6b..2791e7acd4 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -32,4 +32,8 @@ + + + + \ No newline at end of file diff --git a/Directory.Packages.props b/Directory.Packages.props index 917f902efa..c28fb66bb2 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -45,6 +45,9 @@ + + + diff --git a/ModularPipelines.sln b/ModularPipelines.sln index 1107a756b5..d3f73dbc63 100644 --- a/ModularPipelines.sln +++ b/ModularPipelines.sln @@ -54,6 +54,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ModularPipelines.WinGet", " EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ModularPipelines.TestHelpers", "test\ModularPipelines.TestHelpers\ModularPipelines.TestHelpers.csproj", "{5C0A5600-4CFF-49C1-8E20-40C28F870C28}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Analyzers", "Analyzers", "{22EEBEC3-F653-4054-A282-3C7F818186CC}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ModularPipelines.Development.Analyzers", "src\ModularPipelines.Development.Analyzers\ModularPipelines.Development.Analyzers.csproj", "{B5D34368-1061-4621-ABC0-27677BF3FB1B}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -152,6 +156,10 @@ Global {5C0A5600-4CFF-49C1-8E20-40C28F870C28}.Debug|Any CPU.Build.0 = Debug|Any CPU {5C0A5600-4CFF-49C1-8E20-40C28F870C28}.Release|Any CPU.ActiveCfg = Release|Any CPU {5C0A5600-4CFF-49C1-8E20-40C28F870C28}.Release|Any CPU.Build.0 = Release|Any CPU + {B5D34368-1061-4621-ABC0-27677BF3FB1B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B5D34368-1061-4621-ABC0-27677BF3FB1B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B5D34368-1061-4621-ABC0-27677BF3FB1B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B5D34368-1061-4621-ABC0-27677BF3FB1B}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -180,6 +188,7 @@ Global {4F9D2311-5B31-4A4C-BA8F-7A21B3E36C66} = {87E9D101-2B57-4D04-9488-CF8E720AF379} {AA41FF20-E41B-4219-A0CE-55007105C2D2} = {87E9D101-2B57-4D04-9488-CF8E720AF379} {5C0A5600-4CFF-49C1-8E20-40C28F870C28} = {F213898F-1E32-48F1-AB8C-83D2BD01A93B} + {B5D34368-1061-4621-ABC0-27677BF3FB1B} = {22EEBEC3-F653-4054-A282-3C7F818186CC} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {A5905A5D-B4E1-4A7A-9279-0283D86A9F7F} diff --git a/src/ModularPipelines.Build/Attributes/SkipIfDependencyPullRequest.cs b/src/ModularPipelines.Build/Attributes/SkipIfDependencyPullRequest.cs index 11fd02204a..e7d0b540b6 100644 --- a/src/ModularPipelines.Build/Attributes/SkipIfDependencyPullRequest.cs +++ b/src/ModularPipelines.Build/Attributes/SkipIfDependencyPullRequest.cs @@ -9,7 +9,7 @@ public class SkipIfDependencyPullRequest : MandatoryRunConditionAttribute public override async Task Condition(IPipelineHookContext pipelineContext) { var gitHubEnvironmentVariables = pipelineContext.GitHub().EnvironmentVariables; - + if (gitHubEnvironmentVariables.EventName != "pull_request") { return true; @@ -18,7 +18,7 @@ public override async Task Condition(IPipelineHookContext pipelineContext) var prNumber = int.Parse(gitHubEnvironmentVariables.RefName!.Split('/').First()); var pr = await pipelineContext.GitHub().Client.PullRequest.Get(int.Parse(gitHubEnvironmentVariables.RepositoryId!), prNumber); - + return pr.Labels.All(x => x.Name != "dependencies"); } } \ No newline at end of file diff --git a/src/ModularPipelines.Build/GitHelpers.cs b/src/ModularPipelines.Build/GitHelpers.cs index 01fd9ea621..5f59209f0a 100644 --- a/src/ModularPipelines.Build/GitHelpers.cs +++ b/src/ModularPipelines.Build/GitHelpers.cs @@ -74,7 +74,7 @@ await context.Git().Commands.Commit(new GitCommitOptions { Message = message, }, token: cancellationToken); - + var author = context.GitHub().EnvironmentVariables.Actor ?? "thomhurst"; var arguments = new List { $"https://x-access-token:{token}@github.com/{author}/ModularPipelines.git" }; diff --git a/src/ModularPipelines.Build/Modules/CodeFormattedNicelyModule.cs b/src/ModularPipelines.Build/Modules/CodeFormattedNicelyModule.cs index b831f48947..39b9f86fe0 100644 --- a/src/ModularPipelines.Build/Modules/CodeFormattedNicelyModule.cs +++ b/src/ModularPipelines.Build/Modules/CodeFormattedNicelyModule.cs @@ -37,7 +37,7 @@ protected override Task ShouldSkip(IPipelineContext context) { return SkipDecision.Skip("Not a pull request").AsTask(); } - + if (string.IsNullOrEmpty(_githubSettings.Value.StandardToken)) { return SkipDecision.Skip("No authentication token for git").AsTask(); diff --git a/src/ModularPipelines.Build/Modules/CreateReleaseModule.cs b/src/ModularPipelines.Build/Modules/CreateReleaseModule.cs index 2eaa457b43..53ac28e7fa 100644 --- a/src/ModularPipelines.Build/Modules/CreateReleaseModule.cs +++ b/src/ModularPipelines.Build/Modules/CreateReleaseModule.cs @@ -40,7 +40,7 @@ protected override async Task ShouldIgnoreFailures(IPipelineContext contex protected override async Task ShouldSkip(IPipelineContext context) { await Task.CompletedTask; - + if (!_publishSettings.Value.ShouldPublish) { return "The 'ShouldPublish' flag is false"; @@ -53,7 +53,7 @@ protected override async Task ShouldSkip(IPipelineContext context) protected override async Task ExecuteAsync(IPipelineContext context, CancellationToken cancellationToken) { var versionInfoResult = await GetModule(); - + return await context.GitHub().Client.Repository.Release.Create(long.Parse(context.GitHub().EnvironmentVariables.RepositoryId!), new NewRelease($"v{versionInfoResult.Value}") { diff --git a/src/ModularPipelines.Build/Modules/DependabotCommitsModule.cs b/src/ModularPipelines.Build/Modules/DependabotCommitsModule.cs index b5ee683db1..7ada96ada7 100644 --- a/src/ModularPipelines.Build/Modules/DependabotCommitsModule.cs +++ b/src/ModularPipelines.Build/Modules/DependabotCommitsModule.cs @@ -15,7 +15,7 @@ public class DependabotCommitsModule : Module> protected override async Task?> ExecuteAsync(IPipelineContext context, CancellationToken cancellationToken) { var repositoryInfo = context.GitHub().RepositoryInfo; - + var latestRelease = await context.GitHub().Client.Repository.Release.GetLatest(repositoryInfo.Owner, repositoryInfo.RepositoryName); var commitsSinceRelease = await context.GitHub().Client.Repository.Commit.GetAll(repositoryInfo.Owner, @@ -24,14 +24,14 @@ public class DependabotCommitsModule : Module> Sha = "main", Since = latestRelease.CreatedAt.AddMinutes(-2), }); - + var commits = commitsSinceRelease .Where(x => x.Author.Login.StartsWith("dependabot") || x.Author.Login.StartsWith("renovate-bot")) .Select(x => x.Commit.Message.Split(Environment.NewLine)) .Select(x => x.FirstOrDefault()) .OfType() .ToList(); - + context.Logger.LogInformation("Commits: {Commits}", string.Join(Environment.NewLine, commits)); return commits; diff --git a/src/ModularPipelines.Build/Modules/FindProjectsModule.cs b/src/ModularPipelines.Build/Modules/FindProjectsModule.cs index 83324810cb..3477d1abf1 100644 --- a/src/ModularPipelines.Build/Modules/FindProjectsModule.cs +++ b/src/ModularPipelines.Build/Modules/FindProjectsModule.cs @@ -48,6 +48,11 @@ private bool GetProjectsPredicate(File file, IPipelineContext context) return true; } + if (path.Contains("Development")) + { + return false; + } + if (path.Contains("ModularPipelines.Analyzers")) { return false; diff --git a/src/ModularPipelines.Build/Modules/NugetVersionGeneratorModule.cs b/src/ModularPipelines.Build/Modules/NugetVersionGeneratorModule.cs index 7f9c18aa29..602f40b8e3 100644 --- a/src/ModularPipelines.Build/Modules/NugetVersionGeneratorModule.cs +++ b/src/ModularPipelines.Build/Modules/NugetVersionGeneratorModule.cs @@ -22,8 +22,8 @@ public NugetVersionGeneratorModule(IOptions publishSettings) { var gitVersionInformation = await context.Git().Versioning.GetGitVersioningInformation(); - var version = _publishSettings.Value.IsAlpha - ? $"{gitVersionInformation.FullSemVer}-alpha{gitVersionInformation.CommitsSinceVersionSourcePadded!}" + var version = _publishSettings.Value.IsAlpha + ? $"{gitVersionInformation.FullSemVer}-alpha{gitVersionInformation.CommitsSinceVersionSourcePadded!}" : gitVersionInformation.FullSemVer!; context.LogOnPipelineEnd($"Generated Version Number: {version}"); diff --git a/src/ModularPipelines.Build/Modules/PrintEnvironmentVariablesModule.cs b/src/ModularPipelines.Build/Modules/PrintEnvironmentVariablesModule.cs index 0ff53d3dd4..e0629689f8 100644 --- a/src/ModularPipelines.Build/Modules/PrintEnvironmentVariablesModule.cs +++ b/src/ModularPipelines.Build/Modules/PrintEnvironmentVariablesModule.cs @@ -11,14 +11,14 @@ public class PrintEnvironmentVariablesModule : Module protected override async Task?> ExecuteAsync(IPipelineContext context, CancellationToken cancellationToken) { await Task.CompletedTask; - + context.Logger.LogInformation("Environment Variables: {EnvVars}", JsonSerializer.Serialize(context.Environment.EnvironmentVariables.GetEnvironmentVariables(), new JsonSerializerOptions { ReferenceHandler = ReferenceHandler.IgnoreCycles, IgnoreReadOnlyFields = true, WriteIndented = true, })); - + return null; } } \ No newline at end of file diff --git a/src/ModularPipelines.Build/Modules/PrintGitInformationModule.cs b/src/ModularPipelines.Build/Modules/PrintGitInformationModule.cs index 2850f138e3..3ae2818733 100644 --- a/src/ModularPipelines.Build/Modules/PrintGitInformationModule.cs +++ b/src/ModularPipelines.Build/Modules/PrintGitInformationModule.cs @@ -12,14 +12,14 @@ public class PrintGitInformationModule : Module protected override async Task?> ExecuteAsync(IPipelineContext context, CancellationToken cancellationToken) { await Task.CompletedTask; - + context.Logger.LogInformation("Git Info: {GitInfo}", JsonSerializer.Serialize(context.Git().Information, new JsonSerializerOptions { ReferenceHandler = ReferenceHandler.IgnoreCycles, IgnoreReadOnlyFields = true, WriteIndented = true, })); - + return null; } } \ No newline at end of file diff --git a/src/ModularPipelines.Build/Modules/WaitForOtherOperatingSystemBuilds.cs b/src/ModularPipelines.Build/Modules/WaitForOtherOperatingSystemBuilds.cs index 91dbf89c20..c1ff2f95ab 100644 --- a/src/ModularPipelines.Build/Modules/WaitForOtherOperatingSystemBuilds.cs +++ b/src/ModularPipelines.Build/Modules/WaitForOtherOperatingSystemBuilds.cs @@ -36,7 +36,7 @@ protected override Task ShouldSkip(IPipelineContext context) { HeadSha = commitSha, }); - + var macRuns = await context.GitHub().Client.Actions.Workflows.Runs.ListByWorkflow(BuildConstants.Owner, BuildConstants.RepositoryName, "dotnet-mac.yml", new WorkflowRunsRequest { HeadSha = commitSha, diff --git a/src/ModularPipelines.Build/Program.cs b/src/ModularPipelines.Build/Program.cs index 8fa2866d64..13451627bd 100644 --- a/src/ModularPipelines.Build/Program.cs +++ b/src/ModularPipelines.Build/Program.cs @@ -52,14 +52,14 @@ await PipelineHostBuilder.Create() collection.AddSingleton(sp => { var githubSettings = sp.GetRequiredService>(); - + var githubToken = githubSettings.Value.StandardToken; if (string.IsNullOrEmpty(githubToken)) { githubToken = "token"; } - + return new GitHubClient(new ProductHeaderValue("ModularPipelinesBuild"), new InMemoryCredentialStore(new Credentials(githubToken))); }); diff --git a/src/ModularPipelines.Chocolatey/Choco.cs b/src/ModularPipelines.Chocolatey/Choco.cs index e71c485266..9187ac21bf 100644 --- a/src/ModularPipelines.Chocolatey/Choco.cs +++ b/src/ModularPipelines.Chocolatey/Choco.cs @@ -15,243 +15,243 @@ public Choco(ICommand command) _command = command; } - public async Task ApiKey(ApiKeyOptions? options = default, CancellationToken token = default) + public virtual async Task ApiKey(ApiKeyOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new ApiKeyOptions(), token); } - public async Task SetApiKey(SetApiKeyOptions? options = default, CancellationToken token = default) + public virtual async Task SetApiKey(SetApiKeyOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new SetApiKeyOptions(), token); } - public async Task Cache(CacheOptions? options = default, CancellationToken token = default) + public virtual async Task Cache(CacheOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new CacheOptions(), token); } - public async Task CacheRemove(CacheRemoveOptions? options = default, + public virtual async Task CacheRemove(CacheRemoveOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new CacheRemoveOptions(), token); } - public async Task Config(ConfigOptions? options = default, CancellationToken token = default) + public virtual async Task Config(ConfigOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new ConfigOptions(), token); } - public async Task ConfigGet(ConfigGetOptions? options = default, CancellationToken token = default) + public virtual async Task ConfigGet(ConfigGetOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new ConfigGetOptions(), token); } - public async Task ConfigSet(ConfigSetOptions? options = default, CancellationToken token = default) + public virtual async Task ConfigSet(ConfigSetOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new ConfigSetOptions(), token); } - public async Task ConfigUnset(ConfigUnsetOptions? options = default, + public virtual async Task ConfigUnset(ConfigUnsetOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new ConfigUnsetOptions(), token); } - public async Task Convert(ConvertOptions options, CancellationToken token = default) + public virtual async Task Convert(ConvertOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Download(DownloadOptions options, CancellationToken token = default) + public virtual async Task Download(DownloadOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Export(ExportOptions? options = default, CancellationToken token = default) + public virtual async Task Export(ExportOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new ExportOptions(), token); } - public async Task Feature(FeatureOptions? options = default, CancellationToken token = default) + public virtual async Task Feature(FeatureOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new FeatureOptions(), token); } - public async Task FeatureDisable(FeatureDisableOptions? options = default, + public virtual async Task FeatureDisable(FeatureDisableOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new FeatureDisableOptions(), token); } - public async Task FeatureEnable(FeatureEnableOptions? options = default, + public virtual async Task FeatureEnable(FeatureEnableOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new FeatureEnableOptions(), token); } - public async Task Help(HelpOptions? options = default, CancellationToken token = default) + public virtual async Task Help(HelpOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new HelpOptions(), token); } - public async Task Info(InfoOptions? options = default, CancellationToken token = default) + public virtual async Task Info(InfoOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new InfoOptions(), token); } - public async Task Optimize(OptimizeOptions? options = default, CancellationToken token = default) + public virtual async Task Optimize(OptimizeOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new OptimizeOptions(), token); } - public async Task Install(InstallOptions options, CancellationToken token = default) + public virtual async Task Install(InstallOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task List(ListOptions options, CancellationToken token = default) + public virtual async Task List(ListOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task New(NewOptions options, CancellationToken token = default) + public virtual async Task New(NewOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Outdated(OutdatedOptions? options = default, CancellationToken token = default) + public virtual async Task Outdated(OutdatedOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new OutdatedOptions(), token); } - public async Task Pack(PackOptions options, CancellationToken token = default) + public virtual async Task Pack(PackOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Pin(PinOptions? options = default, CancellationToken token = default) + public virtual async Task Pin(PinOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new PinOptions(), token); } - public async Task PinAdd(PinAddOptions? options = default, CancellationToken token = default) + public virtual async Task PinAdd(PinAddOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new PinAddOptions(), token); } - public async Task PinRemove(PinRemoveOptions? options = default, CancellationToken token = default) + public virtual async Task PinRemove(PinRemoveOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new PinRemoveOptions(), token); } - public async Task Push(PushOptions options, CancellationToken token = default) + public virtual async Task Push(PushOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Find(FindOptions options, CancellationToken token = default) + public virtual async Task Find(FindOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Search(SearchOptions options, CancellationToken token = default) + public virtual async Task Search(SearchOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Apikey(ApiKeyOptions? options = default, CancellationToken token = default) + public virtual async Task Apikey(ApiKeyOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new ApiKeyOptions(), token); } - public async Task Setapikey(SetApiKeyOptions? options = default, CancellationToken token = default) + public virtual async Task Setapikey(SetApiKeyOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new SetApiKeyOptions(), token); } - public async Task Source(SourceOptions? options = default, CancellationToken token = default) + public virtual async Task Source(SourceOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new SourceOptions(), token); } - public async Task SourceAdd(SourceAddOptions? options = default, CancellationToken token = default) + public virtual async Task SourceAdd(SourceAddOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new SourceAddOptions(), token); } - public async Task SourceRemove(SourceRemoveOptions? options = default, + public virtual async Task SourceRemove(SourceRemoveOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new SourceRemoveOptions(), token); } - public async Task SourceDisable(SourceDisableOptions? options = default, + public virtual async Task SourceDisable(SourceDisableOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new SourceDisableOptions(), token); } - public async Task SourceEnable(SourceEnableOptions? options = default, + public virtual async Task SourceEnable(SourceEnableOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new SourceEnableOptions(), token); } - public async Task Sources(SourcesOptions? options = default, CancellationToken token = default) + public virtual async Task Sources(SourcesOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new SourcesOptions(), token); } - public async Task SourcesAdd(SourcesAddOptions? options = default, CancellationToken token = default) + public virtual async Task SourcesAdd(SourcesAddOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new SourcesAddOptions(), token); } - public async Task SourcesRemove(SourcesRemoveOptions? options = default, + public virtual async Task SourcesRemove(SourcesRemoveOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new SourcesRemoveOptions(), token); } - public async Task SourcesDisable(SourcesDisableOptions? options = default, + public virtual async Task SourcesDisable(SourcesDisableOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new SourcesDisableOptions(), token); } - public async Task SourcesEnable(SourcesEnableOptions? options = default, + public virtual async Task SourcesEnable(SourcesEnableOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new SourcesEnableOptions(), token); } - public async Task Support(SupportOptions? options = default, CancellationToken token = default) + public virtual async Task Support(SupportOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new SupportOptions(), token); } - public async Task Sync(SyncOptions? options = default, CancellationToken token = default) + public virtual async Task Sync(SyncOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new SyncOptions(), token); } - public async Task Template(TemplateOptions? options = default, CancellationToken token = default) + public virtual async Task Template(TemplateOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new TemplateOptions(), token); } - public async Task TemplateInfo(TemplateInfoOptions? options = default, + public virtual async Task TemplateInfo(TemplateInfoOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new TemplateInfoOptions(), token); } - public async Task Uninstall(UninstallOptions options, CancellationToken token = default) + public virtual async Task Uninstall(UninstallOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Upgrade(UpgradeOptions options, CancellationToken token = default) + public virtual async Task Upgrade(UpgradeOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } diff --git a/src/ModularPipelines.Chocolatey/Options/ApikeyOptions.cs b/src/ModularPipelines.Chocolatey/Options/ApikeyOptions.cs index 5b1b23d94c..bc5f1169dc 100644 --- a/src/ModularPipelines.Chocolatey/Options/ApikeyOptions.cs +++ b/src/ModularPipelines.Chocolatey/Options/ApikeyOptions.cs @@ -8,8 +8,8 @@ namespace ModularPipelines.Chocolatey.Options; public record ApiKeyOptions : ChocoOptions { [CommandSwitch("--source")] - public string? Source { get; set; } + public virtual string? Source { get; set; } [CommandSwitch("--api-key")] - public string? ApiKey { get; set; } + 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 index eb924a31f4..b8c5699097 100644 --- a/src/ModularPipelines.Chocolatey/Options/CacheOptions.cs +++ b/src/ModularPipelines.Chocolatey/Options/CacheOptions.cs @@ -8,5 +8,5 @@ namespace ModularPipelines.Chocolatey.Options; public record CacheOptions : ChocoOptions { [BooleanCommandSwitch("--expired")] - public bool? Expired { get; set; } + 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 index c787668215..5f19fa8d2d 100644 --- a/src/ModularPipelines.Chocolatey/Options/CacheRemoveOptions.cs +++ b/src/ModularPipelines.Chocolatey/Options/CacheRemoveOptions.cs @@ -8,5 +8,5 @@ namespace ModularPipelines.Chocolatey.Options; public record CacheRemoveOptions : ChocoOptions { [BooleanCommandSwitch("--expired")] - public bool? Expired { get; set; } + public virtual bool? Expired { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Chocolatey/Options/ChocoOptions.cs b/src/ModularPipelines.Chocolatey/Options/ChocoOptions.cs index 2799aae550..c98e9652e4 100644 --- a/src/ModularPipelines.Chocolatey/Options/ChocoOptions.cs +++ b/src/ModularPipelines.Chocolatey/Options/ChocoOptions.cs @@ -8,77 +8,77 @@ namespace ModularPipelines.Chocolatey.Options; public record ChocoOptions() : CommandLineToolOptions("choco") { [BooleanCommandSwitch("--help")] - public bool? Help { get; set; } + public virtual bool? Help { get; set; } [BooleanCommandSwitch("--online")] - public bool? Online { get; set; } + public virtual bool? Online { get; set; } [BooleanCommandSwitch("--debug")] - public bool? Debug { get; set; } + public virtual bool? Debug { get; set; } [BooleanCommandSwitch("--verbose")] - public bool? Verbose { get; set; } + public virtual bool? Verbose { get; set; } [BooleanCommandSwitch("--trace")] - public bool? Trace { get; set; } + public virtual bool? Trace { get; set; } [BooleanCommandSwitch("--no-color")] - public bool? NoColor { get; set; } + public virtual bool? NoColor { get; set; } [BooleanCommandSwitch("--accept-license")] - public bool? AcceptLicense { get; set; } + public virtual bool? AcceptLicense { get; set; } [BooleanCommandSwitch("--confirm")] - public bool? Confirm { get; set; } = true; + public virtual bool? Confirm { get; set; } = true; [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [BooleanCommandSwitch("--what-if")] - public bool? WhatIf { get; set; } + public virtual bool? WhatIf { get; set; } [BooleanCommandSwitch("--limit-output")] - public bool? LimitOutput { get; set; } + public virtual bool? LimitOutput { get; set; } [CommandSwitch("--execution-timeout")] - public string? ExecutionTimeout { get; set; } + public virtual string? ExecutionTimeout { get; set; } [CommandSwitch("--cache-location")] - public string? CacheLocation { get; set; } + public virtual string? CacheLocation { get; set; } [BooleanCommandSwitch("--allow-unofficial-build")] - public bool? AllowUnofficialBuild { get; set; } + public virtual bool? AllowUnofficialBuild { get; set; } [BooleanCommandSwitch("--fail-on-error-output")] - public bool? FailOnErrorOutput { get; set; } + public virtual bool? FailOnErrorOutput { get; set; } [BooleanCommandSwitch("--use-system-powershell")] - public bool? UseSystemPowershell { get; set; } + public virtual bool? UseSystemPowershell { get; set; } [BooleanCommandSwitch("--no-progress")] - public bool? NoProgress { get; set; } + public virtual bool? NoProgress { get; set; } [CommandSwitch("--proxy")] - public string? Proxy { get; set; } + public virtual string? Proxy { get; set; } [CommandSwitch("--proxy-user")] - public string? ProxyUser { get; set; } + public virtual string? ProxyUser { get; set; } [CommandSwitch("--proxy-password")] - public string? ProxyPassword { get; set; } + public virtual string? ProxyPassword { get; set; } [CommandSwitch("--proxy-bypass-list")] - public string? ProxyBypassList { get; set; } + public virtual string? ProxyBypassList { get; set; } [BooleanCommandSwitch("--proxy-bypass-on-local")] - public bool? ProxyBypassOnLocal { get; set; } + public virtual bool? ProxyBypassOnLocal { get; set; } [CommandSwitch("--log-file")] - public string? LogFile { get; set; } + public virtual string? LogFile { get; set; } [BooleanCommandSwitch("--skip-compatibility-checks")] - public bool? SkipCompatibilityChecks { get; set; } + public virtual bool? SkipCompatibilityChecks { get; set; } [BooleanCommandSwitch("--ignore-http-cache")] - public bool? IgnoreHttpCache { get; set; } + public virtual bool? IgnoreHttpCache { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Chocolatey/Options/ConfigGetOptions.cs b/src/ModularPipelines.Chocolatey/Options/ConfigGetOptions.cs index 3c5b256c82..e022587c99 100644 --- a/src/ModularPipelines.Chocolatey/Options/ConfigGetOptions.cs +++ b/src/ModularPipelines.Chocolatey/Options/ConfigGetOptions.cs @@ -8,8 +8,8 @@ namespace ModularPipelines.Chocolatey.Options; public record ConfigGetOptions : ChocoOptions { [CommandSwitch("--name")] - public string? Name { get; set; } + public virtual string? Name { get; set; } [CommandSwitch("--value")] - public string? Value { get; set; } + 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 index ce9260c011..f544f7e518 100644 --- a/src/ModularPipelines.Chocolatey/Options/ConfigOptions.cs +++ b/src/ModularPipelines.Chocolatey/Options/ConfigOptions.cs @@ -8,8 +8,8 @@ namespace ModularPipelines.Chocolatey.Options; public record ConfigOptions : ChocoOptions { [CommandSwitch("--name")] - public string? Name { get; set; } + public virtual string? Name { get; set; } [CommandSwitch("--value")] - public string? Value { get; set; } + 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 index 7bf97b1b6e..01dececbec 100644 --- a/src/ModularPipelines.Chocolatey/Options/ConfigSetOptions.cs +++ b/src/ModularPipelines.Chocolatey/Options/ConfigSetOptions.cs @@ -8,8 +8,8 @@ namespace ModularPipelines.Chocolatey.Options; public record ConfigSetOptions : ChocoOptions { [CommandSwitch("--name")] - public string? Name { get; set; } + public virtual string? Name { get; set; } [CommandSwitch("--value")] - public string? Value { get; set; } + 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 index 51591084f0..1e62bed8b5 100644 --- a/src/ModularPipelines.Chocolatey/Options/ConfigUnsetOptions.cs +++ b/src/ModularPipelines.Chocolatey/Options/ConfigUnsetOptions.cs @@ -8,8 +8,8 @@ namespace ModularPipelines.Chocolatey.Options; public record ConfigUnsetOptions : ChocoOptions { [CommandSwitch("--name")] - public string? Name { get; set; } + public virtual string? Name { get; set; } [CommandSwitch("--value")] - public string? Value { get; set; } + 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 index e27a8789f6..8619128806 100644 --- a/src/ModularPipelines.Chocolatey/Options/ConvertOptions.cs +++ b/src/ModularPipelines.Chocolatey/Options/ConvertOptions.cs @@ -10,14 +10,14 @@ public record ConvertOptions( ) : ChocoOptions { [CommandSwitch("--to-format")] - public string? ToFormat { get; set; } + public virtual string? ToFormat { get; set; } [BooleanCommandSwitch("--includeall")] - public bool? Includeall { get; set; } + public virtual bool? Includeall { get; set; } [BooleanCommandSwitch("--ignore-dependencies")] - public bool? IgnoreDependencies { get; set; } + public virtual bool? IgnoreDependencies { get; set; } [BooleanCommandSwitch("--force-self-service")] - public bool? ForceSelfService { get; set; } + 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 index da04f9c2a2..c6d8798237 100644 --- a/src/ModularPipelines.Chocolatey/Options/DownloadOptions.cs +++ b/src/ModularPipelines.Chocolatey/Options/DownloadOptions.cs @@ -10,71 +10,71 @@ public record DownloadOptions( ) : ChocoOptions { [CommandSwitch("--source")] - public string? Source { get; set; } + public virtual string? Source { get; set; } [CommandSwitch("--version")] - public string? Version { get; set; } + public virtual string? Version { get; set; } [BooleanCommandSwitch("--prerelease")] - public bool? Prerelease { get; set; } + public virtual bool? Prerelease { get; set; } [CommandSwitch("--user")] - public string? User { get; set; } + public virtual string? User { get; set; } [CommandSwitch("--password")] - public string? Password { get; set; } + public virtual string? Password { get; set; } [CommandSwitch("--cert")] - public string? Cert { get; set; } + public virtual string? Cert { get; set; } [CommandSwitch("--certpassword")] - public string? Certpassword { get; set; } + public virtual string? Certpassword { get; set; } [CommandSwitch("--output-directory")] - public string? OutputDirectory { get; set; } + public virtual string? OutputDirectory { get; set; } [BooleanCommandSwitch("--ignore-dependencies")] - public bool? IgnoreDependencies { get; set; } + public virtual bool? IgnoreDependencies { get; set; } [BooleanCommandSwitch("--installed-packages")] - public bool? InstalledPackages { get; set; } + public virtual bool? InstalledPackages { get; set; } [BooleanCommandSwitch("--ignore-unfound-packages")] - public bool? IgnoreUnfoundPackages { get; set; } + public virtual bool? IgnoreUnfoundPackages { get; set; } [BooleanCommandSwitch("--disable-package-repository-optimizations")] - public bool? DisablePackageRepositoryOptimizations { get; set; } + public virtual bool? DisablePackageRepositoryOptimizations { get; set; } [BooleanCommandSwitch("--internalize")] - public bool? Internalize { get; set; } + public virtual bool? Internalize { get; set; } [CommandSwitch("--resources-location")] - public string? ResourcesLocation { get; set; } + public virtual string? ResourcesLocation { get; set; } [CommandSwitch("--download-location")] - public string? DownloadLocation { get; set; } + public virtual string? DownloadLocation { get; set; } [BooleanCommandSwitch("--internalize-all-urls")] - public bool? InternalizeAllUrls { get; set; } + public virtual bool? InternalizeAllUrls { get; set; } [BooleanCommandSwitch("--append-use-original-location")] - public bool? AppendUseOriginalLocation { get; set; } + public virtual bool? AppendUseOriginalLocation { get; set; } [BooleanCommandSwitch("--skip-download-cache")] - public bool? SkipDownloadCache { get; set; } + public virtual bool? SkipDownloadCache { get; set; } [BooleanCommandSwitch("--use-download-cache")] - public bool? UseDownloadCache { get; set; } + public virtual bool? UseDownloadCache { get; set; } [BooleanCommandSwitch("--skip-virus-check")] - public bool? SkipVirusCheck { get; set; } + public virtual bool? SkipVirusCheck { get; set; } [BooleanCommandSwitch("--virus-check")] - public bool? VirusCheck { get; set; } + public virtual bool? VirusCheck { get; set; } [CommandSwitch("--virus-positives-minimum")] - public string? VirusPositivesMinimum { get; set; } + public virtual string? VirusPositivesMinimum { get; set; } [BooleanCommandSwitch("--force-self-service")] - public bool? ForceSelfService { get; set; } + 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 index ad2c1a1a05..9c0834b19e 100644 --- a/src/ModularPipelines.Chocolatey/Options/ExportOptions.cs +++ b/src/ModularPipelines.Chocolatey/Options/ExportOptions.cs @@ -8,8 +8,8 @@ namespace ModularPipelines.Chocolatey.Options; public record ExportOptions : ChocoOptions { [CommandSwitch("--output-file-path")] - public string? OutputFilePath { get; set; } + public virtual string? OutputFilePath { get; set; } [BooleanCommandSwitch("--include-version")] - public bool? IncludeVersion { get; set; } + 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 index a7312d5d38..f44e7ad1aa 100644 --- a/src/ModularPipelines.Chocolatey/Options/FeatureDisableOptions.cs +++ b/src/ModularPipelines.Chocolatey/Options/FeatureDisableOptions.cs @@ -8,5 +8,5 @@ namespace ModularPipelines.Chocolatey.Options; public record FeatureDisableOptions : ChocoOptions { [CommandSwitch("--name")] - public string? Name { get; set; } + 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 index 07445cb50b..dc89d4d7e8 100644 --- a/src/ModularPipelines.Chocolatey/Options/FeatureEnableOptions.cs +++ b/src/ModularPipelines.Chocolatey/Options/FeatureEnableOptions.cs @@ -8,5 +8,5 @@ namespace ModularPipelines.Chocolatey.Options; public record FeatureEnableOptions : ChocoOptions { [CommandSwitch("--name")] - public string? Name { get; set; } + 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 index 7eb2338e9c..b880a5c989 100644 --- a/src/ModularPipelines.Chocolatey/Options/FeatureOptions.cs +++ b/src/ModularPipelines.Chocolatey/Options/FeatureOptions.cs @@ -8,5 +8,5 @@ namespace ModularPipelines.Chocolatey.Options; public record FeatureOptions : ChocoOptions { [CommandSwitch("--name")] - public string? Name { get; set; } + 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 index 60ebf67d63..d3a8f63a18 100644 --- a/src/ModularPipelines.Chocolatey/Options/FindOptions.cs +++ b/src/ModularPipelines.Chocolatey/Options/FindOptions.cs @@ -10,74 +10,74 @@ public record FindOptions( ) : ChocoOptions { [CommandSwitch("--source")] - public string? Source { get; set; } + public virtual string? Source { get; set; } [BooleanCommandSwitch("--id-only")] - public bool? IdOnly { get; set; } + public virtual bool? IdOnly { get; set; } [BooleanCommandSwitch("--prerelease")] - public bool? Prerelease { get; set; } + public virtual bool? Prerelease { get; set; } [BooleanCommandSwitch("--include-programs")] - public bool? IncludePrograms { get; set; } + public virtual bool? IncludePrograms { get; set; } [BooleanCommandSwitch("--all-versions")] - public bool? AllVersions { get; set; } + public virtual bool? AllVersions { get; set; } [CommandSwitch("--version")] - public string? Version { get; set; } + public virtual string? Version { get; set; } [CommandSwitch("--user")] - public string? User { get; set; } + public virtual string? User { get; set; } [CommandSwitch("--password")] - public string? Password { get; set; } + public virtual string? Password { get; set; } [CommandSwitch("--cert")] - public string? Cert { get; set; } + public virtual string? Cert { get; set; } [CommandSwitch("--certpassword")] - public string? Certpassword { get; set; } + public virtual string? Certpassword { get; set; } [CommandSwitch("--page")] - public string? Page { get; set; } + public virtual string? Page { get; set; } [CommandSwitch("--page-size")] - public string? PageSize { get; set; } + public virtual string? PageSize { get; set; } [BooleanCommandSwitch("--exact")] - public bool? Exact { get; set; } + public virtual bool? Exact { get; set; } [BooleanCommandSwitch("--by-id-only")] - public bool? ByIdOnly { get; set; } + public virtual bool? ByIdOnly { get; set; } [BooleanCommandSwitch("--by-tags-only")] - public bool? ByTagsOnly { get; set; } + public virtual bool? ByTagsOnly { get; set; } [BooleanCommandSwitch("--id-starts-with")] - public bool? IdStartsWith { get; set; } + public virtual bool? IdStartsWith { get; set; } [BooleanCommandSwitch("--order-by-popularity")] - public bool? OrderByPopularity { get; set; } + public virtual bool? OrderByPopularity { get; set; } [BooleanCommandSwitch("--approved-only")] - public bool? ApprovedOnly { get; set; } + public virtual bool? ApprovedOnly { get; set; } [BooleanCommandSwitch("--download-cache-only")] - public bool? DownloadCacheOnly { get; set; } + public virtual bool? DownloadCacheOnly { get; set; } [BooleanCommandSwitch("--not-broken")] - public bool? NotBroken { get; set; } + public virtual bool? NotBroken { get; set; } [BooleanCommandSwitch("--detailed")] - public bool? Detailed { get; set; } + public virtual bool? Detailed { get; set; } [BooleanCommandSwitch("--disable-package-repository-optimizations")] - public bool? DisablePackageRepositoryOptimizations { get; set; } + public virtual bool? DisablePackageRepositoryOptimizations { get; set; } [BooleanCommandSwitch("--show-audit-info")] - public bool? ShowAuditInfo { get; set; } + public virtual bool? ShowAuditInfo { get; set; } [BooleanCommandSwitch("--force-self-service")] - public bool? ForceSelfService { get; set; } + public virtual bool? ForceSelfService { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Chocolatey/Options/InfoOptions.cs b/src/ModularPipelines.Chocolatey/Options/InfoOptions.cs index c894468b68..e45abe63bb 100644 --- a/src/ModularPipelines.Chocolatey/Options/InfoOptions.cs +++ b/src/ModularPipelines.Chocolatey/Options/InfoOptions.cs @@ -8,32 +8,32 @@ namespace ModularPipelines.Chocolatey.Options; public record InfoOptions : ChocoOptions { [CommandSwitch("--source")] - public string? Source { get; set; } + public virtual string? Source { get; set; } [BooleanCommandSwitch("--local-only")] - public bool? LocalOnly { get; set; } + public virtual bool? LocalOnly { get; set; } [CommandSwitch("--version")] - public string? Version { get; set; } + public virtual string? Version { get; set; } [BooleanCommandSwitch("--prerelease")] - public bool? Prerelease { get; set; } + public virtual bool? Prerelease { get; set; } [CommandSwitch("--user")] - public string? User { get; set; } + public virtual string? User { get; set; } [CommandSwitch("--password")] - public string? Password { get; set; } + public virtual string? Password { get; set; } [CommandSwitch("--cert")] - public string? Cert { get; set; } + public virtual string? Cert { get; set; } [CommandSwitch("--certpassword")] - public string? Certpassword { get; set; } + public virtual string? Certpassword { get; set; } [BooleanCommandSwitch("--disable-package-repository-optimizations")] - public bool? DisablePackageRepositoryOptimizations { get; set; } + public virtual bool? DisablePackageRepositoryOptimizations { get; set; } [BooleanCommandSwitch("--force-self-service")] - public bool? ForceSelfService { get; set; } + 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 index 7463a2a5ad..5e4e9cdd3a 100644 --- a/src/ModularPipelines.Chocolatey/Options/InstallOptions.cs +++ b/src/ModularPipelines.Chocolatey/Options/InstallOptions.cs @@ -10,146 +10,146 @@ public record InstallOptions( ) : ChocoOptions { [CommandSwitch("--source")] - public string? Source { get; set; } + public virtual string? Source { get; set; } [CommandSwitch("--version")] - public string? Version { get; set; } + public virtual string? Version { get; set; } [BooleanCommandSwitch("--prerelease")] - public bool? Prerelease { get; set; } + public virtual bool? Prerelease { get; set; } [BooleanCommandSwitch("--forcex86")] - public bool? Forcex86 { get; set; } + public virtual bool? Forcex86 { get; set; } [CommandSwitch("--install-arguments")] - public string? InstallArguments { get; set; } + public virtual string? InstallArguments { get; set; } [BooleanCommandSwitch("--override-arguments")] - public bool? OverrideArguments { get; set; } + public virtual bool? OverrideArguments { get; set; } [BooleanCommandSwitch("--not-silent")] - public bool? NotSilent { get; set; } + public virtual bool? NotSilent { get; set; } [CommandSwitch("--package-parameters")] - public string? PackageParameters { get; set; } + public virtual string? PackageParameters { get; set; } [BooleanCommandSwitch("--apply-install-arguments-to-dependencies")] - public bool? ApplyInstallArgumentsToDependencies { get; set; } + public virtual bool? ApplyInstallArgumentsToDependencies { get; set; } [BooleanCommandSwitch("--apply-package-parameters-to-dependencies")] - public bool? ApplyPackageParametersToDependencies { get; set; } + public virtual bool? ApplyPackageParametersToDependencies { get; set; } [BooleanCommandSwitch("--allow-downgrade")] - public bool? AllowDowngrade { get; set; } + public virtual bool? AllowDowngrade { get; set; } [BooleanCommandSwitch("--ignore-dependencies")] - public bool? IgnoreDependencies { get; set; } + public virtual bool? IgnoreDependencies { get; set; } [BooleanCommandSwitch("--force-dependencies")] - public bool? ForceDependencies { get; set; } + public virtual bool? ForceDependencies { get; set; } [BooleanCommandSwitch("--skip-automation-scripts")] - public bool? SkipAutomationScripts { get; set; } + public virtual bool? SkipAutomationScripts { get; set; } [CommandSwitch("--user")] - public string? User { get; set; } + public virtual string? User { get; set; } [CommandSwitch("--password")] - public string? Password { get; set; } + public virtual string? Password { get; set; } [CommandSwitch("--cert")] - public string? Cert { get; set; } + public virtual string? Cert { get; set; } [CommandSwitch("--certpassword")] - public string? Certpassword { get; set; } + public virtual string? Certpassword { get; set; } [BooleanCommandSwitch("--ignore-checksums")] - public bool? IgnoreChecksums { get; set; } + public virtual bool? IgnoreChecksums { get; set; } [BooleanCommandSwitch("--allow-empty-checksums")] - public bool? AllowEmptyChecksums { get; set; } + public virtual bool? AllowEmptyChecksums { get; set; } [BooleanCommandSwitch("--allow-empty-checksums-secure")] - public bool? AllowEmptyChecksumsSecure { get; set; } + public virtual bool? AllowEmptyChecksumsSecure { get; set; } [BooleanCommandSwitch("--require-checksums")] - public bool? RequireChecksums { get; set; } + public virtual bool? RequireChecksums { get; set; } [CommandSwitch("--download-checksum")] - public string? DownloadChecksum { get; set; } + public virtual string? DownloadChecksum { get; set; } [CommandSwitch("--download-checksum-x64")] - public string? DownloadChecksumX64 { get; set; } + public virtual string? DownloadChecksumX64 { get; set; } [CommandSwitch("--download-checksum-type")] - public string? DownloadChecksumType { get; set; } + public virtual string? DownloadChecksumType { get; set; } [CommandSwitch("--download-checksum-type-x64")] - public string? DownloadChecksumTypeX64 { get; set; } + public virtual string? DownloadChecksumTypeX64 { get; set; } [BooleanCommandSwitch("--ignore-package-exit-codes")] - public bool? IgnorePackageExitCodes { get; set; } + public virtual bool? IgnorePackageExitCodes { get; set; } [BooleanCommandSwitch("--use-package-exit-codes")] - public bool? UsePackageExitCodes { get; set; } + public virtual bool? UsePackageExitCodes { get; set; } [BooleanCommandSwitch("--stop-on-first-package-failure")] - public bool? StopOnFirstPackageFailure { get; set; } + public virtual bool? StopOnFirstPackageFailure { get; set; } [BooleanCommandSwitch("--exit-when-reboot-detected")] - public bool? ExitWhenRebootDetected { get; set; } + public virtual bool? ExitWhenRebootDetected { get; set; } [BooleanCommandSwitch("--ignore-detected-reboot")] - public bool? IgnoreDetectedReboot { get; set; } + public virtual bool? IgnoreDetectedReboot { get; set; } [BooleanCommandSwitch("--disable-package-repository-optimizations")] - public bool? DisablePackageRepositoryOptimizations { get; set; } + public virtual bool? DisablePackageRepositoryOptimizations { get; set; } [BooleanCommandSwitch("--pin-package")] - public bool? PinPackage { get; set; } + public virtual bool? PinPackage { get; set; } [BooleanCommandSwitch("--skip-hooks")] - public bool? SkipHooks { get; set; } + public virtual bool? SkipHooks { get; set; } [BooleanCommandSwitch("--skip-download-cache")] - public bool? SkipDownloadCache { get; set; } + public virtual bool? SkipDownloadCache { get; set; } [BooleanCommandSwitch("--use-download-cache")] - public bool? UseDownloadCache { get; set; } + public virtual bool? UseDownloadCache { get; set; } [BooleanCommandSwitch("--skip-virus-check")] - public bool? SkipVirusCheck { get; set; } + public virtual bool? SkipVirusCheck { get; set; } [BooleanCommandSwitch("--virus-check")] - public bool? VirusCheck { get; set; } + public virtual bool? VirusCheck { get; set; } [CommandSwitch("--virus-positives-minimum")] - public string? VirusPositivesMinimum { get; set; } + public virtual string? VirusPositivesMinimum { get; set; } [CommandSwitch("--install-arguments-sensitive")] - public string? InstallArgumentsSensitive { get; set; } + public virtual string? InstallArgumentsSensitive { get; set; } [CommandSwitch("--package-parameters-sensitive")] - public string? PackageParametersSensitive { get; set; } + public virtual string? PackageParametersSensitive { get; set; } [CommandSwitch("--install-directory")] - public string? InstallDirectory { get; set; } + public virtual string? InstallDirectory { get; set; } [CommandSwitch("--maximum-download-bits-per-second")] - public string? MaximumDownloadBitsPerSecond { get; set; } + public virtual string? MaximumDownloadBitsPerSecond { get; set; } [BooleanCommandSwitch("--deflate-package-size")] - public bool? DeflatePackageSize { get; set; } + public virtual bool? DeflatePackageSize { get; set; } [BooleanCommandSwitch("--no-deflate-package-size")] - public bool? NoDeflatePackageSize { get; set; } + public virtual bool? NoDeflatePackageSize { get; set; } [BooleanCommandSwitch("--deflate-nupkg-only")] - public bool? DeflateNupkgOnly { get; set; } + public virtual bool? DeflateNupkgOnly { get; set; } [CommandSwitch("--note")] - public string? Note { get; set; } + public virtual string? Note { get; set; } [BooleanCommandSwitch("--force-self-service")] - public bool? ForceSelfService { get; set; } + 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 index b406985bde..8a82b58b8c 100644 --- a/src/ModularPipelines.Chocolatey/Options/ListOptions.cs +++ b/src/ModularPipelines.Chocolatey/Options/ListOptions.cs @@ -10,47 +10,47 @@ public record ListOptions( ) : ChocoOptions { [CommandSwitch("--source")] - public string? Source { get; set; } + public virtual string? Source { get; set; } [BooleanCommandSwitch("--id-only")] - public bool? IdOnly { get; set; } + public virtual bool? IdOnly { get; set; } [BooleanCommandSwitch("--prerelease")] - public bool? Prerelease { get; set; } + public virtual bool? Prerelease { get; set; } [BooleanCommandSwitch("--include-programs")] - public bool? IncludePrograms { get; set; } + public virtual bool? IncludePrograms { get; set; } [CommandSwitch("--version")] - public string? Version { get; set; } + public virtual string? Version { get; set; } [CommandSwitch("--page")] - public string? Page { get; set; } + public virtual string? Page { get; set; } [CommandSwitch("--page-size")] - public string? PageSize { get; set; } + public virtual string? PageSize { get; set; } [BooleanCommandSwitch("--exact")] - public bool? Exact { get; set; } + public virtual bool? Exact { get; set; } [BooleanCommandSwitch("--by-id-only")] - public bool? ByIdOnly { get; set; } + public virtual bool? ByIdOnly { get; set; } [BooleanCommandSwitch("--by-tags-only")] - public bool? ByTagsOnly { get; set; } + public virtual bool? ByTagsOnly { get; set; } [BooleanCommandSwitch("--id-starts-with")] - public bool? IdStartsWith { get; set; } + public virtual bool? IdStartsWith { get; set; } [BooleanCommandSwitch("--detailed")] - public bool? Detailed { get; set; } + public virtual bool? Detailed { get; set; } [BooleanCommandSwitch("--disable-package-repository-optimizations")] - public bool? DisablePackageRepositoryOptimizations { get; set; } + public virtual bool? DisablePackageRepositoryOptimizations { get; set; } [BooleanCommandSwitch("--show-audit-info")] - public bool? ShowAuditInfo { get; set; } + public virtual bool? ShowAuditInfo { get; set; } [BooleanCommandSwitch("--force-self-service")] - public bool? ForceSelfService { get; set; } + 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 index 75f83907cd..2fdeb50a90 100644 --- a/src/ModularPipelines.Chocolatey/Options/NewOptions.cs +++ b/src/ModularPipelines.Chocolatey/Options/NewOptions.cs @@ -10,53 +10,53 @@ public record NewOptions( ) : ChocoOptions { [BooleanCommandSwitch("--automaticpackage")] - public bool? Automaticpackage { get; set; } + public virtual bool? Automaticpackage { get; set; } [CommandSwitch("--template-name")] - public string? TemplateName { get; set; } + public virtual string? TemplateName { get; set; } [CommandSwitch("--version")] - public string? Version { get; set; } + public virtual string? Version { get; set; } [CommandSwitch("--maintainer")] - public string? Maintainer { get; set; } + public virtual string? Maintainer { get; set; } [CommandSwitch("--output-directory")] - public string? OutputDirectory { get; set; } + public virtual string? OutputDirectory { get; set; } [BooleanCommandSwitch("--use-built-in-template")] - public bool? UseBuiltInTemplate { get; set; } + public virtual bool? UseBuiltInTemplate { get; set; } [CommandSwitch("--url")] - public string? Url { get; set; } + public virtual string? Url { get; set; } [CommandSwitch("--url64")] - public string? Url64 { get; set; } + public virtual string? Url64 { get; set; } [BooleanCommandSwitch("--use-original-files-location")] - public bool? UseOriginalFilesLocation { get; set; } + public virtual bool? UseOriginalFilesLocation { get; set; } [CommandSwitch("--download-checksum")] - public string? DownloadChecksum { get; set; } + public virtual string? DownloadChecksum { get; set; } [CommandSwitch("--download-checksum-x64")] - public string? DownloadChecksumX64 { get; set; } + public virtual string? DownloadChecksumX64 { get; set; } [CommandSwitch("--download-checksum-type")] - public string? DownloadChecksumType { get; set; } + public virtual string? DownloadChecksumType { get; set; } [BooleanCommandSwitch("--pause-on-error")] - public bool? PauseOnError { get; set; } + public virtual bool? PauseOnError { get; set; } [BooleanCommandSwitch("--build-packages")] - public bool? BuildPackages { get; set; } + public virtual bool? BuildPackages { get; set; } [BooleanCommandSwitch("--from-programs-and-features")] - public bool? FromProgramsAndFeatures { get; set; } + public virtual bool? FromProgramsAndFeatures { get; set; } [BooleanCommandSwitch("--remove-architecture-from-name")] - public bool? RemoveArchitectureFromName { get; set; } + public virtual bool? RemoveArchitectureFromName { get; set; } [BooleanCommandSwitch("--include-architecture-in-name")] - public bool? IncludeArchitectureInName { get; set; } + 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 index a0e47da930..0a02c3b1bc 100644 --- a/src/ModularPipelines.Chocolatey/Options/OptimizeOptions.cs +++ b/src/ModularPipelines.Chocolatey/Options/OptimizeOptions.cs @@ -8,11 +8,11 @@ namespace ModularPipelines.Chocolatey.Options; public record OptimizeOptions : ChocoOptions { [BooleanCommandSwitch("--deflate-nupkg-only")] - public bool? DeflateNupkgOnly { get; set; } + public virtual bool? DeflateNupkgOnly { get; set; } [CommandSwitch("--id")] - public string? Id { get; set; } + public virtual string? Id { get; set; } [BooleanCommandSwitch("--force-self-service")] - public bool? ForceSelfService { get; set; } + 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 index 2dbdafdc16..bc0f50aed1 100644 --- a/src/ModularPipelines.Chocolatey/Options/OutdatedOptions.cs +++ b/src/ModularPipelines.Chocolatey/Options/OutdatedOptions.cs @@ -8,32 +8,32 @@ namespace ModularPipelines.Chocolatey.Options; public record OutdatedOptions : ChocoOptions { [CommandSwitch("--source")] - public string? Source { get; set; } + public virtual string? Source { get; set; } [CommandSwitch("--user")] - public string? User { get; set; } + public virtual string? User { get; set; } [CommandSwitch("--password")] - public string? Password { get; set; } + public virtual string? Password { get; set; } [CommandSwitch("--cert")] - public string? Cert { get; set; } + public virtual string? Cert { get; set; } [CommandSwitch("--certpassword")] - public string? Certpassword { get; set; } + public virtual string? Certpassword { get; set; } [BooleanCommandSwitch("--prerelease")] - public bool? Prerelease { get; set; } + public virtual bool? Prerelease { get; set; } [BooleanCommandSwitch("--ignore-pinned")] - public bool? IgnorePinned { get; set; } + public virtual bool? IgnorePinned { get; set; } [BooleanCommandSwitch("--ignore-unfound")] - public bool? IgnoreUnfound { get; set; } + public virtual bool? IgnoreUnfound { get; set; } [BooleanCommandSwitch("--disable-package-repository-optimizations")] - public bool? DisablePackageRepositoryOptimizations { get; set; } + public virtual bool? DisablePackageRepositoryOptimizations { get; set; } [BooleanCommandSwitch("--force-self-service")] - public bool? ForceSelfService { get; set; } + public virtual bool? ForceSelfService { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Chocolatey/Options/PinAddOptions.cs b/src/ModularPipelines.Chocolatey/Options/PinAddOptions.cs index f48dbebd00..f2791034cb 100644 --- a/src/ModularPipelines.Chocolatey/Options/PinAddOptions.cs +++ b/src/ModularPipelines.Chocolatey/Options/PinAddOptions.cs @@ -8,14 +8,14 @@ namespace ModularPipelines.Chocolatey.Options; public record PinAddOptions : ChocoOptions { [CommandSwitch("--name")] - public string? Name { get; set; } + public virtual string? Name { get; set; } [CommandSwitch("--version")] - public string? Version { get; set; } + public virtual string? Version { get; set; } [CommandSwitch("--note")] - public string? Note { get; set; } + public virtual string? Note { get; set; } [BooleanCommandSwitch("--force-self-service")] - public bool? ForceSelfService { get; set; } + 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 index d26a931594..866bff677b 100644 --- a/src/ModularPipelines.Chocolatey/Options/PinOptions.cs +++ b/src/ModularPipelines.Chocolatey/Options/PinOptions.cs @@ -8,14 +8,14 @@ namespace ModularPipelines.Chocolatey.Options; public record PinOptions : ChocoOptions { [CommandSwitch("--name")] - public string? Name { get; set; } + public virtual string? Name { get; set; } [CommandSwitch("--version")] - public string? Version { get; set; } + public virtual string? Version { get; set; } [CommandSwitch("--note")] - public string? Note { get; set; } + public virtual string? Note { get; set; } [BooleanCommandSwitch("--force-self-service")] - public bool? ForceSelfService { get; set; } + 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 index b5ee0b2ef6..231335d3f6 100644 --- a/src/ModularPipelines.Chocolatey/Options/PinRemoveOptions.cs +++ b/src/ModularPipelines.Chocolatey/Options/PinRemoveOptions.cs @@ -8,14 +8,14 @@ namespace ModularPipelines.Chocolatey.Options; public record PinRemoveOptions : ChocoOptions { [CommandSwitch("--name")] - public string? Name { get; set; } + public virtual string? Name { get; set; } [CommandSwitch("--version")] - public string? Version { get; set; } + public virtual string? Version { get; set; } [CommandSwitch("--note")] - public string? Note { get; set; } + public virtual string? Note { get; set; } [BooleanCommandSwitch("--force-self-service")] - public bool? ForceSelfService { get; set; } + 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 index da26a9d0e2..4e0bd05dfa 100644 --- a/src/ModularPipelines.Chocolatey/Options/PushOptions.cs +++ b/src/ModularPipelines.Chocolatey/Options/PushOptions.cs @@ -10,23 +10,23 @@ public record PushOptions( ) : ChocoOptions { [CommandSwitch("--source")] - public string? Source { get; set; } + public virtual string? Source { get; set; } [CommandSwitch("--api-key")] - public string? ApiKey { get; set; } + public virtual string? ApiKey { get; set; } [CommandSwitch("--code")] - public string? Code { get; set; } + public virtual string? Code { get; set; } [CommandSwitch("--redirecturl")] - public string? Redirecturl { get; set; } + public virtual string? Redirecturl { get; set; } [CommandSwitch("--endpoint")] - public string? Endpoint { get; set; } + public virtual string? Endpoint { get; set; } [BooleanCommandSwitch("--skip-cleanup")] - public bool? SkipCleanup { get; set; } + public virtual bool? SkipCleanup { get; set; } [BooleanCommandSwitch("--force-self-service")] - public bool? ForceSelfService { get; set; } + 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 index a5db9a7e7f..c5a1c7ceed 100644 --- a/src/ModularPipelines.Chocolatey/Options/SearchOptions.cs +++ b/src/ModularPipelines.Chocolatey/Options/SearchOptions.cs @@ -10,74 +10,74 @@ public record SearchOptions( ) : ChocoOptions { [CommandSwitch("--source")] - public string? Source { get; set; } + public virtual string? Source { get; set; } [BooleanCommandSwitch("--id-only")] - public bool? IdOnly { get; set; } + public virtual bool? IdOnly { get; set; } [BooleanCommandSwitch("--prerelease")] - public bool? Prerelease { get; set; } + public virtual bool? Prerelease { get; set; } [BooleanCommandSwitch("--include-programs")] - public bool? IncludePrograms { get; set; } + public virtual bool? IncludePrograms { get; set; } [BooleanCommandSwitch("--all-versions")] - public bool? AllVersions { get; set; } + public virtual bool? AllVersions { get; set; } [CommandSwitch("--version")] - public string? Version { get; set; } + public virtual string? Version { get; set; } [CommandSwitch("--user")] - public string? User { get; set; } + public virtual string? User { get; set; } [CommandSwitch("--password")] - public string? Password { get; set; } + public virtual string? Password { get; set; } [CommandSwitch("--cert")] - public string? Cert { get; set; } + public virtual string? Cert { get; set; } [CommandSwitch("--certpassword")] - public string? Certpassword { get; set; } + public virtual string? Certpassword { get; set; } [CommandSwitch("--page")] - public string? Page { get; set; } + public virtual string? Page { get; set; } [CommandSwitch("--page-size")] - public string? PageSize { get; set; } + public virtual string? PageSize { get; set; } [BooleanCommandSwitch("--exact")] - public bool? Exact { get; set; } + public virtual bool? Exact { get; set; } [BooleanCommandSwitch("--by-id-only")] - public bool? ByIdOnly { get; set; } + public virtual bool? ByIdOnly { get; set; } [BooleanCommandSwitch("--by-tags-only")] - public bool? ByTagsOnly { get; set; } + public virtual bool? ByTagsOnly { get; set; } [BooleanCommandSwitch("--id-starts-with")] - public bool? IdStartsWith { get; set; } + public virtual bool? IdStartsWith { get; set; } [BooleanCommandSwitch("--order-by-popularity")] - public bool? OrderByPopularity { get; set; } + public virtual bool? OrderByPopularity { get; set; } [BooleanCommandSwitch("--approved-only")] - public bool? ApprovedOnly { get; set; } + public virtual bool? ApprovedOnly { get; set; } [BooleanCommandSwitch("--download-cache-only")] - public bool? DownloadCacheOnly { get; set; } + public virtual bool? DownloadCacheOnly { get; set; } [BooleanCommandSwitch("--not-broken")] - public bool? NotBroken { get; set; } + public virtual bool? NotBroken { get; set; } [BooleanCommandSwitch("--detailed")] - public bool? Detailed { get; set; } + public virtual bool? Detailed { get; set; } [BooleanCommandSwitch("--disable-package-repository-optimizations")] - public bool? DisablePackageRepositoryOptimizations { get; set; } + public virtual bool? DisablePackageRepositoryOptimizations { get; set; } [BooleanCommandSwitch("--show-audit-info")] - public bool? ShowAuditInfo { get; set; } + public virtual bool? ShowAuditInfo { get; set; } [BooleanCommandSwitch("--force-self-service")] - public bool? ForceSelfService { get; set; } + 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 index 0cbde3f8b1..6f1beeb334 100644 --- a/src/ModularPipelines.Chocolatey/Options/SetapikeyOptions.cs +++ b/src/ModularPipelines.Chocolatey/Options/SetapikeyOptions.cs @@ -8,8 +8,8 @@ namespace ModularPipelines.Chocolatey.Options; public record SetApiKeyOptions : ChocoOptions { [CommandSwitch("--source")] - public string? Source { get; set; } + public virtual string? Source { get; set; } [CommandSwitch("--api-key")] - public string? ApiKey { get; set; } + 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 index f02827bca3..790cf71d91 100644 --- a/src/ModularPipelines.Chocolatey/Options/SourceAddOptions.cs +++ b/src/ModularPipelines.Chocolatey/Options/SourceAddOptions.cs @@ -8,32 +8,32 @@ namespace ModularPipelines.Chocolatey.Options; public record SourceAddOptions : ChocoOptions { [CommandSwitch("--name")] - public string? Name { get; set; } + public virtual string? Name { get; set; } [CommandSwitch("--source")] - public string? Source { get; set; } + public virtual string? Source { get; set; } [CommandSwitch("--user")] - public string? User { get; set; } + public virtual string? User { get; set; } [CommandSwitch("--password")] - public string? Password { get; set; } + public virtual string? Password { get; set; } [CommandSwitch("--cert")] - public string? Cert { get; set; } + public virtual string? Cert { get; set; } [CommandSwitch("--certpassword")] - public string? Certpassword { get; set; } + public virtual string? Certpassword { get; set; } [CommandSwitch("--priority")] - public string? Priority { get; set; } + public virtual string? Priority { get; set; } [BooleanCommandSwitch("--bypass-proxy")] - public bool? BypassProxy { get; set; } + public virtual bool? BypassProxy { get; set; } [BooleanCommandSwitch("--allow-self-service")] - public bool? AllowSelfService { get; set; } + public virtual bool? AllowSelfService { get; set; } [BooleanCommandSwitch("--admin-only")] - public bool? AdminOnly { get; set; } + 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 index 7cd9f01e62..3fdbcc8010 100644 --- a/src/ModularPipelines.Chocolatey/Options/SourceDisableOptions.cs +++ b/src/ModularPipelines.Chocolatey/Options/SourceDisableOptions.cs @@ -8,32 +8,32 @@ namespace ModularPipelines.Chocolatey.Options; public record SourceDisableOptions : ChocoOptions { [CommandSwitch("--name")] - public string? Name { get; set; } + public virtual string? Name { get; set; } [CommandSwitch("--source")] - public string? Source { get; set; } + public virtual string? Source { get; set; } [CommandSwitch("--user")] - public string? User { get; set; } + public virtual string? User { get; set; } [CommandSwitch("--password")] - public string? Password { get; set; } + public virtual string? Password { get; set; } [CommandSwitch("--cert")] - public string? Cert { get; set; } + public virtual string? Cert { get; set; } [CommandSwitch("--certpassword")] - public string? Certpassword { get; set; } + public virtual string? Certpassword { get; set; } [CommandSwitch("--priority")] - public string? Priority { get; set; } + public virtual string? Priority { get; set; } [BooleanCommandSwitch("--bypass-proxy")] - public bool? BypassProxy { get; set; } + public virtual bool? BypassProxy { get; set; } [BooleanCommandSwitch("--allow-self-service")] - public bool? AllowSelfService { get; set; } + public virtual bool? AllowSelfService { get; set; } [BooleanCommandSwitch("--admin-only")] - public bool? AdminOnly { get; set; } + 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 index ccea42859d..6ebb75d993 100644 --- a/src/ModularPipelines.Chocolatey/Options/SourceEnableOptions.cs +++ b/src/ModularPipelines.Chocolatey/Options/SourceEnableOptions.cs @@ -8,32 +8,32 @@ namespace ModularPipelines.Chocolatey.Options; public record SourceEnableOptions : ChocoOptions { [CommandSwitch("--name")] - public string? Name { get; set; } + public virtual string? Name { get; set; } [CommandSwitch("--source")] - public string? Source { get; set; } + public virtual string? Source { get; set; } [CommandSwitch("--user")] - public string? User { get; set; } + public virtual string? User { get; set; } [CommandSwitch("--password")] - public string? Password { get; set; } + public virtual string? Password { get; set; } [CommandSwitch("--cert")] - public string? Cert { get; set; } + public virtual string? Cert { get; set; } [CommandSwitch("--certpassword")] - public string? Certpassword { get; set; } + public virtual string? Certpassword { get; set; } [CommandSwitch("--priority")] - public string? Priority { get; set; } + public virtual string? Priority { get; set; } [BooleanCommandSwitch("--bypass-proxy")] - public bool? BypassProxy { get; set; } + public virtual bool? BypassProxy { get; set; } [BooleanCommandSwitch("--allow-self-service")] - public bool? AllowSelfService { get; set; } + public virtual bool? AllowSelfService { get; set; } [BooleanCommandSwitch("--admin-only")] - public bool? AdminOnly { get; set; } + 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 index be0de1d8ef..8fa51f1706 100644 --- a/src/ModularPipelines.Chocolatey/Options/SourceOptions.cs +++ b/src/ModularPipelines.Chocolatey/Options/SourceOptions.cs @@ -8,32 +8,32 @@ namespace ModularPipelines.Chocolatey.Options; public record SourceOptions : ChocoOptions { [CommandSwitch("--name")] - public string? Name { get; set; } + public virtual string? Name { get; set; } [CommandSwitch("--source")] - public string? Source { get; set; } + public virtual string? Source { get; set; } [CommandSwitch("--user")] - public string? User { get; set; } + public virtual string? User { get; set; } [CommandSwitch("--password")] - public string? Password { get; set; } + public virtual string? Password { get; set; } [CommandSwitch("--cert")] - public string? Cert { get; set; } + public virtual string? Cert { get; set; } [CommandSwitch("--certpassword")] - public string? Certpassword { get; set; } + public virtual string? Certpassword { get; set; } [CommandSwitch("--priority")] - public string? Priority { get; set; } + public virtual string? Priority { get; set; } [BooleanCommandSwitch("--bypass-proxy")] - public bool? BypassProxy { get; set; } + public virtual bool? BypassProxy { get; set; } [BooleanCommandSwitch("--allow-self-service")] - public bool? AllowSelfService { get; set; } + public virtual bool? AllowSelfService { get; set; } [BooleanCommandSwitch("--admin-only")] - public bool? AdminOnly { get; set; } + 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 index af008e39f0..bd2284e707 100644 --- a/src/ModularPipelines.Chocolatey/Options/SourceRemoveOptions.cs +++ b/src/ModularPipelines.Chocolatey/Options/SourceRemoveOptions.cs @@ -8,32 +8,32 @@ namespace ModularPipelines.Chocolatey.Options; public record SourceRemoveOptions : ChocoOptions { [CommandSwitch("--name")] - public string? Name { get; set; } + public virtual string? Name { get; set; } [CommandSwitch("--source")] - public string? Source { get; set; } + public virtual string? Source { get; set; } [CommandSwitch("--user")] - public string? User { get; set; } + public virtual string? User { get; set; } [CommandSwitch("--password")] - public string? Password { get; set; } + public virtual string? Password { get; set; } [CommandSwitch("--cert")] - public string? Cert { get; set; } + public virtual string? Cert { get; set; } [CommandSwitch("--certpassword")] - public string? Certpassword { get; set; } + public virtual string? Certpassword { get; set; } [CommandSwitch("--priority")] - public string? Priority { get; set; } + public virtual string? Priority { get; set; } [BooleanCommandSwitch("--bypass-proxy")] - public bool? BypassProxy { get; set; } + public virtual bool? BypassProxy { get; set; } [BooleanCommandSwitch("--allow-self-service")] - public bool? AllowSelfService { get; set; } + public virtual bool? AllowSelfService { get; set; } [BooleanCommandSwitch("--admin-only")] - public bool? AdminOnly { get; set; } + 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 index d3c7d4bbe0..890b2c6f45 100644 --- a/src/ModularPipelines.Chocolatey/Options/SourcesAddOptions.cs +++ b/src/ModularPipelines.Chocolatey/Options/SourcesAddOptions.cs @@ -8,32 +8,32 @@ namespace ModularPipelines.Chocolatey.Options; public record SourcesAddOptions : ChocoOptions { [CommandSwitch("--name")] - public string? Name { get; set; } + public virtual string? Name { get; set; } [CommandSwitch("--source")] - public string? Source { get; set; } + public virtual string? Source { get; set; } [CommandSwitch("--user")] - public string? User { get; set; } + public virtual string? User { get; set; } [CommandSwitch("--password")] - public string? Password { get; set; } + public virtual string? Password { get; set; } [CommandSwitch("--cert")] - public string? Cert { get; set; } + public virtual string? Cert { get; set; } [CommandSwitch("--certpassword")] - public string? Certpassword { get; set; } + public virtual string? Certpassword { get; set; } [CommandSwitch("--priority")] - public string? Priority { get; set; } + public virtual string? Priority { get; set; } [BooleanCommandSwitch("--bypass-proxy")] - public bool? BypassProxy { get; set; } + public virtual bool? BypassProxy { get; set; } [BooleanCommandSwitch("--allow-self-service")] - public bool? AllowSelfService { get; set; } + public virtual bool? AllowSelfService { get; set; } [BooleanCommandSwitch("--admin-only")] - public bool? AdminOnly { get; set; } + 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 index 825244ed7d..95cc48cd37 100644 --- a/src/ModularPipelines.Chocolatey/Options/SourcesDisableOptions.cs +++ b/src/ModularPipelines.Chocolatey/Options/SourcesDisableOptions.cs @@ -8,32 +8,32 @@ namespace ModularPipelines.Chocolatey.Options; public record SourcesDisableOptions : ChocoOptions { [CommandSwitch("--name")] - public string? Name { get; set; } + public virtual string? Name { get; set; } [CommandSwitch("--source")] - public string? Source { get; set; } + public virtual string? Source { get; set; } [CommandSwitch("--user")] - public string? User { get; set; } + public virtual string? User { get; set; } [CommandSwitch("--password")] - public string? Password { get; set; } + public virtual string? Password { get; set; } [CommandSwitch("--cert")] - public string? Cert { get; set; } + public virtual string? Cert { get; set; } [CommandSwitch("--certpassword")] - public string? Certpassword { get; set; } + public virtual string? Certpassword { get; set; } [CommandSwitch("--priority")] - public string? Priority { get; set; } + public virtual string? Priority { get; set; } [BooleanCommandSwitch("--bypass-proxy")] - public bool? BypassProxy { get; set; } + public virtual bool? BypassProxy { get; set; } [BooleanCommandSwitch("--allow-self-service")] - public bool? AllowSelfService { get; set; } + public virtual bool? AllowSelfService { get; set; } [BooleanCommandSwitch("--admin-only")] - public bool? AdminOnly { get; set; } + 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 index 32fb977d92..e0ad594779 100644 --- a/src/ModularPipelines.Chocolatey/Options/SourcesEnableOptions.cs +++ b/src/ModularPipelines.Chocolatey/Options/SourcesEnableOptions.cs @@ -8,32 +8,32 @@ namespace ModularPipelines.Chocolatey.Options; public record SourcesEnableOptions : ChocoOptions { [CommandSwitch("--name")] - public string? Name { get; set; } + public virtual string? Name { get; set; } [CommandSwitch("--source")] - public string? Source { get; set; } + public virtual string? Source { get; set; } [CommandSwitch("--user")] - public string? User { get; set; } + public virtual string? User { get; set; } [CommandSwitch("--password")] - public string? Password { get; set; } + public virtual string? Password { get; set; } [CommandSwitch("--cert")] - public string? Cert { get; set; } + public virtual string? Cert { get; set; } [CommandSwitch("--certpassword")] - public string? Certpassword { get; set; } + public virtual string? Certpassword { get; set; } [CommandSwitch("--priority")] - public string? Priority { get; set; } + public virtual string? Priority { get; set; } [BooleanCommandSwitch("--bypass-proxy")] - public bool? BypassProxy { get; set; } + public virtual bool? BypassProxy { get; set; } [BooleanCommandSwitch("--allow-self-service")] - public bool? AllowSelfService { get; set; } + public virtual bool? AllowSelfService { get; set; } [BooleanCommandSwitch("--admin-only")] - public bool? AdminOnly { get; set; } + 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 index 53d92f2f0c..afb31f5305 100644 --- a/src/ModularPipelines.Chocolatey/Options/SourcesOptions.cs +++ b/src/ModularPipelines.Chocolatey/Options/SourcesOptions.cs @@ -8,32 +8,32 @@ namespace ModularPipelines.Chocolatey.Options; public record SourcesOptions : ChocoOptions { [CommandSwitch("--name")] - public string? Name { get; set; } + public virtual string? Name { get; set; } [CommandSwitch("--source")] - public string? Source { get; set; } + public virtual string? Source { get; set; } [CommandSwitch("--user")] - public string? User { get; set; } + public virtual string? User { get; set; } [CommandSwitch("--password")] - public string? Password { get; set; } + public virtual string? Password { get; set; } [CommandSwitch("--cert")] - public string? Cert { get; set; } + public virtual string? Cert { get; set; } [CommandSwitch("--certpassword")] - public string? Certpassword { get; set; } + public virtual string? Certpassword { get; set; } [CommandSwitch("--priority")] - public string? Priority { get; set; } + public virtual string? Priority { get; set; } [BooleanCommandSwitch("--bypass-proxy")] - public bool? BypassProxy { get; set; } + public virtual bool? BypassProxy { get; set; } [BooleanCommandSwitch("--allow-self-service")] - public bool? AllowSelfService { get; set; } + public virtual bool? AllowSelfService { get; set; } [BooleanCommandSwitch("--admin-only")] - public bool? AdminOnly { get; set; } + 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 index f6b9257328..3803d245c4 100644 --- a/src/ModularPipelines.Chocolatey/Options/SourcesRemoveOptions.cs +++ b/src/ModularPipelines.Chocolatey/Options/SourcesRemoveOptions.cs @@ -8,32 +8,32 @@ namespace ModularPipelines.Chocolatey.Options; public record SourcesRemoveOptions : ChocoOptions { [CommandSwitch("--name")] - public string? Name { get; set; } + public virtual string? Name { get; set; } [CommandSwitch("--source")] - public string? Source { get; set; } + public virtual string? Source { get; set; } [CommandSwitch("--user")] - public string? User { get; set; } + public virtual string? User { get; set; } [CommandSwitch("--password")] - public string? Password { get; set; } + public virtual string? Password { get; set; } [CommandSwitch("--cert")] - public string? Cert { get; set; } + public virtual string? Cert { get; set; } [CommandSwitch("--certpassword")] - public string? Certpassword { get; set; } + public virtual string? Certpassword { get; set; } [CommandSwitch("--priority")] - public string? Priority { get; set; } + public virtual string? Priority { get; set; } [BooleanCommandSwitch("--bypass-proxy")] - public bool? BypassProxy { get; set; } + public virtual bool? BypassProxy { get; set; } [BooleanCommandSwitch("--allow-self-service")] - public bool? AllowSelfService { get; set; } + public virtual bool? AllowSelfService { get; set; } [BooleanCommandSwitch("--admin-only")] - public bool? AdminOnly { get; set; } + public virtual bool? AdminOnly { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Chocolatey/Options/SyncOptions.cs b/src/ModularPipelines.Chocolatey/Options/SyncOptions.cs index 500167845b..a0831d6351 100644 --- a/src/ModularPipelines.Chocolatey/Options/SyncOptions.cs +++ b/src/ModularPipelines.Chocolatey/Options/SyncOptions.cs @@ -8,14 +8,14 @@ namespace ModularPipelines.Chocolatey.Options; public record SyncOptions : ChocoOptions { [CommandSwitch("--id")] - public string? Id { get; set; } + public virtual string? Id { get; set; } [CommandSwitch("--package-id")] - public string? PackageId { get; set; } + public virtual string? PackageId { get; set; } [CommandSwitch("--output-directory")] - public string? OutputDirectory { get; set; } + public virtual string? OutputDirectory { get; set; } [BooleanCommandSwitch("--force-self-service")] - public bool? ForceSelfService { get; set; } + 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 index 3c62e6a8d0..73e054bb1b 100644 --- a/src/ModularPipelines.Chocolatey/Options/TemplateInfoOptions.cs +++ b/src/ModularPipelines.Chocolatey/Options/TemplateInfoOptions.cs @@ -8,5 +8,5 @@ namespace ModularPipelines.Chocolatey.Options; public record TemplateInfoOptions : ChocoOptions { [CommandSwitch("--name")] - public string? Name { get; set; } + 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 index addc3fcd54..461787f035 100644 --- a/src/ModularPipelines.Chocolatey/Options/TemplateOptions.cs +++ b/src/ModularPipelines.Chocolatey/Options/TemplateOptions.cs @@ -8,5 +8,5 @@ namespace ModularPipelines.Chocolatey.Options; public record TemplateOptions : ChocoOptions { [CommandSwitch("--name")] - public string? Name { get; set; } + public virtual string? Name { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Chocolatey/Options/UpgradeOptions.cs b/src/ModularPipelines.Chocolatey/Options/UpgradeOptions.cs index 7ee468f210..a40234a1b4 100644 --- a/src/ModularPipelines.Chocolatey/Options/UpgradeOptions.cs +++ b/src/ModularPipelines.Chocolatey/Options/UpgradeOptions.cs @@ -10,176 +10,176 @@ public record UpgradeOptions( ) : ChocoOptions { [CommandSwitch("--source")] - public string? Source { get; set; } + public virtual string? Source { get; set; } [CommandSwitch("--version")] - public string? Version { get; set; } + public virtual string? Version { get; set; } [BooleanCommandSwitch("--prerelease")] - public bool? Prerelease { get; set; } + public virtual bool? Prerelease { get; set; } [BooleanCommandSwitch("--forcex86")] - public bool? Forcex86 { get; set; } + public virtual bool? Forcex86 { get; set; } [CommandSwitch("--install-arguments")] - public string? InstallArguments { get; set; } + public virtual string? InstallArguments { get; set; } [BooleanCommandSwitch("--override-arguments")] - public bool? OverrideArguments { get; set; } + public virtual bool? OverrideArguments { get; set; } [BooleanCommandSwitch("--not-silent")] - public bool? NotSilent { get; set; } + public virtual bool? NotSilent { get; set; } [CommandSwitch("--package-parameters")] - public string? PackageParameters { get; set; } + public virtual string? PackageParameters { get; set; } [BooleanCommandSwitch("--apply-install-arguments-to-dependencies")] - public bool? ApplyInstallArgumentsToDependencies { get; set; } + public virtual bool? ApplyInstallArgumentsToDependencies { get; set; } [BooleanCommandSwitch("--apply-package-parameters-to-dependencies")] - public bool? ApplyPackageParametersToDependencies { get; set; } + public virtual bool? ApplyPackageParametersToDependencies { get; set; } [BooleanCommandSwitch("--allow-downgrade")] - public bool? AllowDowngrade { get; set; } + public virtual bool? AllowDowngrade { get; set; } [BooleanCommandSwitch("--ignore-dependencies")] - public bool? IgnoreDependencies { get; set; } + public virtual bool? IgnoreDependencies { get; set; } [BooleanCommandSwitch("--skip-automation-scripts")] - public bool? SkipAutomationScripts { get; set; } + public virtual bool? SkipAutomationScripts { get; set; } [BooleanCommandSwitch("--fail-on-unfound")] - public bool? FailOnUnfound { get; set; } + public virtual bool? FailOnUnfound { get; set; } [BooleanCommandSwitch("--ignore-unfound")] - public bool? IgnoreUnfound { get; set; } + public virtual bool? IgnoreUnfound { get; set; } [BooleanCommandSwitch("--fail-on-not-installed")] - public bool? FailOnNotInstalled { get; set; } + public virtual bool? FailOnNotInstalled { get; set; } [CommandSwitch("--user")] - public string? User { get; set; } + public virtual string? User { get; set; } [CommandSwitch("--password")] - public string? Password { get; set; } + public virtual string? Password { get; set; } [CommandSwitch("--cert")] - public string? Cert { get; set; } + public virtual string? Cert { get; set; } [CommandSwitch("--certpassword")] - public string? Certpassword { get; set; } + public virtual string? Certpassword { get; set; } [BooleanCommandSwitch("--ignore-checksums")] - public bool? IgnoreChecksums { get; set; } + public virtual bool? IgnoreChecksums { get; set; } [BooleanCommandSwitch("--allow-empty-checksums")] - public bool? AllowEmptyChecksums { get; set; } + public virtual bool? AllowEmptyChecksums { get; set; } [BooleanCommandSwitch("--allow-empty-checksums-secure")] - public bool? AllowEmptyChecksumsSecure { get; set; } + public virtual bool? AllowEmptyChecksumsSecure { get; set; } [BooleanCommandSwitch("--require-checksums")] - public bool? RequireChecksums { get; set; } + public virtual bool? RequireChecksums { get; set; } [CommandSwitch("--download-checksum")] - public string? DownloadChecksum { get; set; } + public virtual string? DownloadChecksum { get; set; } [CommandSwitch("--download-checksum-x64")] - public string? DownloadChecksumX64 { get; set; } + public virtual string? DownloadChecksumX64 { get; set; } [CommandSwitch("--download-checksum-type")] - public string? DownloadChecksumType { get; set; } + public virtual string? DownloadChecksumType { get; set; } [CommandSwitch("--download-checksum-type-x64")] - public string? DownloadChecksumTypeX64 { get; set; } + public virtual string? DownloadChecksumTypeX64 { get; set; } [BooleanCommandSwitch("--ignore-package-exit-codes")] - public bool? IgnorePackageExitCodes { get; set; } + public virtual bool? IgnorePackageExitCodes { get; set; } [BooleanCommandSwitch("--use-package-exit-codes")] - public bool? UsePackageExitCodes { get; set; } + public virtual bool? UsePackageExitCodes { get; set; } [CommandSwitch("--except")] - public string? Except { get; set; } + public virtual string? Except { get; set; } [BooleanCommandSwitch("--stop-on-first-package-failure")] - public bool? StopOnFirstPackageFailure { get; set; } + public virtual bool? StopOnFirstPackageFailure { get; set; } [BooleanCommandSwitch("--skip-when-not-installed")] - public bool? SkipWhenNotInstalled { get; set; } + public virtual bool? SkipWhenNotInstalled { get; set; } [BooleanCommandSwitch("--install-if-not-installed")] - public bool? InstallIfNotInstalled { get; set; } + public virtual bool? InstallIfNotInstalled { get; set; } [BooleanCommandSwitch("--exclude-prereleases")] - public bool? ExcludePrereleases { get; set; } + public virtual bool? ExcludePrereleases { get; set; } [BooleanCommandSwitch("--use-remembered-options")] - public bool? UseRememberedOptions { get; set; } + public virtual bool? UseRememberedOptions { get; set; } [BooleanCommandSwitch("--ignore-remembered-options")] - public bool? IgnoreRememberedOptions { get; set; } + public virtual bool? IgnoreRememberedOptions { get; set; } [BooleanCommandSwitch("--exit-when-reboot-detected")] - public bool? ExitWhenRebootDetected { get; set; } + public virtual bool? ExitWhenRebootDetected { get; set; } [BooleanCommandSwitch("--ignore-detected-reboot")] - public bool? IgnoreDetectedReboot { get; set; } + public virtual bool? IgnoreDetectedReboot { get; set; } [BooleanCommandSwitch("--disable-package-repository-optimizations")] - public bool? DisablePackageRepositoryOptimizations { get; set; } + public virtual bool? DisablePackageRepositoryOptimizations { get; set; } [BooleanCommandSwitch("--pin-package")] - public bool? PinPackage { get; set; } + public virtual bool? PinPackage { get; set; } [BooleanCommandSwitch("--skip-hooks")] - public bool? SkipHooks { get; set; } + public virtual bool? SkipHooks { get; set; } [BooleanCommandSwitch("--skip-download-cache")] - public bool? SkipDownloadCache { get; set; } + public virtual bool? SkipDownloadCache { get; set; } [BooleanCommandSwitch("--use-download-cache")] - public bool? UseDownloadCache { get; set; } + public virtual bool? UseDownloadCache { get; set; } [BooleanCommandSwitch("--skip-virus-check")] - public bool? SkipVirusCheck { get; set; } + public virtual bool? SkipVirusCheck { get; set; } [BooleanCommandSwitch("--virus-check")] - public bool? VirusCheck { get; set; } + public virtual bool? VirusCheck { get; set; } [CommandSwitch("--virus-positives-minimum")] - public string? VirusPositivesMinimum { get; set; } + public virtual string? VirusPositivesMinimum { get; set; } [CommandSwitch("--install-arguments-sensitive")] - public string? InstallArgumentsSensitive { get; set; } + public virtual string? InstallArgumentsSensitive { get; set; } [CommandSwitch("--package-parameters-sensitive")] - public string? PackageParametersSensitive { get; set; } + public virtual string? PackageParametersSensitive { get; set; } [CommandSwitch("--install-directory")] - public string? InstallDirectory { get; set; } + public virtual string? InstallDirectory { get; set; } [CommandSwitch("--maximum-download-bits-per-second")] - public string? MaximumDownloadBitsPerSecond { get; set; } + public virtual string? MaximumDownloadBitsPerSecond { get; set; } [BooleanCommandSwitch("--deflate-package-size")] - public bool? DeflatePackageSize { get; set; } + public virtual bool? DeflatePackageSize { get; set; } [BooleanCommandSwitch("--no-deflate-package-size")] - public bool? NoDeflatePackageSize { get; set; } + public virtual bool? NoDeflatePackageSize { get; set; } [BooleanCommandSwitch("--deflate-nupkg-only")] - public bool? DeflateNupkgOnly { get; set; } + public virtual bool? DeflateNupkgOnly { get; set; } [BooleanCommandSwitch("--exclude-chocolatey-packages-during-upgrade-all")] - public bool? ExcludeChocolateyPackagesDuringUpgradeAll { get; set; } + public virtual bool? ExcludeChocolateyPackagesDuringUpgradeAll { get; set; } [BooleanCommandSwitch("--include-chocolatey-packages-during-upgrade-all")] - public bool? IncludeChocolateyPackagesDuringUpgradeAll { get; set; } + public virtual bool? IncludeChocolateyPackagesDuringUpgradeAll { get; set; } [CommandSwitch("--note")] - public string? Note { get; set; } + public virtual string? Note { get; set; } [BooleanCommandSwitch("--force-self-service")] - public bool? ForceSelfService { get; set; } + public virtual bool? ForceSelfService { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Cmd/Cmd.cs b/src/ModularPipelines.Cmd/Cmd.cs index 92f2aed07d..dbf4a1372f 100644 --- a/src/ModularPipelines.Cmd/Cmd.cs +++ b/src/ModularPipelines.Cmd/Cmd.cs @@ -13,7 +13,7 @@ public Cmd(IPipelineContext context) _context = context; } - public Task Script(CmdScriptOptions options, CancellationToken cancellationToken = default) + public virtual Task Script(CmdScriptOptions options, CancellationToken cancellationToken = default) { return _context.Command.ExecuteCommandLineTool(options, cancellationToken); } diff --git a/src/ModularPipelines.Cmd/Models/CmdScriptOptions.cs b/src/ModularPipelines.Cmd/Models/CmdScriptOptions.cs index c902646033..a64a6f5c24 100644 --- a/src/ModularPipelines.Cmd/Models/CmdScriptOptions.cs +++ b/src/ModularPipelines.Cmd/Models/CmdScriptOptions.cs @@ -8,17 +8,17 @@ namespace ModularPipelines.Cmd.Models; public record CmdScriptOptions([property: PositionalArgument(Position = Position.AfterSwitches)] string Script) : CommandLineToolOptions("cmd") { [BooleanCommandSwitch("/q")] - public bool DisableEcho { get; init; } + public virtual bool DisableEcho { get; init; } [BooleanCommandSwitch("/c")] - public bool StopAfter { get; init; } = true; + public virtual bool StopAfter { get; init; } = true; [BooleanCommandSwitch("/u")] - public bool Unicode { get; init; } + public virtual bool Unicode { get; init; } [BooleanCommandSwitch("/a")] - public bool Ansi { get; init; } + public virtual bool Ansi { get; init; } [BooleanCommandSwitch("/d")] - public bool DisableAutoRunCommands { get; init; } + public virtual bool DisableAutoRunCommands { get; init; } } \ No newline at end of file diff --git a/src/ModularPipelines.Development.Analyzers/AnalyzerReleases.Shipped.md b/src/ModularPipelines.Development.Analyzers/AnalyzerReleases.Shipped.md new file mode 100644 index 0000000000..8dd1b9ada6 --- /dev/null +++ b/src/ModularPipelines.Development.Analyzers/AnalyzerReleases.Shipped.md @@ -0,0 +1,8 @@ +## Release 1.0 + +### New Rules + +| Rule ID | Category | Severity | Notes | +|---------|----------|----------|--------------------------------------------------| +| AB0001 | Naming | Warning | Type names should not contain the company name. | +| AB0002 | Usage | Warning | The speed must be lower than the Speed of Light. | \ No newline at end of file diff --git a/src/ModularPipelines.Development.Analyzers/AnalyzerReleases.Unshipped.md b/src/ModularPipelines.Development.Analyzers/AnalyzerReleases.Unshipped.md new file mode 100644 index 0000000000..44f7c8f4ef --- /dev/null +++ b/src/ModularPipelines.Development.Analyzers/AnalyzerReleases.Unshipped.md @@ -0,0 +1,4 @@ +### New Rules + +| Rule ID | Category | Severity | Notes | +|---------|----------|----------|-------| \ No newline at end of file diff --git a/src/ModularPipelines.Development.Analyzers/ModularPipelines.Development.Analyzers.csproj b/src/ModularPipelines.Development.Analyzers/ModularPipelines.Development.Analyzers.csproj new file mode 100644 index 0000000000..57335875e7 --- /dev/null +++ b/src/ModularPipelines.Development.Analyzers/ModularPipelines.Development.Analyzers.csproj @@ -0,0 +1,37 @@ + + + + netstandard2.0 + false + enable + latest + false + true + true + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + + + ResXFileCodeGenerator + Resources.Designer.cs + + + + + + True + True + Resources.resx + + + + diff --git a/src/ModularPipelines.Development.Analyzers/Properties/launchSettings.json b/src/ModularPipelines.Development.Analyzers/Properties/launchSettings.json new file mode 100644 index 0000000000..73ef4d30c0 --- /dev/null +++ b/src/ModularPipelines.Development.Analyzers/Properties/launchSettings.json @@ -0,0 +1,9 @@ +{ + "$schema": "https://json.schemastore.org/launchsettings.json", + "profiles": { + "DebugRoslynAnalyzers": { + "commandName": "DebugRoslynComponent", + "targetProject": "../ModularPipelines.Development.Analyzers.Sample/ModularPipelines.Development.Analyzers.Sample.csproj" + } + } +} \ No newline at end of file diff --git a/src/ModularPipelines.Development.Analyzers/Readme.md b/src/ModularPipelines.Development.Analyzers/Readme.md new file mode 100644 index 0000000000..976f16c4f8 --- /dev/null +++ b/src/ModularPipelines.Development.Analyzers/Readme.md @@ -0,0 +1,158 @@ +# ModularPipelines + +Define your pipeline in .NET! Strong types, intellisense, parallelisation, and the entire .NET ecosystem at your fingertips. + +[![nuget](https://img.shields.io/nuget/v/ModularPipelines.svg)](https://www.nuget.org/packages/ModularPipelines/) + +![Nuget](https://img.shields.io/nuget/dt/ModularPipelines) ![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/thomhurst/ModularPipelines/dotnet.yml) ![GitHub last commit (branch)](https://img.shields.io/github/last-commit/thomhurst/ModularPipelines/main) [![Codacy Badge](https://app.codacy.com/project/badge/Grade/5f14420d97304b42a9e96861a4c0fec4)](https://app.codacy.com/gh/thomhurst/ModularPipelines/dashboard?utm_source=gh\&utm_medium=referral\&utm_content=\&utm_campaign=Badge_grade) [![CodeFactor](https://www.codefactor.io/repository/github/thomhurst/modularpipelines/badge)](https://www.codefactor.io/repository/github/thomhurst/modularpipelines) ![License](https://img.shields.io/github/license/thomhurst/ModularPipelines) [![Codacy Badge](https://app.codacy.com/project/badge/Coverage/5f14420d97304b42a9e96861a4c0fec4)](https://app.codacy.com/gh/thomhurst/ModularPipelines/dashboard?utm_source=gh\&utm_medium=referral\&utm_content=\&utm_campaign=Badge_coverage) [![codecov](https://codecov.io/gh/thomhurst/ModularPipelines/graph/badge.svg?token=QC48Q6JOM4)](https://codecov.io/gh/thomhurst/ModularPipelines) + +## [Documentation](https://thomhurst.github.io/ModularPipelines) + + + +## Features + +* Parallel execution +* Dependency management +* Familiar C# code +* Ability to debug pipelines +* Ability to run pipelines locally, even creating versions for setting up local development +* Strong typing, where different modules/steps can pass data to one another +* Dependency collision detection - Don't worry about accidentally making two modules dependent on each other +* Numerous helpers to do things like: Search files, check checksums, (un)zip folders, download files, install files, execute CLI commands, hash data, and more +* Easy to Skip or Ignore Failures for each individual module by passing in custom logic +* Hooks that can run before and/or after modules +* Pipeline requirements - Validate your requirements are met before executing your pipeline, such as a Linux operating system +* Easy to use File and Folder classes, that can search, read, update, delete and more +* Source controlled pipelines +* Build agent agnostic - Can easily move to a different build system without completely recreating your pipeline +* No need to learn new syntaxes such as YAML defined pipelines +* Strongly typed wrappers around command line tools +* Utilise existing .NET libraries +* Secret obfuscation +* Grouped logging, and the ability to extend sources by adding to the familiar `ILogger` +* Run based on categories +* Easy to read exceptions +* Dynamic console progress reporting (if the console supports interactive mode) +* Pretty results table + +## Available Modules + +| Package | Description | Version | +| --- | --- | --- | +| ModularPipelines | Write your pipelines in C#! | [![nuget](https://img.shields.io/nuget/v/ModularPipelines.svg)](https://www.nuget.org/packages/ModularPipelines/) | +| ModularPipelines.AmazonWebServices | Helpers for interacting with Amazon Web Services. | [![nuget](https://img.shields.io/nuget/v/ModularPipelines.AmazonWebServices.svg)](https://www.nuget.org/packages/ModularPipelines.AmazonWebServices/) | +| ModularPipelines.Azure | Helpers for interacting with Azure. | [![nuget](https://img.shields.io/nuget/v/ModularPipelines.Azure.svg)](https://www.nuget.org/packages/ModularPipelines.Azure/) | +| ModularPipelines.Azure.Pipelines | Helpers for interacting with Azure Pipeline agents. | [![nuget](https://img.shields.io/nuget/v/ModularPipelines.Azure.Pipelines.svg)](https://www.nuget.org/packages/ModularPipelines.Azure.Pipelines/) | +| ModularPipelines.Chocolatey | Helpers for interacting with the Chocolatey CLI. | [![nuget](https://img.shields.io/nuget/v/ModularPipelines.Chocolatey.svg)](https://www.nuget.org/packages/ModularPipelines.Chocolatey/) | +| ModularPipelines.Cmd | Helpers for interacting with the Windows cmd process. | [![nuget](https://img.shields.io/nuget/v/ModularPipelines.Cmd.svg)](https://www.nuget.org/packages/ModularPipelines.Cmd/) | +| ModularPipelines.Docker | Helpers for interacting with the Docker CLI. | [![nuget](https://img.shields.io/nuget/v/ModularPipelines.Docker.svg)](https://www.nuget.org/packages/ModularPipelines.Docker/) | +| ModularPipelines.DotNet | Helpers for interacting with dotnet CLI. | [![nuget](https://img.shields.io/nuget/v/ModularPipelines.DotNet.svg)](https://www.nuget.org/packages/ModularPipelines.DotNet/) | +| ModularPipelines.Email | Helpers for sending emails. | [![nuget](https://img.shields.io/nuget/v/ModularPipelines.Email.svg)](https://www.nuget.org/packages/ModularPipelines.Email/) | +| ModularPipelines.Ftp | Helpers for downloading and uploading via FTP. | [![nuget](https://img.shields.io/nuget/v/ModularPipelines.Ftp.svg)](https://www.nuget.org/packages/ModularPipelines.Ftp/) | +| ModularPipelines.Git | Helpers for interacting with git. | [![nuget](https://img.shields.io/nuget/v/ModularPipelines.Git.svg)](https://www.nuget.org/packages/ModularPipelines.Git/) | +| ModularPipelines.GitHub | Helpers for interacting with GitHub Actions build agents. | [![nuget](https://img.shields.io/nuget/v/ModularPipelines.GitHub.svg)](https://www.nuget.org/packages/ModularPipelines.GitHub/) | +| ModularPipelines.Google | Helpers for interacting with the Google gcloud CLI. | [![nuget](https://img.shields.io/nuget/v/ModularPipelines.Google.svg)](https://www.nuget.org/packages/ModularPipelines.Google/) | +| ModularPipelines.Helm | Helpers for interacting with Helm CLI. | [![nuget](https://img.shields.io/nuget/v/ModularPipelines.Helm.svg)](https://www.nuget.org/packages/ModularPipelines.Helm/) | +| ModularPipelines.Kubernetes | Helpers for interacting with kubectl CLI. | [![nuget](https://img.shields.io/nuget/v/ModularPipelines.Kubernetes.svg)](https://www.nuget.org/packages/ModularPipelines.Kubernetes/) | +| ModularPipelines.MicrosoftTeams | Helpers for sending Microsoft Teams cards. | [![nuget](https://img.shields.io/nuget/v/ModularPipelines.MicrosoftTeams.svg)](https://www.nuget.org/packages/ModularPipelines.MicrosoftTeams/) | +| ModularPipelines.Node | Helpers for interacting with node / npm CLI. | [![nuget](https://img.shields.io/nuget/v/ModularPipelines.Node.svg)](https://www.nuget.org/packages/ModularPipelines.Node/) | +| ModularPipelines.Slack | Helpers for sending Slack cards. | [![nuget](https://img.shields.io/nuget/v/ModularPipelines.Slack.svg)](https://www.nuget.org/packages/ModularPipelines.Slack/) | +| ModularPipelines.TeamCity | Helpers for interacting with TeamCity build agents. | [![nuget](https://img.shields.io/nuget/v/ModularPipelines.TeamCity.svg)](https://www.nuget.org/packages/ModularPipelines.TeamCity/) | +| ModularPipelines.Terraform | Helpers for interacting with Terraform CLI. | [![nuget](https://img.shields.io/nuget/v/ModularPipelines.Terraform.svg)](https://www.nuget.org/packages/ModularPipelines.Terraform/) | +| ModularPipelines.WinGet | Helpers for interacting with the Windows Package Manager. | [![nuget](https://img.shields.io/nuget/v/ModularPipelines.WinGet.svg)](https://www.nuget.org/packages/ModularPipelines.WinGet/) | +| ModularPipelines.Yarn | Helpers for interacting with Yarn CLI. | [![nuget](https://img.shields.io/nuget/v/ModularPipelines.Yarn.svg)](https://www.nuget.org/packages/ModularPipelines.Yarn/) | + + +## Getting Started + +If you want to see how to get started, or want to know more about ModularPipelines, [read the Documentation here](https://thomhurst.github.io/ModularPipelines) + +## Console Progress + +![image](https://github.com/thomhurst/ModularPipelines/assets/30480171/7d85af1e-abfd-40c4-8ef6-5df06baa88d6) + +## Results + +image + +## How does this compare to Cake / Nuke + +* Strong types! You have complete control over what data, and what shape of data to pass around from and to different modules +* No external tooling is required. Pipelines are run with a simple `dotnet run` +* Full dependency injection support for your services +* Similar and familiar setup to frameworks like ASP.NET Core +* Real C# - Whereas frameworks like cake are a scripted form of C# +* Parallelism - Work will run concurrently unless it is dependent on something else +* The style of writing pipelines is very different - Work is organised into separate module classes, keeping code organised and more closely following SRP than having all your work in one main class. This also helps multiple contributors avoid things like merge conflicts + +## Code Examples + +### Program.cs - Main method + +```csharp +await PipelineHostBuilder.Create() + .ConfigureAppConfiguration((context, builder) => + { + builder.AddJsonFile("appsettings.json") + .AddUserSecrets() + .AddEnvironmentVariables(); + }) + .ConfigureServices((context, collection) => + { + collection.Configure(context.Configuration.GetSection("NuGet")); + collection.Configure(context.Configuration.GetSection("Publish")); + collection.AddSingleton(); + collection.AddTransient(); + }) + .AddModule() + .AddModule() + .ExecutePipelineAsync(); +``` + +### Custom Modules + +```csharp +public class FindNugetPackagesModule : Module +{ + protected override Task?> ExecuteAsync(IPipelineContext context, CancellationToken cancellationToken) + { + return context.Git() + .RootDirectory + .GetFiles(path => path.Extension is ".nupkg") + .ToList() + .AsTask(); + } +} +``` + +```csharp +[DependsOn] +public class UploadNugetPackagesModule : Module +{ + private readonly IOptions _nugetSettings; + + public UploadNugetPackagesModule(IOptions nugetSettings) + { + _nugetSettings = nugetSettings; + } + + protected override async Task ExecuteAsync(IPipelineContext context, CancellationToken cancellationToken) + { + var nugetFiles = await GetModule(); + + return await nugetFiles.Value! + .SelectAsync(async nugetFile => await context.DotNet().Nuget.Push(new DotNetNugetPushOptions + { + Path = nugetFile, + Source = "https://api.nuget.org/v3/index.json", + ApiKey = _nugetSettings.Value.ApiKey!, + }, cancellationToken), cancellationToken: cancellationToken) + .ProcessOneAtATime(); + } +} +``` + +### Breaking changes + +While I will try to limit breaking changes, there may be some changes within minor versions. These will be noted on release notes. diff --git a/src/ModularPipelines.Development.Analyzers/Resources.Designer.cs b/src/ModularPipelines.Development.Analyzers/Resources.Designer.cs new file mode 100644 index 0000000000..28f7b80ceb --- /dev/null +++ b/src/ModularPipelines.Development.Analyzers/Resources.Designer.cs @@ -0,0 +1,134 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace ModularPipelines.Development.Analyzers { + using System; + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ModularPipelines.Development.Analyzers.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + + /// + /// Looks up a localized string similar to Add `virtual` keyword. + /// + internal static string MPD0001CodeFixTitle { + get { + return ResourceManager.GetString("MPD0001CodeFixTitle", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Properties should be virtual to allow overriding. + /// + internal static string MPD0001Description { + get { + return ResourceManager.GetString("MPD0001Description", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Properties should be virtual to allow overriding. + /// + internal static string MPD0001MessageFormat { + get { + return ResourceManager.GetString("MPD0001MessageFormat", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Properties should be virtual to allow overriding. + /// + internal static string MPD0001Title { + get { + return ResourceManager.GetString("MPD0001Title", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Add `virtual` keyword. + /// + internal static string MPD0002CodeFixTitle { + get { + return ResourceManager.GetString("MPD0002CodeFixTitle", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Method should be virtual to allow overriding. + /// + internal static string MPD0002Description { + get { + return ResourceManager.GetString("MPD0002Description", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Method should be virtual to allow overriding. + /// + internal static string MPD0002MessageFormat { + get { + return ResourceManager.GetString("MPD0002MessageFormat", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Method should be virtual to allow overriding. + /// + internal static string MPD0002Title { + get { + return ResourceManager.GetString("MPD0002Title", resourceCulture); + } + } + } +} diff --git a/src/ModularPipelines.Development.Analyzers/Resources.resx b/src/ModularPipelines.Development.Analyzers/Resources.resx new file mode 100644 index 0000000000..35c586951c --- /dev/null +++ b/src/ModularPipelines.Development.Analyzers/Resources.resx @@ -0,0 +1,45 @@ + + + + + + + + + + text/microsoft-resx + + + 1.3 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Properties should be virtual to allow overridingAn optional longer localizable description of the diagnostic. + + + Properties should be virtual to allow overridingThe format-able message the diagnostic displays. + + + Properties should be virtual to allow overridingThe title of the diagnostic. + + + Add `virtual` keywordThe title of the code fix. + + + Method should be virtual to allow overridingAn optional longer localizable description of the diagnostic. + + + Method should be virtual to allow overridingThe format-able message the diagnostic displays. + + + Method should be virtual to allow overridingThe title of the diagnostic. + + + Add `virtual` keywordThe title of the code fix. + + \ No newline at end of file diff --git a/src/ModularPipelines.Development.Analyzers/VirtualCommandAnalyzer.cs b/src/ModularPipelines.Development.Analyzers/VirtualCommandAnalyzer.cs new file mode 100644 index 0000000000..0e285a4a5a --- /dev/null +++ b/src/ModularPipelines.Development.Analyzers/VirtualCommandAnalyzer.cs @@ -0,0 +1,83 @@ +using System.Collections.Immutable; +using Microsoft.CodeAnalysis; +using Microsoft.CodeAnalysis.CSharp; +using Microsoft.CodeAnalysis.CSharp.Syntax; +using Microsoft.CodeAnalysis.Diagnostics; + +namespace ModularPipelines.Development.Analyzers; + +[DiagnosticAnalyzer(LanguageNames.CSharp)] +public class VirtualCommandAnalyzer : DiagnosticAnalyzer +{ + private const string Category = "Usage"; + + public const string DiagnosticId = "MPD0002"; + + private static readonly LocalizableString Title = new LocalizableResourceString(nameof(Resources.MPD0002Title), + Resources.ResourceManager, typeof(Resources)); + + private static readonly LocalizableString MessageFormat = + new LocalizableResourceString(nameof(Resources.MPD0002MessageFormat), Resources.ResourceManager, + typeof(Resources)); + + private static readonly LocalizableString Description = + new LocalizableResourceString(nameof(Resources.MPD0002Description), Resources.ResourceManager, + typeof(Resources)); + + private static readonly DiagnosticDescriptor Rule = new(DiagnosticId, Title, MessageFormat, Category, + DiagnosticSeverity.Warning, isEnabledByDefault: true, description: Description); + + public override ImmutableArray SupportedDiagnostics { get; } = [Rule]; + + public override void Initialize(AnalysisContext context) + { + context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None); + + context.EnableConcurrentExecution(); + + context.RegisterSyntaxNodeAction(AnalyzeSyntax, SyntaxKind.MethodDeclaration); + } + + private void AnalyzeSyntax(SyntaxNodeAnalysisContext context) + { + if (context.Node is not MethodDeclarationSyntax method) + { + return; + } + + var methodSymbol = context.SemanticModel.GetDeclaredSymbol(method); + + if (methodSymbol is null + || methodSymbol.IsVirtual + || methodSymbol.DeclaredAccessibility == Accessibility.Private + || methodSymbol.ContainingType.TypeKind != TypeKind.Class + || methodSymbol.IsAbstract + || methodSymbol.IsStatic + || methodSymbol.IsOverride + || methodSymbol.ContainingType.IsSealed + || methodSymbol.IsSealed) + { + return; + } + + var task = context.Compilation.GetTypeByMetadataName("System.Threading.Tasks.Task`1"); + + var commandResult = context.Compilation.GetTypeByMetadataName("ModularPipelines.Models.CommandResult"); + + if (task is null || commandResult is null) + { + return; + } + + var commandResultTask = task.Construct(commandResult); + + if (!SymbolEqualityComparer.Default.Equals(methodSymbol.ReturnType, commandResultTask)) + { + return; + } + + var diagnostic = Diagnostic.Create(Rule, method.GetLocation()); + + context.ReportDiagnostic(diagnostic); + } +} \ No newline at end of file diff --git a/src/ModularPipelines.Development.Analyzers/VirtualCommandCodeFixProvider.cs b/src/ModularPipelines.Development.Analyzers/VirtualCommandCodeFixProvider.cs new file mode 100644 index 0000000000..2ff60d9275 --- /dev/null +++ b/src/ModularPipelines.Development.Analyzers/VirtualCommandCodeFixProvider.cs @@ -0,0 +1,87 @@ +using System.Collections.Immutable; +using System.Composition; +using Microsoft.CodeAnalysis; +using Microsoft.CodeAnalysis.CodeActions; +using Microsoft.CodeAnalysis.CodeFixes; +using Microsoft.CodeAnalysis.CSharp.Syntax; +using Microsoft.CodeAnalysis.Rename; +using SyntaxFactory = Microsoft.CodeAnalysis.CSharp.SyntaxFactory; +using SyntaxKind = Microsoft.CodeAnalysis.CSharp.SyntaxKind; + +namespace ModularPipelines.Development.Analyzers; + +/// +/// A sample code fix provider that renames classes with the company name in their definition. +/// All code fixes must be linked to specific analyzers. +/// +[ExportCodeFixProvider(LanguageNames.CSharp, Name = nameof(VirtualCommandCodeFixProvider)), Shared] +public class VirtualCommandCodeFixProvider : CodeFixProvider +{ + private const string CommonName = "Common"; + + // Specify the diagnostic IDs of analyzers that are expected to be linked. + public override sealed ImmutableArray FixableDiagnosticIds { get; } = [VirtualCommandAnalyzer.DiagnosticId]; + + // If you don't need the 'fix all' behaviour, return null. + public override FixAllProvider? GetFixAllProvider() => WellKnownFixAllProviders.BatchFixer; + + public override sealed async Task RegisterCodeFixesAsync(CodeFixContext context) + { + // We link only one diagnostic and assume there is only one diagnostic in the context. + var diagnostic = context.Diagnostics.Single(); + + // 'SourceSpan' of 'Location' is the highlighted area. We're going to use this area to find the 'SyntaxNode' to rename. + var diagnosticSpan = diagnostic.Location.SourceSpan; + + // Get the root of Syntax Tree that contains the highlighted diagnostic. + var root = await context.Document.GetSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); + + // Find SyntaxNode corresponding to the diagnostic. + var diagnosticNode = root?.FindNode(diagnosticSpan); + + // To get the required metadata, we should match the Node to the specific type: 'ClassDeclarationSyntax'. + if (diagnosticNode is not MethodDeclarationSyntax declaration) + { + return; + } + + // Register a code action that will invoke the fix. + context.RegisterCodeFix( + CodeAction.Create( + title: Resources.MPD0002CodeFixTitle, + createChangedDocument: c => AddVirtualKeyword(context.Document, declaration, c), + equivalenceKey: nameof(Resources.MPD0002CodeFixTitle)), + diagnostic); + } + + /// + /// Executed on the quick fix action raised by the user. + /// + /// Affected source file. + /// Highlighted property declaration Syntax Node. + /// Any fix is cancellable by the user, so we should support the cancellation token. + /// Clone of the solution with updates: renamed class. + private static async Task AddVirtualKeyword(Document document, + MethodDeclarationSyntax methodDeclarationSyntax, CancellationToken cancellationToken) + { + var accessibilityModifier = methodDeclarationSyntax.Modifiers.LastOrDefault(modifier => + modifier.IsKind(SyntaxKind.PublicKeyword) || + modifier.IsKind(SyntaxKind.ProtectedKeyword) || + modifier.IsKind(SyntaxKind.InternalKeyword) || + modifier.IsKind(SyntaxKind.PrivateKeyword)); + + var index = Math.Max(0, methodDeclarationSyntax.Modifiers.IndexOf(accessibilityModifier) + 1); + + var newMethodDeclarationSyntax = methodDeclarationSyntax.WithModifiers( + SyntaxFactory.TokenList(methodDeclarationSyntax.Modifiers.Insert(index, SyntaxFactory.Token(SyntaxKind.VirtualKeyword)))); + + var root = await document.GetSyntaxRootAsync(cancellationToken); + + if (root is null) + { + return document; + } + + return document.WithSyntaxRoot(root.ReplaceNode(methodDeclarationSyntax, newMethodDeclarationSyntax)); + } +} \ No newline at end of file diff --git a/src/ModularPipelines.Development.Analyzers/VirtualSwitchPropertyAnalyzer.cs b/src/ModularPipelines.Development.Analyzers/VirtualSwitchPropertyAnalyzer.cs new file mode 100644 index 0000000000..9cec0e30fa --- /dev/null +++ b/src/ModularPipelines.Development.Analyzers/VirtualSwitchPropertyAnalyzer.cs @@ -0,0 +1,68 @@ +using System.Collections.Immutable; +using Microsoft.CodeAnalysis; +using Microsoft.CodeAnalysis.CSharp; +using Microsoft.CodeAnalysis.CSharp.Syntax; +using Microsoft.CodeAnalysis.Diagnostics; + +namespace ModularPipelines.Development.Analyzers; + +[DiagnosticAnalyzer(LanguageNames.CSharp)] +public class VirtualSwitchPropertyAnalyzer : DiagnosticAnalyzer +{ + private const string Category = "Usage"; + + public const string DiagnosticId = "MPD0001"; + + private static readonly LocalizableString Title = new LocalizableResourceString(nameof(Resources.MPD0001Title), + Resources.ResourceManager, typeof(Resources)); + + private static readonly LocalizableString MessageFormat = + new LocalizableResourceString(nameof(Resources.MPD0001MessageFormat), Resources.ResourceManager, + typeof(Resources)); + + private static readonly LocalizableString Description = + new LocalizableResourceString(nameof(Resources.MPD0001Description), Resources.ResourceManager, + typeof(Resources)); + + private static readonly DiagnosticDescriptor Rule = new(DiagnosticId, Title, MessageFormat, Category, + DiagnosticSeverity.Warning, isEnabledByDefault: true, description: Description); + + public override ImmutableArray SupportedDiagnostics { get; } = [Rule]; + + public override void Initialize(AnalysisContext context) + { + context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None); + + context.EnableConcurrentExecution(); + + context.RegisterSyntaxNodeAction(AnalyzeSyntax, SyntaxKind.PropertyDeclaration); + } + + private void AnalyzeSyntax(SyntaxNodeAnalysisContext context) + { + if (context.Node is not PropertyDeclarationSyntax property) + { + return; + } + + var propertySymbol = context.SemanticModel.GetDeclaredSymbol(property); + + if (propertySymbol is null) + { + return; + } + + var attributes = propertySymbol.GetAttributes() + .Where(x => x.AttributeClass?.Interfaces.Any(i => i.Name == "ICommandSwitchAttribute") is true) + .ToList(); + + if (attributes.Count == 0 || propertySymbol.IsVirtual) + { + return; + } + + var diagnostic = Diagnostic.Create(Rule, property.GetLocation()); + + context.ReportDiagnostic(diagnostic); + } +} \ No newline at end of file diff --git a/src/ModularPipelines.Development.Analyzers/VirtualSwitchPropertyCodeFixProvider.cs b/src/ModularPipelines.Development.Analyzers/VirtualSwitchPropertyCodeFixProvider.cs new file mode 100644 index 0000000000..469158834f --- /dev/null +++ b/src/ModularPipelines.Development.Analyzers/VirtualSwitchPropertyCodeFixProvider.cs @@ -0,0 +1,79 @@ +using System.Collections.Immutable; +using System.Composition; +using Microsoft.CodeAnalysis; +using Microsoft.CodeAnalysis.CodeActions; +using Microsoft.CodeAnalysis.CodeFixes; +using Microsoft.CodeAnalysis.CSharp.Syntax; +using Microsoft.CodeAnalysis.Rename; +using SyntaxFactory = Microsoft.CodeAnalysis.CSharp.SyntaxFactory; +using SyntaxKind = Microsoft.CodeAnalysis.CSharp.SyntaxKind; + +namespace ModularPipelines.Development.Analyzers; + +/// +/// A sample code fix provider that renames classes with the company name in their definition. +/// All code fixes must be linked to specific analyzers. +/// +[ExportCodeFixProvider(LanguageNames.CSharp, Name = nameof(VirtualSwitchPropertyCodeFixProvider)), Shared] +public class VirtualSwitchPropertyCodeFixProvider : CodeFixProvider +{ + private const string CommonName = "Common"; + + // Specify the diagnostic IDs of analyzers that are expected to be linked. + public override sealed ImmutableArray FixableDiagnosticIds { get; } = [VirtualSwitchPropertyAnalyzer.DiagnosticId]; + + // If you don't need the 'fix all' behaviour, return null. + public override FixAllProvider? GetFixAllProvider() => WellKnownFixAllProviders.BatchFixer; + + public override sealed async Task RegisterCodeFixesAsync(CodeFixContext context) + { + // We link only one diagnostic and assume there is only one diagnostic in the context. + var diagnostic = context.Diagnostics.Single(); + + // 'SourceSpan' of 'Location' is the highlighted area. We're going to use this area to find the 'SyntaxNode' to rename. + var diagnosticSpan = diagnostic.Location.SourceSpan; + + // Get the root of Syntax Tree that contains the highlighted diagnostic. + var root = await context.Document.GetSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); + + // Find SyntaxNode corresponding to the diagnostic. + var diagnosticNode = root?.FindNode(diagnosticSpan); + + // To get the required metadata, we should match the Node to the specific type: 'ClassDeclarationSyntax'. + if (diagnosticNode is not PropertyDeclarationSyntax declaration) + { + return; + } + + // Register a code action that will invoke the fix. + context.RegisterCodeFix( + CodeAction.Create( + title: Resources.MPD0001CodeFixTitle, + createChangedDocument: c => AddVirtualKeyword(context.Document, declaration, c), + equivalenceKey: nameof(Resources.MPD0001CodeFixTitle)), + diagnostic); + } + + /// + /// Executed on the quick fix action raised by the user. + /// + /// Affected source file. + /// Highlighted property declaration Syntax Node. + /// Any fix is cancellable by the user, so we should support the cancellation token. + /// Clone of the solution with updates: renamed class. + private static async Task AddVirtualKeyword(Document document, + PropertyDeclarationSyntax propertyDeclarationSyntax, CancellationToken cancellationToken) + { + var newPropertyDeclarationSyntax = propertyDeclarationSyntax.WithModifiers( + SyntaxFactory.TokenList(propertyDeclarationSyntax.Modifiers.Add(SyntaxFactory.Token(SyntaxKind.VirtualKeyword)))); + + var root = await document.GetSyntaxRootAsync(cancellationToken); + + if (root is null) + { + return document; + } + + return document.WithSyntaxRoot(root.ReplaceNode(propertyDeclarationSyntax, newPropertyDeclarationSyntax)); + } +} \ No newline at end of file diff --git a/src/ModularPipelines.Docker/Options/DockerBuilderPruneOptions.cs b/src/ModularPipelines.Docker/Options/DockerBuilderPruneOptions.cs index 038983e602..3f791fcd85 100644 --- a/src/ModularPipelines.Docker/Options/DockerBuilderPruneOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerBuilderPruneOptions.cs @@ -8,14 +8,14 @@ namespace ModularPipelines.Docker.Options; public record DockerBuilderPruneOptions : DockerOptions { [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } [CommandSwitch("--filter")] - public string? Filter { get; set; } + public virtual string? Filter { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [CommandSwitch("--keep-storage")] - public string? KeepStorage { get; set; } + public virtual string? KeepStorage { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerBuildxBakeOptions.cs b/src/ModularPipelines.Docker/Options/DockerBuildxBakeOptions.cs index db3e15b54d..2ca10f7091 100644 --- a/src/ModularPipelines.Docker/Options/DockerBuildxBakeOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerBuildxBakeOptions.cs @@ -11,35 +11,35 @@ public record DockerBuildxBakeOptions : DockerOptions public IEnumerable? Target { get; set; } [CommandSwitch("--file")] - public string? File { get; set; } + public virtual string? File { get; set; } [CommandSwitch("--load")] - public string? Load { get; set; } + public virtual string? Load { get; set; } [CommandSwitch("--metadata-file")] - public string? MetadataFile { get; set; } + public virtual string? MetadataFile { get; set; } [BooleanCommandSwitch("--no-cache")] - public bool? NoCache { get; set; } + public virtual bool? NoCache { get; set; } [CommandSwitch("--print")] - public string? Print { get; set; } + public virtual string? Print { get; set; } [CommandSwitch("--progress")] - public string? Progress { get; set; } + public virtual string? Progress { get; set; } [CommandSwitch("--provenance")] - public string? Provenance { get; set; } + public virtual string? Provenance { get; set; } [BooleanCommandSwitch("--pull")] - public bool? Pull { get; set; } + public virtual bool? Pull { get; set; } [BooleanCommandSwitch("--push")] - public bool? Push { get; set; } + public virtual bool? Push { get; set; } [BooleanCommandSwitch("--sbom")] - public bool? Sbom { get; set; } + public virtual bool? Sbom { get; set; } [CommandSwitch("--set")] - public string? Set { get; set; } + public virtual string? Set { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerBuildxBuildOptions.cs b/src/ModularPipelines.Docker/Options/DockerBuildxBuildOptions.cs index 1ef34e9ebe..e53e55d994 100644 --- a/src/ModularPipelines.Docker/Options/DockerBuildxBuildOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerBuildxBuildOptions.cs @@ -20,146 +20,146 @@ string pathOrUrl public string? PathOrUrl { get; set; } [CommandSwitch("--add-host")] - public string? AddHost { get; set; } + public virtual string? AddHost { get; set; } [CommandSwitch("--allow")] - public string? Allow { get; set; } + public virtual string? Allow { get; set; } [CommandSwitch("--annotation")] - public string? Annotation { get; set; } + public virtual string? Annotation { get; set; } [CommandSwitch("--attest")] - public string? Attest { get; set; } + public virtual string? Attest { get; set; } [CommandSwitch("--build-arg")] - public IEnumerable? BuildArg { get; set; } + public virtual IEnumerable? BuildArg { get; set; } [CommandSwitch("--build-context")] - public string? BuildContext { get; set; } + public virtual string? BuildContext { get; set; } [CommandSwitch("--cache-from")] - public string? CacheFrom { get; set; } + public virtual string? CacheFrom { get; set; } [CommandSwitch("--cache-to")] - public string? CacheTo { get; set; } + public virtual string? CacheTo { get; set; } [CommandSwitch("--cgroup-parent")] - public string? CgroupParent { get; set; } + public virtual string? CgroupParent { get; set; } [BooleanCommandSwitch("--compress")] - public bool? Compress { get; set; } + public virtual bool? Compress { get; set; } [CommandSwitch("--cpu-period")] - public string? CpuPeriod { get; set; } + public virtual string? CpuPeriod { get; set; } [CommandSwitch("--cpu-quota")] - public string? CpuQuota { get; set; } + public virtual string? CpuQuota { get; set; } [CommandSwitch("--cpu-shares")] - public string? CpuShares { get; set; } + public virtual string? CpuShares { get; set; } [CommandSwitch("--cpuset-cpus")] - public string? CpusetCpus { get; set; } + public virtual string? CpusetCpus { get; set; } [CommandSwitch("--cpuset-mems")] - public string? CpusetMems { get; set; } + public virtual string? CpusetMems { get; set; } [BooleanCommandSwitch("--detach")] - public bool? Detach { get; set; } + public virtual bool? Detach { get; set; } [CommandSwitch("--file")] - public string? File { get; set; } + public virtual string? File { get; set; } [BooleanCommandSwitch("--force-rm")] - public bool? ForceRm { get; set; } + public virtual bool? ForceRm { get; set; } [CommandSwitch("--iidfile")] - public string? Iidfile { get; set; } + public virtual string? Iidfile { get; set; } [BooleanCommandSwitch("--isolation")] - public bool? Isolation { get; set; } + public virtual bool? Isolation { get; set; } [CommandSwitch("--label")] - public string? Label { get; set; } + public virtual string? Label { get; set; } [CommandSwitch("--load")] - public string? Load { get; set; } + public virtual string? Load { get; set; } [CommandSwitch("--memory")] - public string? Memory { get; set; } + public virtual string? Memory { get; set; } [CommandSwitch("--memory-swap")] - public string? MemorySwap { get; set; } + public virtual string? MemorySwap { get; set; } [CommandSwitch("--metadata-file")] - public string? MetadataFile { get; set; } + public virtual string? MetadataFile { get; set; } [CommandSwitch("--network")] - public string? Network { get; set; } + public virtual string? Network { get; set; } [BooleanCommandSwitch("--no-cache")] - public bool? NoCache { get; set; } + public virtual bool? NoCache { get; set; } [CommandSwitch("--no-cache-filter")] - public string? NoCacheFilter { get; set; } + public virtual string? NoCacheFilter { get; set; } [CommandSwitch("--output")] - public string? Output { get; set; } + public virtual string? Output { get; set; } [CommandSwitch("--platform")] - public string? Platform { get; set; } + public virtual string? Platform { get; set; } [CommandSwitch("--print")] - public string? Print { get; set; } + public virtual string? Print { get; set; } [CommandSwitch("--progress")] - public string? Progress { get; set; } + public virtual string? Progress { get; set; } [CommandSwitch("--provenance")] - public string? Provenance { get; set; } + public virtual string? Provenance { get; set; } [BooleanCommandSwitch("--pull")] - public bool? Pull { get; set; } + public virtual bool? Pull { get; set; } [BooleanCommandSwitch("--push")] - public bool? Push { get; set; } + public virtual bool? Push { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } [BooleanCommandSwitch("--rm")] - public bool? Rm { get; set; } + public virtual bool? Rm { get; set; } [CommandSwitch("--root")] - public string? Root { get; set; } + public virtual string? Root { get; set; } [BooleanCommandSwitch("--sbom")] - public bool? Sbom { get; set; } + public virtual bool? Sbom { get; set; } [CommandSwitch("--secret")] - public string? Secret { get; set; } + public virtual string? Secret { get; set; } [CommandSwitch("--security-opt")] - public string? SecurityOpt { get; set; } + public virtual string? SecurityOpt { get; set; } [CommandSwitch("--server-config")] - public string? ServerConfig { get; set; } + public virtual string? ServerConfig { get; set; } [CommandSwitch("--shm-size")] - public string? ShmSize { get; set; } + public virtual string? ShmSize { get; set; } [BooleanCommandSwitch("--squash")] - public bool? Squash { get; set; } + public virtual bool? Squash { get; set; } [CommandSwitch("--ssh")] - public string? Ssh { get; set; } + public virtual string? Ssh { get; set; } [CommandSwitch("--tag")] - public string? Tag { get; set; } + public virtual string? Tag { get; set; } [CommandSwitch("--target")] - public string? Target { get; set; } + public virtual string? Target { get; set; } [CommandSwitch("--ulimit")] - public string? Ulimit { get; set; } + public virtual string? Ulimit { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerBuildxCreateOptions.cs b/src/ModularPipelines.Docker/Options/DockerBuildxCreateOptions.cs index d2d86f3359..e7a1b5026f 100644 --- a/src/ModularPipelines.Docker/Options/DockerBuildxCreateOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerBuildxCreateOptions.cs @@ -11,35 +11,35 @@ public record DockerBuildxCreateOptions : DockerOptions public string? ContextOrEndpoint { get; set; } [CommandSwitch("--append")] - public string? Append { get; set; } + public virtual string? Append { get; set; } [CommandSwitch("--bootstrap")] - public string? Bootstrap { get; set; } + public virtual string? Bootstrap { get; set; } [CommandSwitch("--builder")] - public string? Builder { get; set; } + public virtual string? Builder { get; set; } [CommandSwitch("--buildkitd-flags")] - public string? BuildkitdFlags { get; set; } + public virtual string? BuildkitdFlags { get; set; } [CommandSwitch("--driver")] - public string? Driver { get; set; } + public virtual string? Driver { get; set; } [CommandSwitch("--driver-opt")] - public string? DriverOpt { get; set; } + public virtual string? DriverOpt { get; set; } [CommandSwitch("--leave")] - public string? Leave { get; set; } + public virtual string? Leave { get; set; } [CommandSwitch("--name")] - public string? Name { get; set; } + public virtual string? Name { get; set; } [CommandSwitch("--node")] - public string? Node { get; set; } + public virtual string? Node { get; set; } [CommandSwitch("--platform")] - public string? Platform { get; set; } + public virtual string? Platform { get; set; } [CommandSwitch("--use")] - public string? Use { get; set; } + public virtual string? Use { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerBuildxDebugBuildOptions.cs b/src/ModularPipelines.Docker/Options/DockerBuildxDebugBuildOptions.cs index e47a592e37..c526744f82 100644 --- a/src/ModularPipelines.Docker/Options/DockerBuildxDebugBuildOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerBuildxDebugBuildOptions.cs @@ -20,146 +20,146 @@ string pathOrUrl public string? PathOrUrl { get; set; } [CommandSwitch("--add-host")] - public string? AddHost { get; set; } + public virtual string? AddHost { get; set; } [CommandSwitch("--allow")] - public string? Allow { get; set; } + public virtual string? Allow { get; set; } [CommandSwitch("--annotation")] - public string? Annotation { get; set; } + public virtual string? Annotation { get; set; } [CommandSwitch("--attest")] - public string? Attest { get; set; } + public virtual string? Attest { get; set; } [CommandSwitch("--build-arg")] - public IEnumerable? BuildArg { get; set; } + public virtual IEnumerable? BuildArg { get; set; } [CommandSwitch("--build-context")] - public string? BuildContext { get; set; } + public virtual string? BuildContext { get; set; } [CommandSwitch("--cache-from")] - public string? CacheFrom { get; set; } + public virtual string? CacheFrom { get; set; } [CommandSwitch("--cache-to")] - public string? CacheTo { get; set; } + public virtual string? CacheTo { get; set; } [CommandSwitch("--cgroup-parent")] - public string? CgroupParent { get; set; } + public virtual string? CgroupParent { get; set; } [BooleanCommandSwitch("--compress")] - public bool? Compress { get; set; } + public virtual bool? Compress { get; set; } [CommandSwitch("--cpu-period")] - public string? CpuPeriod { get; set; } + public virtual string? CpuPeriod { get; set; } [CommandSwitch("--cpu-quota")] - public string? CpuQuota { get; set; } + public virtual string? CpuQuota { get; set; } [CommandSwitch("--cpu-shares")] - public string? CpuShares { get; set; } + public virtual string? CpuShares { get; set; } [CommandSwitch("--cpuset-cpus")] - public string? CpusetCpus { get; set; } + public virtual string? CpusetCpus { get; set; } [CommandSwitch("--cpuset-mems")] - public string? CpusetMems { get; set; } + public virtual string? CpusetMems { get; set; } [BooleanCommandSwitch("--detach")] - public bool? Detach { get; set; } + public virtual bool? Detach { get; set; } [CommandSwitch("--file")] - public string? File { get; set; } + public virtual string? File { get; set; } [BooleanCommandSwitch("--force-rm")] - public bool? ForceRm { get; set; } + public virtual bool? ForceRm { get; set; } [CommandSwitch("--iidfile")] - public string? Iidfile { get; set; } + public virtual string? Iidfile { get; set; } [BooleanCommandSwitch("--isolation")] - public bool? Isolation { get; set; } + public virtual bool? Isolation { get; set; } [CommandSwitch("--label")] - public string? Label { get; set; } + public virtual string? Label { get; set; } [CommandSwitch("--load")] - public string? Load { get; set; } + public virtual string? Load { get; set; } [CommandSwitch("--memory")] - public string? Memory { get; set; } + public virtual string? Memory { get; set; } [CommandSwitch("--memory-swap")] - public string? MemorySwap { get; set; } + public virtual string? MemorySwap { get; set; } [CommandSwitch("--metadata-file")] - public string? MetadataFile { get; set; } + public virtual string? MetadataFile { get; set; } [CommandSwitch("--network")] - public string? Network { get; set; } + public virtual string? Network { get; set; } [BooleanCommandSwitch("--no-cache")] - public bool? NoCache { get; set; } + public virtual bool? NoCache { get; set; } [CommandSwitch("--no-cache-filter")] - public string? NoCacheFilter { get; set; } + public virtual string? NoCacheFilter { get; set; } [CommandSwitch("--output")] - public string? Output { get; set; } + public virtual string? Output { get; set; } [CommandSwitch("--platform")] - public string? Platform { get; set; } + public virtual string? Platform { get; set; } [CommandSwitch("--print")] - public string? Print { get; set; } + public virtual string? Print { get; set; } [CommandSwitch("--progress")] - public string? Progress { get; set; } + public virtual string? Progress { get; set; } [CommandSwitch("--provenance")] - public string? Provenance { get; set; } + public virtual string? Provenance { get; set; } [BooleanCommandSwitch("--pull")] - public bool? Pull { get; set; } + public virtual bool? Pull { get; set; } [BooleanCommandSwitch("--push")] - public bool? Push { get; set; } + public virtual bool? Push { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } [BooleanCommandSwitch("--rm")] - public bool? Rm { get; set; } + public virtual bool? Rm { get; set; } [CommandSwitch("--root")] - public string? Root { get; set; } + public virtual string? Root { get; set; } [BooleanCommandSwitch("--sbom")] - public bool? Sbom { get; set; } + public virtual bool? Sbom { get; set; } [CommandSwitch("--secret")] - public string? Secret { get; set; } + public virtual string? Secret { get; set; } [CommandSwitch("--security-opt")] - public string? SecurityOpt { get; set; } + public virtual string? SecurityOpt { get; set; } [CommandSwitch("--server-config")] - public string? ServerConfig { get; set; } + public virtual string? ServerConfig { get; set; } [CommandSwitch("--shm-size")] - public string? ShmSize { get; set; } + public virtual string? ShmSize { get; set; } [BooleanCommandSwitch("--squash")] - public bool? Squash { get; set; } + public virtual bool? Squash { get; set; } [CommandSwitch("--ssh")] - public string? Ssh { get; set; } + public virtual string? Ssh { get; set; } [CommandSwitch("--tag")] - public string? Tag { get; set; } + public virtual string? Tag { get; set; } [CommandSwitch("--target")] - public string? Target { get; set; } + public virtual string? Target { get; set; } [CommandSwitch("--ulimit")] - public string? Ulimit { get; set; } + public virtual string? Ulimit { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerBuildxDebugOptions.cs b/src/ModularPipelines.Docker/Options/DockerBuildxDebugOptions.cs index cdec7fa39d..47bab747f9 100644 --- a/src/ModularPipelines.Docker/Options/DockerBuildxDebugOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerBuildxDebugOptions.cs @@ -8,20 +8,20 @@ namespace ModularPipelines.Docker.Options; public record DockerBuildxDebugOptions : DockerOptions { [BooleanCommandSwitch("--detach")] - public bool? Detach { get; set; } + public virtual bool? Detach { get; set; } [CommandSwitch("--invoke")] - public string? Invoke { get; set; } + public virtual string? Invoke { get; set; } [CommandSwitch("--on")] - public string? On { get; set; } + public virtual string? On { get; set; } [CommandSwitch("--progress")] - public string? Progress { get; set; } + public virtual string? Progress { get; set; } [CommandSwitch("--root")] - public string? Root { get; set; } + public virtual string? Root { get; set; } [CommandSwitch("--server-config")] - public string? ServerConfig { get; set; } + public virtual string? ServerConfig { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerBuildxDuOptions.cs b/src/ModularPipelines.Docker/Options/DockerBuildxDuOptions.cs index d8c5481ac9..d7ab1da0cb 100644 --- a/src/ModularPipelines.Docker/Options/DockerBuildxDuOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerBuildxDuOptions.cs @@ -8,8 +8,8 @@ namespace ModularPipelines.Docker.Options; public record DockerBuildxDuOptions : DockerOptions { [CommandSwitch("--filter")] - public string? Filter { get; set; } + public virtual string? Filter { get; set; } [CommandSwitch("--verbose")] - public string? Verbose { get; set; } + public virtual string? Verbose { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerBuildxImagetoolsCreateOptions.cs b/src/ModularPipelines.Docker/Options/DockerBuildxImagetoolsCreateOptions.cs index 45795411f8..954561df03 100644 --- a/src/ModularPipelines.Docker/Options/DockerBuildxImagetoolsCreateOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerBuildxImagetoolsCreateOptions.cs @@ -11,20 +11,20 @@ public record DockerBuildxImagetoolsCreateOptions : DockerOptions public string? Source { get; set; } [CommandSwitch("--annotation")] - public string? Annotation { get; set; } + public virtual string? Annotation { get; set; } [CommandSwitch("--append")] - public string? Append { get; set; } + public virtual string? Append { get; set; } [BooleanCommandSwitch("--dry-run")] - public bool? DryRun { get; set; } + public virtual bool? DryRun { get; set; } [CommandSwitch("--file")] - public string? File { get; set; } + public virtual string? File { get; set; } [CommandSwitch("--progress")] - public string? Progress { get; set; } + public virtual string? Progress { get; set; } [CommandSwitch("--tag")] - public string? Tag { get; set; } + public virtual string? Tag { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerBuildxImagetoolsInspectOptions.cs b/src/ModularPipelines.Docker/Options/DockerBuildxImagetoolsInspectOptions.cs index f1566eb64f..6334e3fbab 100644 --- a/src/ModularPipelines.Docker/Options/DockerBuildxImagetoolsInspectOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerBuildxImagetoolsInspectOptions.cs @@ -19,8 +19,8 @@ string name public string? Name { get; set; } [CommandSwitch("--format")] - public string? Format { get; set; } + public virtual string? Format { get; set; } [BooleanCommandSwitch("--raw")] - public bool? Raw { get; set; } + public virtual bool? Raw { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerBuildxInspectOptions.cs b/src/ModularPipelines.Docker/Options/DockerBuildxInspectOptions.cs index 266162b6db..a1c4e7111a 100644 --- a/src/ModularPipelines.Docker/Options/DockerBuildxInspectOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerBuildxInspectOptions.cs @@ -11,5 +11,5 @@ public record DockerBuildxInspectOptions : DockerOptions public string? Name { get; set; } [CommandSwitch("--bootstrap")] - public string? Bootstrap { get; set; } + public virtual string? Bootstrap { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerBuildxLsOptions.cs b/src/ModularPipelines.Docker/Options/DockerBuildxLsOptions.cs index 43d8f0c6e8..6ff67f0a12 100644 --- a/src/ModularPipelines.Docker/Options/DockerBuildxLsOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerBuildxLsOptions.cs @@ -8,8 +8,8 @@ namespace ModularPipelines.Docker.Options; public record DockerBuildxLsOptions : DockerOptions { [CommandSwitch("--builder")] - public string? Builder { get; set; } + public virtual string? Builder { get; set; } [CommandSwitch("--format")] - public string? Format { get; set; } + public virtual string? Format { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerBuildxOptions.cs b/src/ModularPipelines.Docker/Options/DockerBuildxOptions.cs index 189df5b2e2..33c22aeae9 100644 --- a/src/ModularPipelines.Docker/Options/DockerBuildxOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerBuildxOptions.cs @@ -8,5 +8,5 @@ namespace ModularPipelines.Docker.Options; public record DockerBuildxOptions : DockerOptions { [CommandSwitch("--builder")] - public string? Builder { get; set; } + public virtual string? Builder { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerBuildxPruneOptions.cs b/src/ModularPipelines.Docker/Options/DockerBuildxPruneOptions.cs index e14bc3c9c4..b998f1f31b 100644 --- a/src/ModularPipelines.Docker/Options/DockerBuildxPruneOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerBuildxPruneOptions.cs @@ -8,17 +8,17 @@ namespace ModularPipelines.Docker.Options; public record DockerBuildxPruneOptions : DockerOptions { [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } [CommandSwitch("--filter")] - public string? Filter { get; set; } + public virtual string? Filter { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [CommandSwitch("--keep-storage")] - public string? KeepStorage { get; set; } + public virtual string? KeepStorage { get; set; } [CommandSwitch("--verbose")] - public string? Verbose { get; set; } + public virtual string? Verbose { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerBuildxRmOptions.cs b/src/ModularPipelines.Docker/Options/DockerBuildxRmOptions.cs index 8e0614537e..f4f403c9ba 100644 --- a/src/ModularPipelines.Docker/Options/DockerBuildxRmOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerBuildxRmOptions.cs @@ -11,14 +11,14 @@ public record DockerBuildxRmOptions : DockerOptions public string? Name { get; set; } [CommandSwitch("--all-inactive")] - public string? AllInactive { get; set; } + public virtual string? AllInactive { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [CommandSwitch("--keep-daemon")] - public string? KeepDaemon { get; set; } + public virtual string? KeepDaemon { get; set; } [CommandSwitch("--keep-state")] - public string? KeepState { get; set; } + public virtual string? KeepState { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerBuildxUseOptions.cs b/src/ModularPipelines.Docker/Options/DockerBuildxUseOptions.cs index 31b2ed6215..9edced0117 100644 --- a/src/ModularPipelines.Docker/Options/DockerBuildxUseOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerBuildxUseOptions.cs @@ -19,8 +19,8 @@ string name public string? Name { get; set; } [CommandSwitch("--default")] - public string? Default { get; set; } + public virtual string? Default { get; set; } [CommandSwitch("--global")] - public string? Global { get; set; } + public virtual string? Global { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerBuildxVersionOptions.cs b/src/ModularPipelines.Docker/Options/DockerBuildxVersionOptions.cs index 83d9ca3883..39297e3235 100644 --- a/src/ModularPipelines.Docker/Options/DockerBuildxVersionOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerBuildxVersionOptions.cs @@ -8,5 +8,5 @@ namespace ModularPipelines.Docker.Options; public record DockerBuildxVersionOptions : DockerOptions { [CommandSwitch("--builder")] - public string? Builder { get; set; } + public virtual string? Builder { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerCheckpointCreateOptions.cs b/src/ModularPipelines.Docker/Options/DockerCheckpointCreateOptions.cs index ab92d35c2b..a1c38cc37a 100644 --- a/src/ModularPipelines.Docker/Options/DockerCheckpointCreateOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerCheckpointCreateOptions.cs @@ -25,8 +25,8 @@ string checkpoint public string? Checkpoint { get; set; } [CommandSwitch("--checkpoint-dir")] - public string? CheckpointDir { get; set; } + public virtual string? CheckpointDir { get; set; } [CommandSwitch("--leave-running")] - public string? LeaveRunning { get; set; } + public virtual string? LeaveRunning { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerCheckpointLsOptions.cs b/src/ModularPipelines.Docker/Options/DockerCheckpointLsOptions.cs index d897cc17fd..c95ec8726a 100644 --- a/src/ModularPipelines.Docker/Options/DockerCheckpointLsOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerCheckpointLsOptions.cs @@ -19,5 +19,5 @@ string container public string? Container { get; set; } [CommandSwitch("--checkpoint-dir")] - public string? CheckpointDir { get; set; } + public virtual string? CheckpointDir { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerCheckpointRmOptions.cs b/src/ModularPipelines.Docker/Options/DockerCheckpointRmOptions.cs index db888e1543..18a0ebff5e 100644 --- a/src/ModularPipelines.Docker/Options/DockerCheckpointRmOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerCheckpointRmOptions.cs @@ -25,5 +25,5 @@ string checkpoint public string? Checkpoint { get; set; } [CommandSwitch("--checkpoint-dir")] - public string? CheckpointDir { get; set; } + public virtual string? CheckpointDir { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerComposeAlphaPublishOptions.cs b/src/ModularPipelines.Docker/Options/DockerComposeAlphaPublishOptions.cs index d16cbcad5d..be2c445faa 100644 --- a/src/ModularPipelines.Docker/Options/DockerComposeAlphaPublishOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerComposeAlphaPublishOptions.cs @@ -11,8 +11,8 @@ public record DockerComposeAlphaPublishOptions : DockerOptions public string? Repository { get; set; } [CommandSwitch("--oci-version")] - public string? OciVersion { get; set; } + public virtual string? OciVersion { get; set; } [CommandSwitch("--resolve-image-digests")] - public string? ResolveImageDigests { get; set; } + public virtual string? ResolveImageDigests { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerComposeAlphaScaleOptions.cs b/src/ModularPipelines.Docker/Options/DockerComposeAlphaScaleOptions.cs index 2f71b8fd3a..5abc06e7a9 100644 --- a/src/ModularPipelines.Docker/Options/DockerComposeAlphaScaleOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerComposeAlphaScaleOptions.cs @@ -12,5 +12,5 @@ public record DockerComposeAlphaScaleOptions : DockerOptions public IEnumerable? ServiceReplicas { get; set; } [BooleanCommandSwitch("--no-deps")] - public bool? NoDeps { get; set; } + public virtual bool? NoDeps { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerComposeAlphaVizOptions.cs b/src/ModularPipelines.Docker/Options/DockerComposeAlphaVizOptions.cs index 1ea6361f0f..55a4e89146 100644 --- a/src/ModularPipelines.Docker/Options/DockerComposeAlphaVizOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerComposeAlphaVizOptions.cs @@ -8,17 +8,17 @@ namespace ModularPipelines.Docker.Options; public record DockerComposeAlphaVizOptions : DockerOptions { [CommandSwitch("--image")] - public string? Image { get; set; } + public virtual string? Image { get; set; } [CommandSwitch("--indentation-size")] - public int? IndentationSize { get; set; } + public virtual int? IndentationSize { get; set; } [CommandSwitch("--networks")] - public string? Networks { get; set; } + public virtual string? Networks { get; set; } [CommandSwitch("--ports")] - public string? Ports { get; set; } + public virtual string? Ports { get; set; } [CommandSwitch("--spaces")] - public string? Spaces { get; set; } + public virtual string? Spaces { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerComposeBuildOptions.cs b/src/ModularPipelines.Docker/Options/DockerComposeBuildOptions.cs index 88887b3a0d..fc1796f7d7 100644 --- a/src/ModularPipelines.Docker/Options/DockerComposeBuildOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerComposeBuildOptions.cs @@ -12,44 +12,44 @@ public record DockerComposeBuildOptions : DockerOptions public IEnumerable? Service { get; set; } [CommandSwitch("--build-arg")] - public IEnumerable? BuildArg { get; set; } + public virtual IEnumerable? BuildArg { get; set; } [CommandSwitch("--builder")] - public string? Builder { get; set; } + public virtual string? Builder { get; set; } [BooleanCommandSwitch("--compress")] - public bool? Compress { get; set; } + public virtual bool? Compress { get; set; } [BooleanCommandSwitch("--force-rm")] - public bool? ForceRm { get; set; } + public virtual bool? ForceRm { get; set; } [CommandSwitch("--memory")] - public string? Memory { get; set; } + public virtual string? Memory { get; set; } [BooleanCommandSwitch("--no-cache")] - public bool? NoCache { get; set; } + public virtual bool? NoCache { get; set; } [CommandSwitch("--no-rm")] - public string? NoRm { get; set; } + public virtual string? NoRm { get; set; } [BooleanCommandSwitch("--parallel")] - public bool? Parallel { get; set; } + public virtual bool? Parallel { get; set; } [CommandSwitch("--progress")] - public string? Progress { get; set; } + public virtual string? Progress { get; set; } [BooleanCommandSwitch("--pull")] - public bool? Pull { get; set; } + public virtual bool? Pull { get; set; } [BooleanCommandSwitch("--push")] - public bool? Push { get; set; } + public virtual bool? Push { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } [CommandSwitch("--ssh")] - public string? Ssh { get; set; } + public virtual string? Ssh { get; set; } [CommandSwitch("--with-dependencies")] - public string? WithDependencies { get; set; } + public virtual string? WithDependencies { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerComposeConfigOptions.cs b/src/ModularPipelines.Docker/Options/DockerComposeConfigOptions.cs index ce8d8ed1ef..1feaa9274f 100644 --- a/src/ModularPipelines.Docker/Options/DockerComposeConfigOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerComposeConfigOptions.cs @@ -11,41 +11,41 @@ public record DockerComposeConfigOptions : DockerOptions public IEnumerable? Service { get; set; } [CommandSwitch("--format")] - public string? Format { get; set; } + public virtual string? Format { get; set; } [BooleanCommandSwitch("--hash")] - public bool? Hash { get; set; } + public virtual bool? Hash { get; set; } [CommandSwitch("--images")] - public string? Images { get; set; } + public virtual string? Images { get; set; } [BooleanCommandSwitch("--no-consistency")] - public bool? NoConsistency { get; set; } + public virtual bool? NoConsistency { get; set; } [BooleanCommandSwitch("--no-interpolate")] - public bool? NoInterpolate { get; set; } + public virtual bool? NoInterpolate { get; set; } [BooleanCommandSwitch("--no-normalize")] - public bool? NoNormalize { get; set; } + public virtual bool? NoNormalize { get; set; } [BooleanCommandSwitch("--no-path-resolution")] - public bool? NoPathResolution { get; set; } + public virtual bool? NoPathResolution { get; set; } [CommandSwitch("--output")] - public string? Output { get; set; } + public virtual string? Output { get; set; } [CommandSwitch("--profiles")] - public string? Profiles { get; set; } + public virtual string? Profiles { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } [CommandSwitch("--resolve-image-digests")] - public string? ResolveImageDigests { get; set; } + public virtual string? ResolveImageDigests { get; set; } [CommandSwitch("--services")] - public string? Services { get; set; } + public virtual string? Services { get; set; } [CommandSwitch("--volumes")] - public string? Volumes { get; set; } + public virtual string? Volumes { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerComposeCpOptions.cs b/src/ModularPipelines.Docker/Options/DockerComposeCpOptions.cs index 3048c3521a..b9ea00eba2 100644 --- a/src/ModularPipelines.Docker/Options/DockerComposeCpOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerComposeCpOptions.cs @@ -46,14 +46,14 @@ string srcPath public string? SrcPath { get; set; } [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } [CommandSwitch("--archive")] - public string? Archive { get; set; } + public virtual string? Archive { get; set; } [CommandSwitch("--follow-link")] - public string? FollowLink { get; set; } + public virtual string? FollowLink { get; set; } [CommandSwitch("--index")] - public string? Index { get; set; } + public virtual string? Index { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Docker/Options/DockerComposeCreateOptions.cs b/src/ModularPipelines.Docker/Options/DockerComposeCreateOptions.cs index a719115263..bd03e4cb89 100644 --- a/src/ModularPipelines.Docker/Options/DockerComposeCreateOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerComposeCreateOptions.cs @@ -11,23 +11,23 @@ public record DockerComposeCreateOptions : DockerOptions public IEnumerable? Service { get; set; } [BooleanCommandSwitch("--build")] - public bool? Build { get; set; } + public virtual bool? Build { get; set; } [BooleanCommandSwitch("--force-recreate")] - public bool? ForceRecreate { get; set; } + public virtual bool? ForceRecreate { get; set; } [BooleanCommandSwitch("--no-build")] - public bool? NoBuild { get; set; } + public virtual bool? NoBuild { get; set; } [BooleanCommandSwitch("--no-recreate")] - public bool? NoRecreate { get; set; } + public virtual bool? NoRecreate { get; set; } [BooleanCommandSwitch("--pull")] - public bool? Pull { get; set; } + public virtual bool? Pull { get; set; } [BooleanCommandSwitch("--remove-orphans")] - public bool? RemoveOrphans { get; set; } + public virtual bool? RemoveOrphans { get; set; } [CommandSwitch("--scale")] - public string? Scale { get; set; } + public virtual string? Scale { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerComposeDownOptions.cs b/src/ModularPipelines.Docker/Options/DockerComposeDownOptions.cs index 04f58a3401..f15afac101 100644 --- a/src/ModularPipelines.Docker/Options/DockerComposeDownOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerComposeDownOptions.cs @@ -11,14 +11,14 @@ public record DockerComposeDownOptions : DockerOptions public string? Services { get; set; } [BooleanCommandSwitch("--remove-orphans")] - public bool? RemoveOrphans { get; set; } + public virtual bool? RemoveOrphans { get; set; } [BooleanCommandSwitch("--rmi")] - public bool? Rmi { get; set; } + public virtual bool? Rmi { get; set; } [CommandSwitch("--timeout")] - public string? Timeout { get; set; } + public virtual string? Timeout { get; set; } [CommandSwitch("--volumes")] - public string? Volumes { get; set; } + public virtual string? Volumes { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerComposeEventsOptions.cs b/src/ModularPipelines.Docker/Options/DockerComposeEventsOptions.cs index 42c102ffdd..0b72ada2ba 100644 --- a/src/ModularPipelines.Docker/Options/DockerComposeEventsOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerComposeEventsOptions.cs @@ -11,5 +11,5 @@ public record DockerComposeEventsOptions : DockerOptions public IEnumerable? Service { get; set; } [CommandSwitch("--json")] - public string? Json { get; set; } + public virtual string? Json { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerComposeExecOptions.cs b/src/ModularPipelines.Docker/Options/DockerComposeExecOptions.cs index 7a642b9a42..f3073993ac 100644 --- a/src/ModularPipelines.Docker/Options/DockerComposeExecOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerComposeExecOptions.cs @@ -28,29 +28,29 @@ string command public IEnumerable? Args { get; set; } [BooleanCommandSwitch("--detach")] - public bool? Detach { get; set; } + public virtual bool? Detach { get; set; } [CommandSwitch("--env")] - public string? Env { get; set; } + public virtual string? Env { get; set; } [CommandSwitch("--index")] - public string? Index { get; set; } + public virtual string? Index { get; set; } [BooleanCommandSwitch("--interactive")] - public bool? Interactive { get; set; } + public virtual bool? Interactive { get; set; } [BooleanCommandSwitch("--no-TTY")] - public bool? NoTty { get; set; } + public virtual bool? NoTty { get; set; } [BooleanCommandSwitch("--privileged")] - public bool? Privileged { get; set; } + public virtual bool? Privileged { get; set; } [BooleanCommandSwitch("--tty")] - public bool? Tty { get; set; } + public virtual bool? Tty { get; set; } [CommandSwitch("--user")] - public string? User { get; set; } + public virtual string? User { get; set; } [CommandSwitch("--workdir")] - public string? Workdir { get; set; } + public virtual string? Workdir { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerComposeImagesOptions.cs b/src/ModularPipelines.Docker/Options/DockerComposeImagesOptions.cs index 281b90026a..14506d4a95 100644 --- a/src/ModularPipelines.Docker/Options/DockerComposeImagesOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerComposeImagesOptions.cs @@ -11,8 +11,8 @@ public record DockerComposeImagesOptions : DockerOptions public IEnumerable? Service { get; set; } [CommandSwitch("--format")] - public string? Format { get; set; } + public virtual string? Format { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerComposeKillOptions.cs b/src/ModularPipelines.Docker/Options/DockerComposeKillOptions.cs index befa6ea220..5a36063d8a 100644 --- a/src/ModularPipelines.Docker/Options/DockerComposeKillOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerComposeKillOptions.cs @@ -11,8 +11,8 @@ public record DockerComposeKillOptions : DockerOptions public IEnumerable? Service { get; set; } [BooleanCommandSwitch("--remove-orphans")] - public bool? RemoveOrphans { get; set; } + public virtual bool? RemoveOrphans { get; set; } [CommandSwitch("--signal")] - public string? Signal { get; set; } + public virtual string? Signal { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerComposeLogsOptions.cs b/src/ModularPipelines.Docker/Options/DockerComposeLogsOptions.cs index acb21adad4..3032330b1d 100644 --- a/src/ModularPipelines.Docker/Options/DockerComposeLogsOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerComposeLogsOptions.cs @@ -11,26 +11,26 @@ public record DockerComposeLogsOptions : DockerOptions public IEnumerable? Service { get; set; } [BooleanCommandSwitch("--follow")] - public bool? Follow { get; set; } + public virtual bool? Follow { get; set; } [CommandSwitch("--index")] - public string? Index { get; set; } + public virtual string? Index { get; set; } [BooleanCommandSwitch("--no-color")] - public bool? NoColor { get; set; } + public virtual bool? NoColor { get; set; } [CommandSwitch("--no-log-prefix")] - public string? NoLogPrefix { get; set; } + public virtual string? NoLogPrefix { get; set; } [CommandSwitch("--since")] - public string? Since { get; set; } + public virtual string? Since { get; set; } [CommandSwitch("--tail")] - public string? Tail { get; set; } + public virtual string? Tail { get; set; } [BooleanCommandSwitch("--timestamps")] - public bool? Timestamps { get; set; } + public virtual bool? Timestamps { get; set; } [CommandSwitch("--until")] - public string? Until { get; set; } + public virtual string? Until { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerComposeLsOptions.cs b/src/ModularPipelines.Docker/Options/DockerComposeLsOptions.cs index ad62c3f8dc..98c9f5da25 100644 --- a/src/ModularPipelines.Docker/Options/DockerComposeLsOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerComposeLsOptions.cs @@ -8,14 +8,14 @@ namespace ModularPipelines.Docker.Options; public record DockerComposeLsOptions : DockerOptions { [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } [CommandSwitch("--filter")] - public string? Filter { get; set; } + public virtual string? Filter { get; set; } [CommandSwitch("--format")] - public string? Format { get; set; } + public virtual string? Format { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerComposeOptions.cs b/src/ModularPipelines.Docker/Options/DockerComposeOptions.cs index e5bbf1cffe..f42a4f9116 100644 --- a/src/ModularPipelines.Docker/Options/DockerComposeOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerComposeOptions.cs @@ -8,44 +8,44 @@ namespace ModularPipelines.Docker.Options; public record DockerComposeOptions : DockerOptions { [CommandSwitch("--ansi")] - public string? Ansi { get; set; } + public virtual string? Ansi { get; set; } [CommandSwitch("--compatibility")] - public string? Compatibility { get; set; } + public virtual string? Compatibility { get; set; } [BooleanCommandSwitch("--dry-run")] - public bool? DryRun { get; set; } + public virtual bool? DryRun { get; set; } [CommandSwitch("--env-file")] - public string? EnvFile { get; set; } + public virtual string? EnvFile { get; set; } [CommandSwitch("--file")] - public string? File { get; set; } + public virtual string? File { get; set; } [CommandSwitch("--no-ansi")] - public string? NoAnsi { get; set; } + public virtual string? NoAnsi { get; set; } [CommandSwitch("--parallel")] - public int? Parallel { get; set; } + public virtual int? Parallel { get; set; } [CommandSwitch("--profile")] - public string? Profile { get; set; } + public virtual string? Profile { get; set; } [CommandSwitch("--progress")] - public string? Progress { get; set; } + public virtual string? Progress { get; set; } [CommandSwitch("--project-directory")] - public string? ProjectDirectory { get; set; } + public virtual string? ProjectDirectory { get; set; } [CommandSwitch("--project-name")] - public string? ProjectName { get; set; } + public virtual string? ProjectName { get; set; } [CommandSwitch("--verbose")] - public string? Verbose { get; set; } + public virtual string? Verbose { get; set; } [CommandSwitch("--version")] - public string? Version { get; set; } + public virtual string? Version { get; set; } [CommandSwitch("--workdir")] - public string? Workdir { get; set; } + public virtual string? Workdir { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerComposePortOptions.cs b/src/ModularPipelines.Docker/Options/DockerComposePortOptions.cs index 0d099aeca1..be11c7b08b 100644 --- a/src/ModularPipelines.Docker/Options/DockerComposePortOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerComposePortOptions.cs @@ -25,8 +25,8 @@ string privatePort public string? PrivatePort { get; set; } [CommandSwitch("--index")] - public string? Index { get; set; } + public virtual string? Index { get; set; } [CommandSwitch("--protocol")] - public string? Protocol { get; set; } + public virtual string? Protocol { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerComposePsOptions.cs b/src/ModularPipelines.Docker/Options/DockerComposePsOptions.cs index 9718565adf..814ebe454d 100644 --- a/src/ModularPipelines.Docker/Options/DockerComposePsOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerComposePsOptions.cs @@ -11,26 +11,26 @@ public record DockerComposePsOptions : DockerOptions public IEnumerable? Service { get; set; } [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } [CommandSwitch("--filter")] - public string? Filter { get; set; } + public virtual string? Filter { get; set; } [CommandSwitch("--format")] - public string? Format { get; set; } + public virtual string? Format { get; set; } [BooleanCommandSwitch("--no-trunc")] - public bool? NoTrunc { get; set; } + public virtual bool? NoTrunc { get; set; } [BooleanCommandSwitch("--orphans")] - public bool? Orphans { get; set; } + public virtual bool? Orphans { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } [CommandSwitch("--services")] - public string? Services { get; set; } + public virtual string? Services { get; set; } [CommandSwitch("--status")] - public string? Status { get; set; } + public virtual string? Status { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerComposePullOptions.cs b/src/ModularPipelines.Docker/Options/DockerComposePullOptions.cs index eb71df4c10..49fd236795 100644 --- a/src/ModularPipelines.Docker/Options/DockerComposePullOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerComposePullOptions.cs @@ -11,23 +11,23 @@ public record DockerComposePullOptions : DockerOptions public IEnumerable? Service { get; set; } [CommandSwitch("--ignore-buildable")] - public string? IgnoreBuildable { get; set; } + public virtual string? IgnoreBuildable { get; set; } [CommandSwitch("--ignore-pull-failures")] - public string? IgnorePullFailures { get; set; } + public virtual string? IgnorePullFailures { get; set; } [CommandSwitch("--include-deps")] - public string? IncludeDeps { get; set; } + public virtual string? IncludeDeps { get; set; } [BooleanCommandSwitch("--no-parallel")] - public bool? NoParallel { get; set; } + public virtual bool? NoParallel { get; set; } [BooleanCommandSwitch("--parallel")] - public bool? Parallel { get; set; } + public virtual bool? Parallel { get; set; } [CommandSwitch("--policy")] - public string? Policy { get; set; } + public virtual string? Policy { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerComposePushOptions.cs b/src/ModularPipelines.Docker/Options/DockerComposePushOptions.cs index ffbd40615f..88c58b0aaf 100644 --- a/src/ModularPipelines.Docker/Options/DockerComposePushOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerComposePushOptions.cs @@ -11,11 +11,11 @@ public record DockerComposePushOptions : DockerOptions public IEnumerable? Service { get; set; } [CommandSwitch("--ignore-push-failures")] - public string? IgnorePushFailures { get; set; } + public virtual string? IgnorePushFailures { get; set; } [CommandSwitch("--include-deps")] - public string? IncludeDeps { get; set; } + public virtual string? IncludeDeps { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerComposeRestartOptions.cs b/src/ModularPipelines.Docker/Options/DockerComposeRestartOptions.cs index b868749d19..48284b0ee1 100644 --- a/src/ModularPipelines.Docker/Options/DockerComposeRestartOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerComposeRestartOptions.cs @@ -11,8 +11,8 @@ public record DockerComposeRestartOptions : DockerOptions public IEnumerable? Service { get; set; } [BooleanCommandSwitch("--no-deps")] - public bool? NoDeps { get; set; } + public virtual bool? NoDeps { get; set; } [CommandSwitch("--timeout")] - public string? Timeout { get; set; } + public virtual string? Timeout { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerComposeRmOptions.cs b/src/ModularPipelines.Docker/Options/DockerComposeRmOptions.cs index c98a4f7bd8..1aa4581a40 100644 --- a/src/ModularPipelines.Docker/Options/DockerComposeRmOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerComposeRmOptions.cs @@ -11,14 +11,14 @@ public record DockerComposeRmOptions : DockerOptions public IEnumerable? Service { get; set; } [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [CommandSwitch("--stop")] - public string? Stop { get; set; } + public virtual string? Stop { get; set; } [CommandSwitch("--volumes")] - public string? Volumes { get; set; } + public virtual string? Volumes { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerComposeRunOptions.cs b/src/ModularPipelines.Docker/Options/DockerComposeRunOptions.cs index 1c14d206fa..7df7a145f5 100644 --- a/src/ModularPipelines.Docker/Options/DockerComposeRunOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerComposeRunOptions.cs @@ -25,65 +25,65 @@ string service public IEnumerable? Args { get; set; } [BooleanCommandSwitch("--build")] - public bool? Build { get; set; } + public virtual bool? Build { get; set; } [CommandSwitch("--cap-add")] - public string? CapAdd { get; set; } + public virtual string? CapAdd { get; set; } [CommandSwitch("--cap-drop")] - public string? CapDrop { get; set; } + public virtual string? CapDrop { get; set; } [BooleanCommandSwitch("--detach")] - public bool? Detach { get; set; } + public virtual bool? Detach { get; set; } [CommandSwitch("--entrypoint")] - public string? Entrypoint { get; set; } + public virtual string? Entrypoint { get; set; } [CommandSwitch("--env")] - public string? Env { get; set; } + public virtual string? Env { get; set; } [BooleanCommandSwitch("--interactive")] - public bool? Interactive { get; set; } + public virtual bool? Interactive { get; set; } [CommandSwitch("--label")] - public string? Label { get; set; } + public virtual string? Label { get; set; } [CommandSwitch("--name")] - public string? Name { get; set; } + public virtual string? Name { get; set; } [BooleanCommandSwitch("--no-TTY")] - public bool? NoTty { get; set; } + public virtual bool? NoTty { get; set; } [BooleanCommandSwitch("--no-deps")] - public bool? NoDeps { get; set; } + public virtual bool? NoDeps { get; set; } [CommandSwitch("--publish")] - public string? Publish { get; set; } + public virtual string? Publish { get; set; } [BooleanCommandSwitch("--quiet-pull")] - public bool? QuietPull { get; set; } + public virtual bool? QuietPull { get; set; } [BooleanCommandSwitch("--remove-orphans")] - public bool? RemoveOrphans { get; set; } + public virtual bool? RemoveOrphans { get; set; } [BooleanCommandSwitch("--rm")] - public bool? Rm { get; set; } + public virtual bool? Rm { get; set; } [CommandSwitch("--service-ports")] - public string? ServicePorts { get; set; } + public virtual string? ServicePorts { get; set; } [BooleanCommandSwitch("--tty")] - public bool? Tty { get; set; } + public virtual bool? Tty { get; set; } [CommandSwitch("--use-aliases")] - public string? UseAliases { get; set; } + public virtual string? UseAliases { get; set; } [CommandSwitch("--user")] - public string? User { get; set; } + public virtual string? User { get; set; } [CommandSwitch("--volume")] - public string? Volume { get; set; } + public virtual string? Volume { get; set; } [CommandSwitch("--workdir")] - public string? Workdir { get; set; } + public virtual string? Workdir { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerComposeStopOptions.cs b/src/ModularPipelines.Docker/Options/DockerComposeStopOptions.cs index 565033df6f..9e9e4f69a1 100644 --- a/src/ModularPipelines.Docker/Options/DockerComposeStopOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerComposeStopOptions.cs @@ -11,5 +11,5 @@ public record DockerComposeStopOptions : DockerOptions public IEnumerable? Service { get; set; } [CommandSwitch("--timeout")] - public string? Timeout { get; set; } + public virtual string? Timeout { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerComposeUpOptions.cs b/src/ModularPipelines.Docker/Options/DockerComposeUpOptions.cs index 51bd8b93c8..d1468c986f 100644 --- a/src/ModularPipelines.Docker/Options/DockerComposeUpOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerComposeUpOptions.cs @@ -11,74 +11,74 @@ public record DockerComposeUpOptions : DockerOptions public IEnumerable? Service { get; set; } [BooleanCommandSwitch("--abort-on-container-exit")] - public bool? AbortOnContainerExit { get; set; } + public virtual bool? AbortOnContainerExit { get; set; } [BooleanCommandSwitch("--always-recreate-deps")] - public bool? AlwaysRecreateDeps { get; set; } + public virtual bool? AlwaysRecreateDeps { get; set; } [BooleanCommandSwitch("--attach")] - public bool? Attach { get; set; } + public virtual bool? Attach { get; set; } [CommandSwitch("--attach-dependencies")] - public string? AttachDependencies { get; set; } + public virtual string? AttachDependencies { get; set; } [BooleanCommandSwitch("--build")] - public bool? Build { get; set; } + public virtual bool? Build { get; set; } [BooleanCommandSwitch("--detach")] - public bool? Detach { get; set; } + public virtual bool? Detach { get; set; } [CommandSwitch("--exit-code-from")] - public string? ExitCodeFrom { get; set; } + public virtual string? ExitCodeFrom { get; set; } [BooleanCommandSwitch("--force-recreate")] - public bool? ForceRecreate { get; set; } + public virtual bool? ForceRecreate { get; set; } [CommandSwitch("--no-attach")] - public string? NoAttach { get; set; } + public virtual string? NoAttach { get; set; } [BooleanCommandSwitch("--no-build")] - public bool? NoBuild { get; set; } + public virtual bool? NoBuild { get; set; } [BooleanCommandSwitch("--no-color")] - public bool? NoColor { get; set; } + public virtual bool? NoColor { get; set; } [BooleanCommandSwitch("--no-deps")] - public bool? NoDeps { get; set; } + public virtual bool? NoDeps { get; set; } [CommandSwitch("--no-log-prefix")] - public string? NoLogPrefix { get; set; } + public virtual string? NoLogPrefix { get; set; } [BooleanCommandSwitch("--no-recreate")] - public bool? NoRecreate { get; set; } + public virtual bool? NoRecreate { get; set; } [BooleanCommandSwitch("--no-start")] - public bool? NoStart { get; set; } + public virtual bool? NoStart { get; set; } [BooleanCommandSwitch("--pull")] - public bool? Pull { get; set; } + public virtual bool? Pull { get; set; } [BooleanCommandSwitch("--quiet-pull")] - public bool? QuietPull { get; set; } + public virtual bool? QuietPull { get; set; } [BooleanCommandSwitch("--remove-orphans")] - public bool? RemoveOrphans { get; set; } + public virtual bool? RemoveOrphans { get; set; } [BooleanCommandSwitch("--renew-anon-volumes")] - public bool? RenewAnonVolumes { get; set; } + public virtual bool? RenewAnonVolumes { get; set; } [CommandSwitch("--scale")] - public string? Scale { get; set; } + public virtual string? Scale { get; set; } [CommandSwitch("--timeout")] - public string? Timeout { get; set; } + public virtual string? Timeout { get; set; } [BooleanCommandSwitch("--timestamps")] - public bool? Timestamps { get; set; } + public virtual bool? Timestamps { get; set; } [BooleanCommandSwitch("--wait")] - public bool? Wait { get; set; } + public virtual bool? Wait { get; set; } [CommandSwitch("--wait-timeout")] - public string? WaitTimeout { get; set; } + public virtual string? WaitTimeout { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerComposeVersionOptions.cs b/src/ModularPipelines.Docker/Options/DockerComposeVersionOptions.cs index 45b208dab2..6be600c718 100644 --- a/src/ModularPipelines.Docker/Options/DockerComposeVersionOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerComposeVersionOptions.cs @@ -8,8 +8,8 @@ namespace ModularPipelines.Docker.Options; public record DockerComposeVersionOptions : DockerOptions { [CommandSwitch("--format")] - public string? Format { get; set; } + public virtual string? Format { get; set; } [CommandSwitch("--short")] - public string? Short { get; set; } + public virtual string? Short { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerComposeWaitOptions.cs b/src/ModularPipelines.Docker/Options/DockerComposeWaitOptions.cs index 827587e0cd..1823ec6b73 100644 --- a/src/ModularPipelines.Docker/Options/DockerComposeWaitOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerComposeWaitOptions.cs @@ -8,5 +8,5 @@ namespace ModularPipelines.Docker.Options; public record DockerComposeWaitOptions : DockerOptions { [CommandSwitch("--down-project")] - public string? DownProject { get; set; } + public virtual string? DownProject { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerComposeWatchOptions.cs b/src/ModularPipelines.Docker/Options/DockerComposeWatchOptions.cs index 66e0f404be..911c159820 100644 --- a/src/ModularPipelines.Docker/Options/DockerComposeWatchOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerComposeWatchOptions.cs @@ -11,8 +11,8 @@ public record DockerComposeWatchOptions : DockerOptions public IEnumerable? Service { get; set; } [CommandSwitch("--no-up")] - public string? NoUp { get; set; } + public virtual string? NoUp { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerConfigCreateOptions.cs b/src/ModularPipelines.Docker/Options/DockerConfigCreateOptions.cs index 80ca7f7099..3c43750d4a 100644 --- a/src/ModularPipelines.Docker/Options/DockerConfigCreateOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerConfigCreateOptions.cs @@ -25,8 +25,8 @@ string file public string? File { get; set; } [CommandSwitch("--label")] - public string? Label { get; set; } + public virtual string? Label { get; set; } [CommandSwitch("--template-driver")] - public string? TemplateDriver { get; set; } + public virtual string? TemplateDriver { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerConfigInspectOptions.cs b/src/ModularPipelines.Docker/Options/DockerConfigInspectOptions.cs index a3ff1eb2be..28c687e8ba 100644 --- a/src/ModularPipelines.Docker/Options/DockerConfigInspectOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerConfigInspectOptions.cs @@ -19,8 +19,8 @@ IEnumerable config public IEnumerable? InspectConfig { get; set; } [CommandSwitch("--format")] - public string? Format { get; set; } + public virtual string? Format { get; set; } [CommandSwitch("--pretty")] - public string? Pretty { get; set; } + public virtual string? Pretty { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerConfigLsOptions.cs b/src/ModularPipelines.Docker/Options/DockerConfigLsOptions.cs index 65e6bee5ab..2ec6748a57 100644 --- a/src/ModularPipelines.Docker/Options/DockerConfigLsOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerConfigLsOptions.cs @@ -8,11 +8,11 @@ namespace ModularPipelines.Docker.Options; public record DockerConfigLsOptions : DockerOptions { [CommandSwitch("--filter")] - public string? Filter { get; set; } + public virtual string? Filter { get; set; } [CommandSwitch("--format")] - public string? Format { get; set; } + public virtual string? Format { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerContainerAttachOptions.cs b/src/ModularPipelines.Docker/Options/DockerContainerAttachOptions.cs index ca1921e222..fc0d3ea7ce 100644 --- a/src/ModularPipelines.Docker/Options/DockerContainerAttachOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerContainerAttachOptions.cs @@ -19,11 +19,11 @@ string container public string? Container { get; set; } [CommandSwitch("--detach-keys")] - public string? DetachKeys { get; set; } + public virtual string? DetachKeys { get; set; } [CommandSwitch("--no-stdin")] - public string? NoStdin { get; set; } + public virtual string? NoStdin { get; set; } [BooleanCommandSwitch("--sig-proxy")] - public bool? SigProxy { get; set; } + public virtual bool? SigProxy { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerContainerCommitOptions.cs b/src/ModularPipelines.Docker/Options/DockerContainerCommitOptions.cs index dffdb4a050..5257dd13a1 100644 --- a/src/ModularPipelines.Docker/Options/DockerContainerCommitOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerContainerCommitOptions.cs @@ -22,14 +22,14 @@ string container public string? Repository { get; set; } [CommandSwitch("--author")] - public string? Author { get; set; } + public virtual string? Author { get; set; } [CommandSwitch("--change")] - public string? Change { get; set; } + public virtual string? Change { get; set; } [CommandSwitch("--message")] - public string? Message { get; set; } + public virtual string? Message { get; set; } [BooleanCommandSwitch("--pause")] - public bool? Pause { get; set; } + public virtual bool? Pause { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerContainerCpOptions.cs b/src/ModularPipelines.Docker/Options/DockerContainerCpOptions.cs index 38deb3d4d6..7f5a3e20b2 100644 --- a/src/ModularPipelines.Docker/Options/DockerContainerCpOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerContainerCpOptions.cs @@ -40,11 +40,11 @@ string srcPath public string? SrcPath { get; set; } [CommandSwitch("--archive")] - public string? Archive { get; set; } + public virtual string? Archive { get; set; } [CommandSwitch("--follow-link")] - public string? FollowLink { get; set; } + public virtual string? FollowLink { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerContainerCreateOptions.cs b/src/ModularPipelines.Docker/Options/DockerContainerCreateOptions.cs index 9a54c4c676..c2ad6979b0 100644 --- a/src/ModularPipelines.Docker/Options/DockerContainerCreateOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerContainerCreateOptions.cs @@ -25,308 +25,308 @@ string image public IEnumerable? Arg { get; set; } [CommandSwitch("--add-host")] - public string? AddHost { get; set; } + public virtual string? AddHost { get; set; } [CommandSwitch("--annotation")] - public string? Annotation { get; set; } + public virtual string? Annotation { get; set; } [BooleanCommandSwitch("--attach")] - public bool? Attach { get; set; } + public virtual bool? Attach { get; set; } [CommandSwitch("--blkio-weight")] - public string? BlkioWeight { get; set; } + public virtual string? BlkioWeight { get; set; } [CommandSwitch("--blkio-weight-device")] - public string? BlkioWeightDevice { get; set; } + public virtual string? BlkioWeightDevice { get; set; } [CommandSwitch("--cap-add")] - public string? CapAdd { get; set; } + public virtual string? CapAdd { get; set; } [CommandSwitch("--cap-drop")] - public string? CapDrop { get; set; } + public virtual string? CapDrop { get; set; } [CommandSwitch("--cgroup-parent")] - public string? CgroupParent { get; set; } + public virtual string? CgroupParent { get; set; } [CommandSwitch("--cgroupns")] - public string? Cgroupns { get; set; } + public virtual string? Cgroupns { get; set; } [CommandSwitch("--cidfile")] - public string? Cidfile { get; set; } + public virtual string? Cidfile { get; set; } [CommandSwitch("--cpu-count")] - public string? CpuCount { get; set; } + public virtual string? CpuCount { get; set; } [CommandSwitch("--cpu-percent")] - public string? CpuPercent { get; set; } + public virtual string? CpuPercent { get; set; } [CommandSwitch("--cpu-period")] - public string? CpuPeriod { get; set; } + public virtual string? CpuPeriod { get; set; } [CommandSwitch("--cpu-quota")] - public string? CpuQuota { get; set; } + public virtual string? CpuQuota { get; set; } [CommandSwitch("--cpu-rt-period")] - public string? CpuRtPeriod { get; set; } + public virtual string? CpuRtPeriod { get; set; } [CommandSwitch("--cpu-rt-runtime")] - public string? CpuRtRuntime { get; set; } + public virtual string? CpuRtRuntime { get; set; } [CommandSwitch("--cpu-shares")] - public string? CpuShares { get; set; } + public virtual string? CpuShares { get; set; } [CommandSwitch("--cpus")] - public string? Cpus { get; set; } + public virtual string? Cpus { get; set; } [CommandSwitch("--cpuset-cpus")] - public string? CpusetCpus { get; set; } + public virtual string? CpusetCpus { get; set; } [CommandSwitch("--cpuset-mems")] - public string? CpusetMems { get; set; } + public virtual string? CpusetMems { get; set; } [CommandSwitch("--device")] - public string? Device { get; set; } + public virtual string? Device { get; set; } [CommandSwitch("--device-cgroup-rule")] - public string? DeviceCgroupRule { get; set; } + public virtual string? DeviceCgroupRule { get; set; } [CommandSwitch("--device-read-bps")] - public string? DeviceReadBps { get; set; } + public virtual string? DeviceReadBps { get; set; } [CommandSwitch("--device-read-iops")] - public string? DeviceReadIops { get; set; } + public virtual string? DeviceReadIops { get; set; } [CommandSwitch("--device-write-bps")] - public string? DeviceWriteBps { get; set; } + public virtual string? DeviceWriteBps { get; set; } [CommandSwitch("--device-write-iops")] - public string? DeviceWriteIops { get; set; } + public virtual string? DeviceWriteIops { get; set; } [BooleanCommandSwitch("--disable-content-trust")] - public bool? DisableContentTrust { get; set; } + public virtual bool? DisableContentTrust { get; set; } [CommandSwitch("--dns")] - public string? Dns { get; set; } + public virtual string? Dns { get; set; } [CommandSwitch("--dns-opt")] - public string? DnsOpt { get; set; } + public virtual string? DnsOpt { get; set; } [CommandSwitch("--dns-option")] - public string? DnsOption { get; set; } + public virtual string? DnsOption { get; set; } [CommandSwitch("--dns-search")] - public string? DnsSearch { get; set; } + public virtual string? DnsSearch { get; set; } [CommandSwitch("--domainname")] - public string? Domainname { get; set; } + public virtual string? Domainname { get; set; } [CommandSwitch("--entrypoint")] - public string? Entrypoint { get; set; } + public virtual string? Entrypoint { get; set; } [CommandSwitch("--env")] - public string? Env { get; set; } + public virtual string? Env { get; set; } [CommandSwitch("--env-file")] - public string? EnvFile { get; set; } + public virtual string? EnvFile { get; set; } [CommandSwitch("--expose")] - public string? Expose { get; set; } + public virtual string? Expose { get; set; } [CommandSwitch("--gpus")] - public string? Gpus { get; set; } + public virtual string? Gpus { get; set; } [CommandSwitch("--group-add")] - public string? GroupAdd { get; set; } + public virtual string? GroupAdd { get; set; } [CommandSwitch("--health-cmd")] - public string? HealthCmd { get; set; } + public virtual string? HealthCmd { get; set; } [CommandSwitch("--health-interval")] - public string? HealthInterval { get; set; } + public virtual string? HealthInterval { get; set; } [CommandSwitch("--health-retries")] - public string? HealthRetries { get; set; } + public virtual string? HealthRetries { get; set; } [CommandSwitch("--health-start-interval")] - public string? HealthStartInterval { get; set; } + public virtual string? HealthStartInterval { get; set; } [CommandSwitch("--health-start-period")] - public string? HealthStartPeriod { get; set; } + public virtual string? HealthStartPeriod { get; set; } [CommandSwitch("--health-timeout")] - public string? HealthTimeout { get; set; } + public virtual string? HealthTimeout { get; set; } [CommandSwitch("--hostname")] - public string? Hostname { get; set; } + public virtual string? Hostname { get; set; } [CommandSwitch("--init")] - public string? Init { get; set; } + public virtual string? Init { get; set; } [BooleanCommandSwitch("--interactive")] - public bool? Interactive { get; set; } + public virtual bool? Interactive { get; set; } [CommandSwitch("--io-maxbandwidth")] - public string? IoMaxbandwidth { get; set; } + public virtual string? IoMaxbandwidth { get; set; } [CommandSwitch("--io-maxiops")] - public string? IoMaxiops { get; set; } + public virtual string? IoMaxiops { get; set; } [CommandSwitch("--ip")] - public string? Ip { get; set; } + public virtual string? Ip { get; set; } [CommandSwitch("--ip6")] - public string? Ip6 { get; set; } + public virtual string? Ip6 { get; set; } [CommandSwitch("--ipc")] - public string? Ipc { get; set; } + public virtual string? Ipc { get; set; } [BooleanCommandSwitch("--isolation")] - public bool? Isolation { get; set; } + public virtual bool? Isolation { get; set; } [CommandSwitch("--kernel-memory")] - public string? KernelMemory { get; set; } + public virtual string? KernelMemory { get; set; } [CommandSwitch("--label")] - public string? Label { get; set; } + public virtual string? Label { get; set; } [CommandSwitch("--label-file")] - public string? LabelFile { get; set; } + public virtual string? LabelFile { get; set; } [CommandSwitch("--link")] - public string? Link { get; set; } + public virtual string? Link { get; set; } [CommandSwitch("--link-local-ip")] - public string? LinkLocalIp { get; set; } + public virtual string? LinkLocalIp { get; set; } [CommandSwitch("--log-driver")] - public string? LogDriver { get; set; } + public virtual string? LogDriver { get; set; } [CommandSwitch("--log-opt")] - public string? LogOpt { get; set; } + public virtual string? LogOpt { get; set; } [CommandSwitch("--mac-address")] - public string? MacAddress { get; set; } + public virtual string? MacAddress { get; set; } [CommandSwitch("--memory")] - public string? Memory { get; set; } + public virtual string? Memory { get; set; } [CommandSwitch("--memory-reservation")] - public string? MemoryReservation { get; set; } + public virtual string? MemoryReservation { get; set; } [CommandSwitch("--memory-swap")] - public string? MemorySwap { get; set; } + public virtual string? MemorySwap { get; set; } [CommandSwitch("--memory-swappiness")] - public int? MemorySwappiness { get; set; } + public virtual int? MemorySwappiness { get; set; } [CommandSwitch("--mount")] - public string? Mount { get; set; } + public virtual string? Mount { get; set; } [CommandSwitch("--name")] - public string? Name { get; set; } + public virtual string? Name { get; set; } [CommandSwitch("--net")] - public string? Net { get; set; } + public virtual string? Net { get; set; } [CommandSwitch("--net-alias")] - public string? NetAlias { get; set; } + public virtual string? NetAlias { get; set; } [CommandSwitch("--network")] - public string? Network { get; set; } + public virtual string? Network { get; set; } [CommandSwitch("--network-alias")] - public string? NetworkAlias { get; set; } + public virtual string? NetworkAlias { get; set; } [BooleanCommandSwitch("--no-healthcheck")] - public bool? NoHealthcheck { get; set; } + public virtual bool? NoHealthcheck { get; set; } [BooleanCommandSwitch("--oom-kill-disable")] - public bool? OomKillDisable { get; set; } + public virtual bool? OomKillDisable { get; set; } [CommandSwitch("--oom-score-adj")] - public string? OomScoreAdj { get; set; } + public virtual string? OomScoreAdj { get; set; } [CommandSwitch("--pid")] - public string? Pid { get; set; } + public virtual string? Pid { get; set; } [CommandSwitch("--pids-limit")] - public string? PidsLimit { get; set; } + public virtual string? PidsLimit { get; set; } [CommandSwitch("--platform")] - public string? Platform { get; set; } + public virtual string? Platform { get; set; } [BooleanCommandSwitch("--privileged")] - public bool? Privileged { get; set; } + public virtual bool? Privileged { get; set; } [CommandSwitch("--publish")] - public string? Publish { get; set; } + public virtual string? Publish { get; set; } [CommandSwitch("--publish-all")] - public string? PublishAll { get; set; } + public virtual string? PublishAll { get; set; } [BooleanCommandSwitch("--pull")] - public bool? Pull { get; set; } + public virtual bool? Pull { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } [BooleanCommandSwitch("--read-only")] - public bool? ReadOnly { get; set; } + public virtual bool? ReadOnly { get; set; } [CommandSwitch("--restart")] - public string? Restart { get; set; } + public virtual string? Restart { get; set; } [BooleanCommandSwitch("--rm")] - public bool? Rm { get; set; } + public virtual bool? Rm { get; set; } [CommandSwitch("--runtime")] - public string? Runtime { get; set; } + public virtual string? Runtime { get; set; } [CommandSwitch("--security-opt")] - public string? SecurityOpt { get; set; } + public virtual string? SecurityOpt { get; set; } [CommandSwitch("--shm-size")] - public string? ShmSize { get; set; } + public virtual string? ShmSize { get; set; } [CommandSwitch("--stop-signal")] - public string? StopSignal { get; set; } + public virtual string? StopSignal { get; set; } [CommandSwitch("--stop-timeout")] - public string? StopTimeout { get; set; } + public virtual string? StopTimeout { get; set; } [CommandSwitch("--storage-opt")] - public string? StorageOpt { get; set; } + public virtual string? StorageOpt { get; set; } [CommandSwitch("--sysctl")] - public string? Sysctl { get; set; } + public virtual string? Sysctl { get; set; } [CommandSwitch("--tmpfs")] - public string? Tmpfs { get; set; } + public virtual string? Tmpfs { get; set; } [CommandSwitch("--tty")] - public string? Tty { get; set; } + public virtual string? Tty { get; set; } [CommandSwitch("--ulimit")] - public string? Ulimit { get; set; } + public virtual string? Ulimit { get; set; } [CommandSwitch("--user")] - public string? User { get; set; } + public virtual string? User { get; set; } [CommandSwitch("--userns")] - public string? Userns { get; set; } + public virtual string? Userns { get; set; } [CommandSwitch("--uts")] - public string? Uts { get; set; } + public virtual string? Uts { get; set; } [CommandSwitch("--volume")] - public string? Volume { get; set; } + public virtual string? Volume { get; set; } [CommandSwitch("--volume-driver")] - public string? VolumeDriver { get; set; } + public virtual string? VolumeDriver { get; set; } [CommandSwitch("--volumes-from")] - public string? VolumesFrom { get; set; } + public virtual string? VolumesFrom { get; set; } [CommandSwitch("--workdir")] - public string? Workdir { get; set; } + public virtual string? Workdir { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerContainerExecOptions.cs b/src/ModularPipelines.Docker/Options/DockerContainerExecOptions.cs index d4be8edebb..ce998cee21 100644 --- a/src/ModularPipelines.Docker/Options/DockerContainerExecOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerContainerExecOptions.cs @@ -28,29 +28,29 @@ string command public IEnumerable? Arg { get; set; } [BooleanCommandSwitch("--detach")] - public bool? Detach { get; set; } + public virtual bool? Detach { get; set; } [CommandSwitch("--detach-keys")] - public string? DetachKeys { get; set; } + public virtual string? DetachKeys { get; set; } [CommandSwitch("--env")] - public string? Env { get; set; } + public virtual string? Env { get; set; } [CommandSwitch("--env-file")] - public string? EnvFile { get; set; } + public virtual string? EnvFile { get; set; } [BooleanCommandSwitch("--interactive")] - public bool? Interactive { get; set; } + public virtual bool? Interactive { get; set; } [BooleanCommandSwitch("--privileged")] - public bool? Privileged { get; set; } + public virtual bool? Privileged { get; set; } [CommandSwitch("--tty")] - public string? Tty { get; set; } + public virtual string? Tty { get; set; } [CommandSwitch("--user")] - public string? User { get; set; } + public virtual string? User { get; set; } [CommandSwitch("--workdir")] - public string? Workdir { get; set; } + public virtual string? Workdir { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerContainerExportOptions.cs b/src/ModularPipelines.Docker/Options/DockerContainerExportOptions.cs index 5090d0fe62..95d12964ee 100644 --- a/src/ModularPipelines.Docker/Options/DockerContainerExportOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerContainerExportOptions.cs @@ -19,5 +19,5 @@ string container public string? Container { get; set; } [CommandSwitch("--output")] - public string? Output { get; set; } + public virtual string? Output { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerContainerInspectOptions.cs b/src/ModularPipelines.Docker/Options/DockerContainerInspectOptions.cs index 4bfde97251..608e4716dd 100644 --- a/src/ModularPipelines.Docker/Options/DockerContainerInspectOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerContainerInspectOptions.cs @@ -19,8 +19,8 @@ IEnumerable container public IEnumerable? Container { get; set; } [CommandSwitch("--format")] - public string? Format { get; set; } + public virtual string? Format { get; set; } [CommandSwitch("--size")] - public string? Size { get; set; } + public virtual string? Size { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerContainerKillOptions.cs b/src/ModularPipelines.Docker/Options/DockerContainerKillOptions.cs index becb484eaf..9ed6a2c03a 100644 --- a/src/ModularPipelines.Docker/Options/DockerContainerKillOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerContainerKillOptions.cs @@ -19,5 +19,5 @@ IEnumerable container public IEnumerable? Container { get; set; } [CommandSwitch("--signal")] - public string? Signal { get; set; } + public virtual string? Signal { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerContainerLogsOptions.cs b/src/ModularPipelines.Docker/Options/DockerContainerLogsOptions.cs index 7025683045..8d2e66f34f 100644 --- a/src/ModularPipelines.Docker/Options/DockerContainerLogsOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerContainerLogsOptions.cs @@ -19,20 +19,20 @@ string container public string? Container { get; set; } [BooleanCommandSwitch("--details")] - public bool? Details { get; set; } + public virtual bool? Details { get; set; } [BooleanCommandSwitch("--follow")] - public bool? Follow { get; set; } + public virtual bool? Follow { get; set; } [CommandSwitch("--since")] - public string? Since { get; set; } + public virtual string? Since { get; set; } [CommandSwitch("--tail")] - public string? Tail { get; set; } + public virtual string? Tail { get; set; } [BooleanCommandSwitch("--timestamps")] - public bool? Timestamps { get; set; } + public virtual bool? Timestamps { get; set; } [CommandSwitch("--until")] - public string? Until { get; set; } + public virtual string? Until { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerContainerLsOptions.cs b/src/ModularPipelines.Docker/Options/DockerContainerLsOptions.cs index 3c20b412f1..18a4f1516f 100644 --- a/src/ModularPipelines.Docker/Options/DockerContainerLsOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerContainerLsOptions.cs @@ -8,26 +8,26 @@ namespace ModularPipelines.Docker.Options; public record DockerContainerLsOptions : DockerOptions { [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } [CommandSwitch("--filter")] - public string? Filter { get; set; } + public virtual string? Filter { get; set; } [CommandSwitch("--format")] - public string? Format { get; set; } + public virtual string? Format { get; set; } [CommandSwitch("--last")] - public int? Last { get; set; } + public virtual int? Last { get; set; } [CommandSwitch("--latest")] - public string? Latest { get; set; } + public virtual string? Latest { get; set; } [BooleanCommandSwitch("--no-trunc")] - public bool? NoTrunc { get; set; } + public virtual bool? NoTrunc { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } [CommandSwitch("--size")] - public string? Size { get; set; } + public virtual string? Size { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerContainerPruneOptions.cs b/src/ModularPipelines.Docker/Options/DockerContainerPruneOptions.cs index 884e0c4f87..3f42e83202 100644 --- a/src/ModularPipelines.Docker/Options/DockerContainerPruneOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerContainerPruneOptions.cs @@ -8,8 +8,8 @@ namespace ModularPipelines.Docker.Options; public record DockerContainerPruneOptions : DockerOptions { [CommandSwitch("--filter")] - public string? Filter { get; set; } + public virtual string? Filter { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerContainerRestartOptions.cs b/src/ModularPipelines.Docker/Options/DockerContainerRestartOptions.cs index e42a0435ed..39efcfb477 100644 --- a/src/ModularPipelines.Docker/Options/DockerContainerRestartOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerContainerRestartOptions.cs @@ -19,8 +19,8 @@ IEnumerable container public IEnumerable? Container { get; set; } [CommandSwitch("--signal")] - public string? Signal { get; set; } + public virtual string? Signal { get; set; } [CommandSwitch("--time")] - public string? Time { get; set; } + public virtual string? Time { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerContainerRmOptions.cs b/src/ModularPipelines.Docker/Options/DockerContainerRmOptions.cs index 20028c5535..3cb0e6b707 100644 --- a/src/ModularPipelines.Docker/Options/DockerContainerRmOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerContainerRmOptions.cs @@ -19,11 +19,11 @@ IEnumerable container public IEnumerable? Container { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [CommandSwitch("--link")] - public string? Link { get; set; } + public virtual string? Link { get; set; } [CommandSwitch("--volumes")] - public string? Volumes { get; set; } + public virtual string? Volumes { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerContainerRunOptions.cs b/src/ModularPipelines.Docker/Options/DockerContainerRunOptions.cs index ea10611736..35ac51c043 100644 --- a/src/ModularPipelines.Docker/Options/DockerContainerRunOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerContainerRunOptions.cs @@ -25,317 +25,317 @@ string image public IEnumerable? Arg { get; set; } [CommandSwitch("--add-host")] - public string? AddHost { get; set; } + public virtual string? AddHost { get; set; } [CommandSwitch("--annotation")] - public string? Annotation { get; set; } + public virtual string? Annotation { get; set; } [BooleanCommandSwitch("--attach")] - public bool? Attach { get; set; } + public virtual bool? Attach { get; set; } [CommandSwitch("--blkio-weight")] - public string? BlkioWeight { get; set; } + public virtual string? BlkioWeight { get; set; } [CommandSwitch("--blkio-weight-device")] - public string? BlkioWeightDevice { get; set; } + public virtual string? BlkioWeightDevice { get; set; } [CommandSwitch("--cap-add")] - public string? CapAdd { get; set; } + public virtual string? CapAdd { get; set; } [CommandSwitch("--cap-drop")] - public string? CapDrop { get; set; } + public virtual string? CapDrop { get; set; } [CommandSwitch("--cgroup-parent")] - public string? CgroupParent { get; set; } + public virtual string? CgroupParent { get; set; } [CommandSwitch("--cgroupns")] - public string? Cgroupns { get; set; } + public virtual string? Cgroupns { get; set; } [CommandSwitch("--cidfile")] - public string? Cidfile { get; set; } + public virtual string? Cidfile { get; set; } [CommandSwitch("--cpu-count")] - public string? CpuCount { get; set; } + public virtual string? CpuCount { get; set; } [CommandSwitch("--cpu-percent")] - public string? CpuPercent { get; set; } + public virtual string? CpuPercent { get; set; } [CommandSwitch("--cpu-period")] - public string? CpuPeriod { get; set; } + public virtual string? CpuPeriod { get; set; } [CommandSwitch("--cpu-quota")] - public string? CpuQuota { get; set; } + public virtual string? CpuQuota { get; set; } [CommandSwitch("--cpu-rt-period")] - public string? CpuRtPeriod { get; set; } + public virtual string? CpuRtPeriod { get; set; } [CommandSwitch("--cpu-rt-runtime")] - public string? CpuRtRuntime { get; set; } + public virtual string? CpuRtRuntime { get; set; } [CommandSwitch("--cpu-shares")] - public string? CpuShares { get; set; } + public virtual string? CpuShares { get; set; } [CommandSwitch("--cpus")] - public string? Cpus { get; set; } + public virtual string? Cpus { get; set; } [CommandSwitch("--cpuset-cpus")] - public string? CpusetCpus { get; set; } + public virtual string? CpusetCpus { get; set; } [CommandSwitch("--cpuset-mems")] - public string? CpusetMems { get; set; } + public virtual string? CpusetMems { get; set; } [BooleanCommandSwitch("--detach")] - public bool? Detach { get; set; } + public virtual bool? Detach { get; set; } [CommandSwitch("--detach-keys")] - public string? DetachKeys { get; set; } + public virtual string? DetachKeys { get; set; } [CommandSwitch("--device")] - public string? Device { get; set; } + public virtual string? Device { get; set; } [CommandSwitch("--device-cgroup-rule")] - public string? DeviceCgroupRule { get; set; } + public virtual string? DeviceCgroupRule { get; set; } [CommandSwitch("--device-read-bps")] - public string? DeviceReadBps { get; set; } + public virtual string? DeviceReadBps { get; set; } [CommandSwitch("--device-read-iops")] - public string? DeviceReadIops { get; set; } + public virtual string? DeviceReadIops { get; set; } [CommandSwitch("--device-write-bps")] - public string? DeviceWriteBps { get; set; } + public virtual string? DeviceWriteBps { get; set; } [CommandSwitch("--device-write-iops")] - public string? DeviceWriteIops { get; set; } + public virtual string? DeviceWriteIops { get; set; } [BooleanCommandSwitch("--disable-content-trust")] - public bool? DisableContentTrust { get; set; } + public virtual bool? DisableContentTrust { get; set; } [CommandSwitch("--dns")] - public string? Dns { get; set; } + public virtual string? Dns { get; set; } [CommandSwitch("--dns-opt")] - public string? DnsOpt { get; set; } + public virtual string? DnsOpt { get; set; } [CommandSwitch("--dns-option")] - public string? DnsOption { get; set; } + public virtual string? DnsOption { get; set; } [CommandSwitch("--dns-search")] - public string? DnsSearch { get; set; } + public virtual string? DnsSearch { get; set; } [CommandSwitch("--domainname")] - public string? Domainname { get; set; } + public virtual string? Domainname { get; set; } [CommandSwitch("--entrypoint")] - public string? Entrypoint { get; set; } + public virtual string? Entrypoint { get; set; } [CommandSwitch("--env")] - public string? Env { get; set; } + public virtual string? Env { get; set; } [CommandSwitch("--env-file")] - public string? EnvFile { get; set; } + public virtual string? EnvFile { get; set; } [CommandSwitch("--expose")] - public string? Expose { get; set; } + public virtual string? Expose { get; set; } [CommandSwitch("--gpus")] - public string? Gpus { get; set; } + public virtual string? Gpus { get; set; } [CommandSwitch("--group-add")] - public string? GroupAdd { get; set; } + public virtual string? GroupAdd { get; set; } [CommandSwitch("--health-cmd")] - public string? HealthCmd { get; set; } + public virtual string? HealthCmd { get; set; } [CommandSwitch("--health-interval")] - public string? HealthInterval { get; set; } + public virtual string? HealthInterval { get; set; } [CommandSwitch("--health-retries")] - public string? HealthRetries { get; set; } + public virtual string? HealthRetries { get; set; } [CommandSwitch("--health-start-interval")] - public string? HealthStartInterval { get; set; } + public virtual string? HealthStartInterval { get; set; } [CommandSwitch("--health-start-period")] - public string? HealthStartPeriod { get; set; } + public virtual string? HealthStartPeriod { get; set; } [CommandSwitch("--health-timeout")] - public string? HealthTimeout { get; set; } + public virtual string? HealthTimeout { get; set; } [CommandSwitch("--hostname")] - public string? Hostname { get; set; } + public virtual string? Hostname { get; set; } [CommandSwitch("--init")] - public string? Init { get; set; } + public virtual string? Init { get; set; } [BooleanCommandSwitch("--interactive")] - public bool? Interactive { get; set; } + public virtual bool? Interactive { get; set; } [CommandSwitch("--io-maxbandwidth")] - public string? IoMaxbandwidth { get; set; } + public virtual string? IoMaxbandwidth { get; set; } [CommandSwitch("--io-maxiops")] - public string? IoMaxiops { get; set; } + public virtual string? IoMaxiops { get; set; } [CommandSwitch("--ip")] - public string? Ip { get; set; } + public virtual string? Ip { get; set; } [CommandSwitch("--ip6")] - public string? Ip6 { get; set; } + public virtual string? Ip6 { get; set; } [CommandSwitch("--ipc")] - public string? Ipc { get; set; } + public virtual string? Ipc { get; set; } [BooleanCommandSwitch("--isolation")] - public bool? Isolation { get; set; } + public virtual bool? Isolation { get; set; } [CommandSwitch("--kernel-memory")] - public string? KernelMemory { get; set; } + public virtual string? KernelMemory { get; set; } [CommandSwitch("--label")] - public string? Label { get; set; } + public virtual string? Label { get; set; } [CommandSwitch("--label-file")] - public string? LabelFile { get; set; } + public virtual string? LabelFile { get; set; } [CommandSwitch("--link")] - public string? Link { get; set; } + public virtual string? Link { get; set; } [CommandSwitch("--link-local-ip")] - public string? LinkLocalIp { get; set; } + public virtual string? LinkLocalIp { get; set; } [CommandSwitch("--log-driver")] - public string? LogDriver { get; set; } + public virtual string? LogDriver { get; set; } [CommandSwitch("--log-opt")] - public string? LogOpt { get; set; } + public virtual string? LogOpt { get; set; } [CommandSwitch("--mac-address")] - public string? MacAddress { get; set; } + public virtual string? MacAddress { get; set; } [CommandSwitch("--memory")] - public string? Memory { get; set; } + public virtual string? Memory { get; set; } [CommandSwitch("--memory-reservation")] - public string? MemoryReservation { get; set; } + public virtual string? MemoryReservation { get; set; } [CommandSwitch("--memory-swap")] - public string? MemorySwap { get; set; } + public virtual string? MemorySwap { get; set; } [CommandSwitch("--memory-swappiness")] - public int? MemorySwappiness { get; set; } + public virtual int? MemorySwappiness { get; set; } [CommandSwitch("--mount")] - public string? Mount { get; set; } + public virtual string? Mount { get; set; } [CommandSwitch("--name")] - public string? Name { get; set; } + public virtual string? Name { get; set; } [CommandSwitch("--net")] - public string? Net { get; set; } + public virtual string? Net { get; set; } [CommandSwitch("--net-alias")] - public string? NetAlias { get; set; } + public virtual string? NetAlias { get; set; } [CommandSwitch("--network")] - public string? Network { get; set; } + public virtual string? Network { get; set; } [CommandSwitch("--network-alias")] - public string? NetworkAlias { get; set; } + public virtual string? NetworkAlias { get; set; } [BooleanCommandSwitch("--no-healthcheck")] - public bool? NoHealthcheck { get; set; } + public virtual bool? NoHealthcheck { get; set; } [BooleanCommandSwitch("--oom-kill-disable")] - public bool? OomKillDisable { get; set; } + public virtual bool? OomKillDisable { get; set; } [CommandSwitch("--oom-score-adj")] - public string? OomScoreAdj { get; set; } + public virtual string? OomScoreAdj { get; set; } [CommandSwitch("--pid")] - public string? Pid { get; set; } + public virtual string? Pid { get; set; } [CommandSwitch("--pids-limit")] - public string? PidsLimit { get; set; } + public virtual string? PidsLimit { get; set; } [CommandSwitch("--platform")] - public string? Platform { get; set; } + public virtual string? Platform { get; set; } [BooleanCommandSwitch("--privileged")] - public bool? Privileged { get; set; } + public virtual bool? Privileged { get; set; } [CommandSwitch("--publish")] - public string? Publish { get; set; } + public virtual string? Publish { get; set; } [CommandSwitch("--publish-all")] - public string? PublishAll { get; set; } + public virtual string? PublishAll { get; set; } [BooleanCommandSwitch("--pull")] - public bool? Pull { get; set; } + public virtual bool? Pull { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } [BooleanCommandSwitch("--read-only")] - public bool? ReadOnly { get; set; } + public virtual bool? ReadOnly { get; set; } [CommandSwitch("--restart")] - public string? Restart { get; set; } + public virtual string? Restart { get; set; } [BooleanCommandSwitch("--rm")] - public bool? Rm { get; set; } + public virtual bool? Rm { get; set; } [CommandSwitch("--runtime")] - public string? Runtime { get; set; } + public virtual string? Runtime { get; set; } [CommandSwitch("--security-opt")] - public string? SecurityOpt { get; set; } + public virtual string? SecurityOpt { get; set; } [CommandSwitch("--shm-size")] - public string? ShmSize { get; set; } + public virtual string? ShmSize { get; set; } [BooleanCommandSwitch("--sig-proxy")] - public bool? SigProxy { get; set; } + public virtual bool? SigProxy { get; set; } [CommandSwitch("--stop-signal")] - public string? StopSignal { get; set; } + public virtual string? StopSignal { get; set; } [CommandSwitch("--stop-timeout")] - public string? StopTimeout { get; set; } + public virtual string? StopTimeout { get; set; } [CommandSwitch("--storage-opt")] - public string? StorageOpt { get; set; } + public virtual string? StorageOpt { get; set; } [CommandSwitch("--sysctl")] - public string? Sysctl { get; set; } + public virtual string? Sysctl { get; set; } [CommandSwitch("--tmpfs")] - public string? Tmpfs { get; set; } + public virtual string? Tmpfs { get; set; } [CommandSwitch("--tty")] - public string? Tty { get; set; } + public virtual string? Tty { get; set; } [CommandSwitch("--ulimit")] - public string? Ulimit { get; set; } + public virtual string? Ulimit { get; set; } [CommandSwitch("--user")] - public string? User { get; set; } + public virtual string? User { get; set; } [CommandSwitch("--userns")] - public string? Userns { get; set; } + public virtual string? Userns { get; set; } [CommandSwitch("--uts")] - public string? Uts { get; set; } + public virtual string? Uts { get; set; } [CommandSwitch("--volume")] - public string? Volume { get; set; } + public virtual string? Volume { get; set; } [CommandSwitch("--volume-driver")] - public string? VolumeDriver { get; set; } + public virtual string? VolumeDriver { get; set; } [CommandSwitch("--volumes-from")] - public string? VolumesFrom { get; set; } + public virtual string? VolumesFrom { get; set; } [CommandSwitch("--workdir")] - public string? Workdir { get; set; } + public virtual string? Workdir { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerContainerStartOptions.cs b/src/ModularPipelines.Docker/Options/DockerContainerStartOptions.cs index f6dacf32f9..59d5d718f0 100644 --- a/src/ModularPipelines.Docker/Options/DockerContainerStartOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerContainerStartOptions.cs @@ -19,17 +19,17 @@ IEnumerable container public IEnumerable? Container { get; set; } [BooleanCommandSwitch("--attach")] - public bool? Attach { get; set; } + public virtual bool? Attach { get; set; } [CommandSwitch("--checkpoint")] - public string? Checkpoint { get; set; } + public virtual string? Checkpoint { get; set; } [CommandSwitch("--checkpoint-dir")] - public string? CheckpointDir { get; set; } + public virtual string? CheckpointDir { get; set; } [CommandSwitch("--detach-keys")] - public string? DetachKeys { get; set; } + public virtual string? DetachKeys { get; set; } [BooleanCommandSwitch("--interactive")] - public bool? Interactive { get; set; } + public virtual bool? Interactive { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerContainerStatsOptions.cs b/src/ModularPipelines.Docker/Options/DockerContainerStatsOptions.cs index 3689c35a2e..f869fdec11 100644 --- a/src/ModularPipelines.Docker/Options/DockerContainerStatsOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerContainerStatsOptions.cs @@ -11,14 +11,14 @@ public record DockerContainerStatsOptions : DockerOptions public IEnumerable? Container { get; set; } [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } [CommandSwitch("--format")] - public string? Format { get; set; } + public virtual string? Format { get; set; } [CommandSwitch("--no-stream")] - public string? NoStream { get; set; } + public virtual string? NoStream { get; set; } [BooleanCommandSwitch("--no-trunc")] - public bool? NoTrunc { get; set; } + public virtual bool? NoTrunc { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerContainerStopOptions.cs b/src/ModularPipelines.Docker/Options/DockerContainerStopOptions.cs index 16a539c767..69fddb7861 100644 --- a/src/ModularPipelines.Docker/Options/DockerContainerStopOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerContainerStopOptions.cs @@ -19,8 +19,8 @@ IEnumerable container public IEnumerable? Container { get; set; } [CommandSwitch("--signal")] - public string? Signal { get; set; } + public virtual string? Signal { get; set; } [CommandSwitch("--time")] - public string? Time { get; set; } + public virtual string? Time { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerContainerUpdateOptions.cs b/src/ModularPipelines.Docker/Options/DockerContainerUpdateOptions.cs index 9bdf1ad197..e109c05f00 100644 --- a/src/ModularPipelines.Docker/Options/DockerContainerUpdateOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerContainerUpdateOptions.cs @@ -19,47 +19,47 @@ IEnumerable container public IEnumerable? Container { get; set; } [CommandSwitch("--blkio-weight")] - public string? BlkioWeight { get; set; } + public virtual string? BlkioWeight { get; set; } [CommandSwitch("--cpu-period")] - public string? CpuPeriod { get; set; } + public virtual string? CpuPeriod { get; set; } [CommandSwitch("--cpu-quota")] - public string? CpuQuota { get; set; } + public virtual string? CpuQuota { get; set; } [CommandSwitch("--cpu-rt-period")] - public string? CpuRtPeriod { get; set; } + public virtual string? CpuRtPeriod { get; set; } [CommandSwitch("--cpu-rt-runtime")] - public string? CpuRtRuntime { get; set; } + public virtual string? CpuRtRuntime { get; set; } [CommandSwitch("--cpu-shares")] - public string? CpuShares { get; set; } + public virtual string? CpuShares { get; set; } [CommandSwitch("--cpus")] - public string? Cpus { get; set; } + public virtual string? Cpus { get; set; } [CommandSwitch("--cpuset-cpus")] - public string? CpusetCpus { get; set; } + public virtual string? CpusetCpus { get; set; } [CommandSwitch("--cpuset-mems")] - public string? CpusetMems { get; set; } + public virtual string? CpusetMems { get; set; } [CommandSwitch("--kernel-memory")] - public string? KernelMemory { get; set; } + public virtual string? KernelMemory { get; set; } [CommandSwitch("--memory")] - public string? Memory { get; set; } + public virtual string? Memory { get; set; } [CommandSwitch("--memory-reservation")] - public string? MemoryReservation { get; set; } + public virtual string? MemoryReservation { get; set; } [CommandSwitch("--memory-swap")] - public string? MemorySwap { get; set; } + public virtual string? MemorySwap { get; set; } [CommandSwitch("--pids-limit")] - public string? PidsLimit { get; set; } + public virtual string? PidsLimit { get; set; } [CommandSwitch("--restart")] - public string? Restart { get; set; } + public virtual string? Restart { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerContextCreateOptions.cs b/src/ModularPipelines.Docker/Options/DockerContextCreateOptions.cs index 7dae504a39..7099baa724 100644 --- a/src/ModularPipelines.Docker/Options/DockerContextCreateOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerContextCreateOptions.cs @@ -19,11 +19,11 @@ string context public string? CreateContext { get; set; } [CommandSwitch("--description")] - public string? Description { get; set; } + public virtual string? Description { get; set; } [CommandSwitch("--docker")] - public string? Docker { get; set; } + public virtual string? Docker { get; set; } [CommandSwitch("--from")] - public string? From { get; set; } + public virtual string? From { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerContextInspectOptions.cs b/src/ModularPipelines.Docker/Options/DockerContextInspectOptions.cs index 907e5c2be6..81aec1b18a 100644 --- a/src/ModularPipelines.Docker/Options/DockerContextInspectOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerContextInspectOptions.cs @@ -11,5 +11,5 @@ public record DockerContextInspectOptions : DockerOptions public string? InspectContext { get; set; } [CommandSwitch("--format")] - public string? Format { get; set; } + public virtual string? Format { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerContextLsOptions.cs b/src/ModularPipelines.Docker/Options/DockerContextLsOptions.cs index f7e41c59fd..fae94c7118 100644 --- a/src/ModularPipelines.Docker/Options/DockerContextLsOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerContextLsOptions.cs @@ -8,8 +8,8 @@ namespace ModularPipelines.Docker.Options; public record DockerContextLsOptions : DockerOptions { [CommandSwitch("--format")] - public string? Format { get; set; } + public virtual string? Format { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerContextRmOptions.cs b/src/ModularPipelines.Docker/Options/DockerContextRmOptions.cs index 1cde79d955..ace3b0ad3a 100644 --- a/src/ModularPipelines.Docker/Options/DockerContextRmOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerContextRmOptions.cs @@ -11,5 +11,5 @@ public record DockerContextRmOptions : DockerOptions public IEnumerable? RmContext { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerContextUpdateOptions.cs b/src/ModularPipelines.Docker/Options/DockerContextUpdateOptions.cs index c777d258cf..1bde335093 100644 --- a/src/ModularPipelines.Docker/Options/DockerContextUpdateOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerContextUpdateOptions.cs @@ -19,8 +19,8 @@ string context public string? UpdateContext { get; set; } [CommandSwitch("--description")] - public string? Description { get; set; } + public virtual string? Description { get; set; } [CommandSwitch("--docker")] - public string? Docker { get; set; } + public virtual string? Docker { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerImageBuildOptions.cs b/src/ModularPipelines.Docker/Options/DockerImageBuildOptions.cs index 059fb7f8d1..8307c5a1a7 100644 --- a/src/ModularPipelines.Docker/Options/DockerImageBuildOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerImageBuildOptions.cs @@ -20,92 +20,92 @@ string pathOrUrl public string? PathOrUrl { get; set; } [CommandSwitch("--add-host")] - public string? AddHost { get; set; } + public virtual string? AddHost { get; set; } [CommandSwitch("--build-arg")] - public IEnumerable? BuildArg { get; set; } + public virtual IEnumerable? BuildArg { get; set; } [CommandSwitch("--cache-from")] - public string? CacheFrom { get; set; } + public virtual string? CacheFrom { get; set; } [CommandSwitch("--cgroup-parent")] - public string? CgroupParent { get; set; } + public virtual string? CgroupParent { get; set; } [BooleanCommandSwitch("--compress")] - public bool? Compress { get; set; } + public virtual bool? Compress { get; set; } [CommandSwitch("--cpu-period")] - public string? CpuPeriod { get; set; } + public virtual string? CpuPeriod { get; set; } [CommandSwitch("--cpu-quota")] - public string? CpuQuota { get; set; } + public virtual string? CpuQuota { get; set; } [CommandSwitch("--cpu-shares")] - public string? CpuShares { get; set; } + public virtual string? CpuShares { get; set; } [CommandSwitch("--cpuset-cpus")] - public string? CpusetCpus { get; set; } + public virtual string? CpusetCpus { get; set; } [CommandSwitch("--cpuset-mems")] - public string? CpusetMems { get; set; } + public virtual string? CpusetMems { get; set; } [BooleanCommandSwitch("--disable-content-trust")] - public bool? DisableContentTrust { get; set; } + public virtual bool? DisableContentTrust { get; set; } [CommandSwitch("--file")] - public string? File { get; set; } + public virtual string? File { get; set; } [BooleanCommandSwitch("--force-rm")] - public bool? ForceRm { get; set; } + public virtual bool? ForceRm { get; set; } [CommandSwitch("--iidfile")] - public string? Iidfile { get; set; } + public virtual string? Iidfile { get; set; } [BooleanCommandSwitch("--isolation")] - public bool? Isolation { get; set; } + public virtual bool? Isolation { get; set; } [CommandSwitch("--label")] - public string? Label { get; set; } + public virtual string? Label { get; set; } [CommandSwitch("--memory")] - public string? Memory { get; set; } + public virtual string? Memory { get; set; } [CommandSwitch("--memory-swap")] - public string? MemorySwap { get; set; } + public virtual string? MemorySwap { get; set; } [CommandSwitch("--network")] - public string? Network { get; set; } + public virtual string? Network { get; set; } [BooleanCommandSwitch("--no-cache")] - public bool? NoCache { get; set; } + public virtual bool? NoCache { get; set; } [CommandSwitch("--platform")] - public string? Platform { get; set; } + public virtual string? Platform { get; set; } [BooleanCommandSwitch("--pull")] - public bool? Pull { get; set; } + public virtual bool? Pull { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } [BooleanCommandSwitch("--rm")] - public bool? Rm { get; set; } + public virtual bool? Rm { get; set; } [CommandSwitch("--security-opt")] - public string? SecurityOpt { get; set; } + public virtual string? SecurityOpt { get; set; } [CommandSwitch("--shm-size")] - public string? ShmSize { get; set; } + public virtual string? ShmSize { get; set; } [BooleanCommandSwitch("--squash")] - public bool? Squash { get; set; } + public virtual bool? Squash { get; set; } [CommandSwitch("--tag")] - public string? Tag { get; set; } + public virtual string? Tag { get; set; } [CommandSwitch("--target")] - public string? Target { get; set; } + public virtual string? Target { get; set; } [CommandSwitch("--ulimit")] - public string? Ulimit { get; set; } + public virtual string? Ulimit { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerImageHistoryOptions.cs b/src/ModularPipelines.Docker/Options/DockerImageHistoryOptions.cs index ade5f77479..b161dd6c79 100644 --- a/src/ModularPipelines.Docker/Options/DockerImageHistoryOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerImageHistoryOptions.cs @@ -19,14 +19,14 @@ string image public string? Image { get; set; } [CommandSwitch("--format")] - public string? Format { get; set; } + public virtual string? Format { get; set; } [BooleanCommandSwitch("--human")] - public bool? Human { get; set; } + public virtual bool? Human { get; set; } [BooleanCommandSwitch("--no-trunc")] - public bool? NoTrunc { get; set; } + public virtual bool? NoTrunc { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerImageImportOptions.cs b/src/ModularPipelines.Docker/Options/DockerImageImportOptions.cs index 9783ef5e6d..2a83c28e13 100644 --- a/src/ModularPipelines.Docker/Options/DockerImageImportOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerImageImportOptions.cs @@ -22,11 +22,11 @@ string fileOrUrl public string? Repository { get; set; } [CommandSwitch("--change")] - public string? Change { get; set; } + public virtual string? Change { get; set; } [CommandSwitch("--message")] - public string? Message { get; set; } + public virtual string? Message { get; set; } [CommandSwitch("--platform")] - public string? Platform { get; set; } + public virtual string? Platform { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerImageInspectOptions.cs b/src/ModularPipelines.Docker/Options/DockerImageInspectOptions.cs index 35432634ff..7681c07962 100644 --- a/src/ModularPipelines.Docker/Options/DockerImageInspectOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerImageInspectOptions.cs @@ -19,5 +19,5 @@ IEnumerable image public IEnumerable? Image { get; set; } [CommandSwitch("--format")] - public string? Format { get; set; } + public virtual string? Format { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerImageLoadOptions.cs b/src/ModularPipelines.Docker/Options/DockerImageLoadOptions.cs index 456c8cf583..1ce7d56ed0 100644 --- a/src/ModularPipelines.Docker/Options/DockerImageLoadOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerImageLoadOptions.cs @@ -8,8 +8,8 @@ namespace ModularPipelines.Docker.Options; public record DockerImageLoadOptions : DockerOptions { [CommandSwitch("--input")] - public string? Input { get; set; } + public virtual string? Input { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerImageLsOptions.cs b/src/ModularPipelines.Docker/Options/DockerImageLsOptions.cs index b7e0e79365..51cfaa7c87 100644 --- a/src/ModularPipelines.Docker/Options/DockerImageLsOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerImageLsOptions.cs @@ -11,20 +11,20 @@ public record DockerImageLsOptions : DockerOptions public string? Repository { get; set; } [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } [BooleanCommandSwitch("--digests")] - public bool? Digests { get; set; } + public virtual bool? Digests { get; set; } [CommandSwitch("--filter")] - public string? Filter { get; set; } + public virtual string? Filter { get; set; } [CommandSwitch("--format")] - public string? Format { get; set; } + public virtual string? Format { get; set; } [BooleanCommandSwitch("--no-trunc")] - public bool? NoTrunc { get; set; } + public virtual bool? NoTrunc { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerImagePruneOptions.cs b/src/ModularPipelines.Docker/Options/DockerImagePruneOptions.cs index f04ad05719..1ceaec76a0 100644 --- a/src/ModularPipelines.Docker/Options/DockerImagePruneOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerImagePruneOptions.cs @@ -8,11 +8,11 @@ namespace ModularPipelines.Docker.Options; public record DockerImagePruneOptions : DockerOptions { [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } [CommandSwitch("--filter")] - public string? Filter { get; set; } + public virtual string? Filter { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerImagePullOptions.cs b/src/ModularPipelines.Docker/Options/DockerImagePullOptions.cs index 55d17eb17a..a4580729d4 100644 --- a/src/ModularPipelines.Docker/Options/DockerImagePullOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerImagePullOptions.cs @@ -19,14 +19,14 @@ string name public string? Name { get; set; } [BooleanCommandSwitch("--all-tags")] - public bool? AllTags { get; set; } + public virtual bool? AllTags { get; set; } [BooleanCommandSwitch("--disable-content-trust")] - public bool? DisableContentTrust { get; set; } + public virtual bool? DisableContentTrust { get; set; } [CommandSwitch("--platform")] - public string? Platform { get; set; } + public virtual string? Platform { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerImagePushOptions.cs b/src/ModularPipelines.Docker/Options/DockerImagePushOptions.cs index 95a929acfc..e726acd480 100644 --- a/src/ModularPipelines.Docker/Options/DockerImagePushOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerImagePushOptions.cs @@ -19,11 +19,11 @@ string name public string? Name { get; set; } [BooleanCommandSwitch("--all-tags")] - public bool? AllTags { get; set; } + public virtual bool? AllTags { get; set; } [BooleanCommandSwitch("--disable-content-trust")] - public bool? DisableContentTrust { get; set; } + public virtual bool? DisableContentTrust { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerImageRmOptions.cs b/src/ModularPipelines.Docker/Options/DockerImageRmOptions.cs index 16cdd6288d..f89c928e0f 100644 --- a/src/ModularPipelines.Docker/Options/DockerImageRmOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerImageRmOptions.cs @@ -19,8 +19,8 @@ IEnumerable image public IEnumerable? Image { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [BooleanCommandSwitch("--no-prune")] - public bool? NoPrune { get; set; } + public virtual bool? NoPrune { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerImageSaveOptions.cs b/src/ModularPipelines.Docker/Options/DockerImageSaveOptions.cs index c78048b0f0..492bf4351e 100644 --- a/src/ModularPipelines.Docker/Options/DockerImageSaveOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerImageSaveOptions.cs @@ -19,5 +19,5 @@ IEnumerable image public IEnumerable? Image { get; set; } [CommandSwitch("--output")] - public string? Output { get; set; } + public virtual string? Output { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerInitOptions.cs b/src/ModularPipelines.Docker/Options/DockerInitOptions.cs index fc2ca998f4..ed51701245 100644 --- a/src/ModularPipelines.Docker/Options/DockerInitOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerInitOptions.cs @@ -8,5 +8,5 @@ namespace ModularPipelines.Docker.Options; public record DockerInitOptions : DockerOptions { [CommandSwitch("--version")] - public string? Version { get; set; } + public virtual string? Version { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerInspectOptions.cs b/src/ModularPipelines.Docker/Options/DockerInspectOptions.cs index 73926e001a..6f5daf5f19 100644 --- a/src/ModularPipelines.Docker/Options/DockerInspectOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerInspectOptions.cs @@ -19,11 +19,11 @@ IEnumerable nameOrId public IEnumerable? NameOrId { get; set; } [CommandSwitch("--format")] - public string? Format { get; set; } + public virtual string? Format { get; set; } [CommandSwitch("--size")] - public string? Size { get; set; } + public virtual string? Size { get; set; } [CommandSwitch("--type")] - public string? Type { get; set; } + public virtual string? Type { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerLoginOptions.cs b/src/ModularPipelines.Docker/Options/DockerLoginOptions.cs index bc04bff936..a7ce142386 100644 --- a/src/ModularPipelines.Docker/Options/DockerLoginOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerLoginOptions.cs @@ -11,11 +11,11 @@ public record DockerLoginOptions : DockerOptions public string? Server { get; set; } [CommandSwitch("--password")] - public string? Password { get; set; } + public virtual string? Password { get; set; } [CommandSwitch("--password-stdin")] - public string? PasswordStdin { get; set; } + public virtual string? PasswordStdin { get; set; } [CommandSwitch("--username")] - public string? Username { get; set; } + public virtual string? Username { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerManifestAnnotateOptions.cs b/src/ModularPipelines.Docker/Options/DockerManifestAnnotateOptions.cs index b9b3ed6d3d..0f730b9575 100644 --- a/src/ModularPipelines.Docker/Options/DockerManifestAnnotateOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerManifestAnnotateOptions.cs @@ -25,17 +25,17 @@ string manifest public string? Manifest { get; set; } [CommandSwitch("--arch")] - public string? Arch { get; set; } + public virtual string? Arch { get; set; } [CommandSwitch("--os")] - public string? Os { get; set; } + public virtual string? Os { get; set; } [CommandSwitch("--os-features")] - public string? OsFeatures { get; set; } + public virtual string? OsFeatures { get; set; } [CommandSwitch("--os-version")] - public string? OsVersion { get; set; } + public virtual string? OsVersion { get; set; } [CommandSwitch("--variant")] - public string? Variant { get; set; } + public virtual string? Variant { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerManifestCreateOptions.cs b/src/ModularPipelines.Docker/Options/DockerManifestCreateOptions.cs index cc3f17dc8a..31ac3c4d0c 100644 --- a/src/ModularPipelines.Docker/Options/DockerManifestCreateOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerManifestCreateOptions.cs @@ -11,8 +11,8 @@ public record DockerManifestCreateOptions : DockerOptions public IEnumerable? Manifest { get; set; } [CommandSwitch("--amend")] - public string? Amend { get; set; } + public virtual string? Amend { get; set; } [CommandSwitch("--insecure")] - public string? Insecure { get; set; } + public virtual string? Insecure { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerManifestInspectOptions.cs b/src/ModularPipelines.Docker/Options/DockerManifestInspectOptions.cs index c1ca0079fb..36329d522b 100644 --- a/src/ModularPipelines.Docker/Options/DockerManifestInspectOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerManifestInspectOptions.cs @@ -22,8 +22,8 @@ string manifest public string? Manifest { get; set; } [CommandSwitch("--insecure")] - public string? Insecure { get; set; } + public virtual string? Insecure { get; set; } [CommandSwitch("--verbose")] - public string? Verbose { get; set; } + public virtual string? Verbose { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerManifestPushOptions.cs b/src/ModularPipelines.Docker/Options/DockerManifestPushOptions.cs index 716989e898..69c6dab670 100644 --- a/src/ModularPipelines.Docker/Options/DockerManifestPushOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerManifestPushOptions.cs @@ -19,8 +19,8 @@ string manifestList public string? ManifestList { get; set; } [CommandSwitch("--insecure")] - public string? Insecure { get; set; } + public virtual string? Insecure { get; set; } [CommandSwitch("--purge")] - public string? Purge { get; set; } + public virtual string? Purge { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerNetworkConnectOptions.cs b/src/ModularPipelines.Docker/Options/DockerNetworkConnectOptions.cs index 00fd007c6c..d48d3e6775 100644 --- a/src/ModularPipelines.Docker/Options/DockerNetworkConnectOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerNetworkConnectOptions.cs @@ -25,20 +25,20 @@ string container public string? Container { get; set; } [CommandSwitch("--alias")] - public string? Alias { get; set; } + public virtual string? Alias { get; set; } [CommandSwitch("--driver-opt")] - public string? DriverOpt { get; set; } + public virtual string? DriverOpt { get; set; } [CommandSwitch("--ip")] - public string? Ip { get; set; } + public virtual string? Ip { get; set; } [CommandSwitch("--ip6")] - public string? Ip6 { get; set; } + public virtual string? Ip6 { get; set; } [CommandSwitch("--link")] - public string? Link { get; set; } + public virtual string? Link { get; set; } [CommandSwitch("--link-local-ip")] - public string? LinkLocalIp { get; set; } + public virtual string? LinkLocalIp { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerNetworkCreateOptions.cs b/src/ModularPipelines.Docker/Options/DockerNetworkCreateOptions.cs index ddf25acba4..4a1faa09ae 100644 --- a/src/ModularPipelines.Docker/Options/DockerNetworkCreateOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerNetworkCreateOptions.cs @@ -19,50 +19,50 @@ string network public string? Network { get; set; } [CommandSwitch("--attachable")] - public string? Attachable { get; set; } + public virtual string? Attachable { get; set; } [CommandSwitch("--aux-address")] - public string? AuxAddress { get; set; } + public virtual string? AuxAddress { get; set; } [CommandSwitch("--config-from")] - public string? ConfigFrom { get; set; } + public virtual string? ConfigFrom { get; set; } [CommandSwitch("--config-only")] - public string? ConfigOnly { get; set; } + public virtual string? ConfigOnly { get; set; } [CommandSwitch("--driver")] - public string? Driver { get; set; } + public virtual string? Driver { get; set; } [CommandSwitch("--gateway")] - public string? Gateway { get; set; } + public virtual string? Gateway { get; set; } [CommandSwitch("--ingress")] - public string? Ingress { get; set; } + public virtual string? Ingress { get; set; } [CommandSwitch("--internal")] - public string? Internal { get; set; } + public virtual string? Internal { get; set; } [CommandSwitch("--ip-range")] - public string? IpRange { get; set; } + public virtual string? IpRange { get; set; } [CommandSwitch("--ipam-driver")] - public string? IpamDriver { get; set; } + public virtual string? IpamDriver { get; set; } [CommandSwitch("--ipam-opt")] - public string? IpamOpt { get; set; } + public virtual string? IpamOpt { get; set; } [CommandSwitch("--ipv6")] - public string? Ipv6 { get; set; } + public virtual string? Ipv6 { get; set; } [CommandSwitch("--label")] - public string? Label { get; set; } + public virtual string? Label { get; set; } [CommandSwitch("--opt")] - public string? Opt { get; set; } + public virtual string? Opt { get; set; } [CommandSwitch("--scope")] - public string? Scope { get; set; } + public virtual string? Scope { get; set; } [CommandSwitch("--subnet")] - public string? Subnet { get; set; } + public virtual string? Subnet { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerNetworkDisconnectOptions.cs b/src/ModularPipelines.Docker/Options/DockerNetworkDisconnectOptions.cs index ad28970e6e..f85cad4bce 100644 --- a/src/ModularPipelines.Docker/Options/DockerNetworkDisconnectOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerNetworkDisconnectOptions.cs @@ -25,5 +25,5 @@ string container public string? Container { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerNetworkInspectOptions.cs b/src/ModularPipelines.Docker/Options/DockerNetworkInspectOptions.cs index ebb06964bd..ab31aab39c 100644 --- a/src/ModularPipelines.Docker/Options/DockerNetworkInspectOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerNetworkInspectOptions.cs @@ -19,8 +19,8 @@ IEnumerable network public IEnumerable? Network { get; set; } [CommandSwitch("--format")] - public string? Format { get; set; } + public virtual string? Format { get; set; } [CommandSwitch("--verbose")] - public string? Verbose { get; set; } + public virtual string? Verbose { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerNetworkLsOptions.cs b/src/ModularPipelines.Docker/Options/DockerNetworkLsOptions.cs index 9b277b6d53..fa7143a1c0 100644 --- a/src/ModularPipelines.Docker/Options/DockerNetworkLsOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerNetworkLsOptions.cs @@ -8,14 +8,14 @@ namespace ModularPipelines.Docker.Options; public record DockerNetworkLsOptions : DockerOptions { [CommandSwitch("--filter")] - public string? Filter { get; set; } + public virtual string? Filter { get; set; } [CommandSwitch("--format")] - public string? Format { get; set; } + public virtual string? Format { get; set; } [BooleanCommandSwitch("--no-trunc")] - public bool? NoTrunc { get; set; } + public virtual bool? NoTrunc { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerNetworkPruneOptions.cs b/src/ModularPipelines.Docker/Options/DockerNetworkPruneOptions.cs index 73795dfb5a..6b3de4d118 100644 --- a/src/ModularPipelines.Docker/Options/DockerNetworkPruneOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerNetworkPruneOptions.cs @@ -8,8 +8,8 @@ namespace ModularPipelines.Docker.Options; public record DockerNetworkPruneOptions : DockerOptions { [CommandSwitch("--filter")] - public string? Filter { get; set; } + public virtual string? Filter { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerNetworkRmOptions.cs b/src/ModularPipelines.Docker/Options/DockerNetworkRmOptions.cs index 23ba7dc676..3340753cc1 100644 --- a/src/ModularPipelines.Docker/Options/DockerNetworkRmOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerNetworkRmOptions.cs @@ -11,5 +11,5 @@ public record DockerNetworkRmOptions : DockerOptions public IEnumerable? Network { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerNodeInspectOptions.cs b/src/ModularPipelines.Docker/Options/DockerNodeInspectOptions.cs index 542169c4b6..e3ab356567 100644 --- a/src/ModularPipelines.Docker/Options/DockerNodeInspectOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerNodeInspectOptions.cs @@ -22,8 +22,8 @@ string selfOrNode public IEnumerable? Node { get; set; } [CommandSwitch("--format")] - public string? Format { get; set; } + public virtual string? Format { get; set; } [CommandSwitch("--pretty")] - public string? Pretty { get; set; } + public virtual string? Pretty { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerNodeLsOptions.cs b/src/ModularPipelines.Docker/Options/DockerNodeLsOptions.cs index 8a248311ba..3b074e64f2 100644 --- a/src/ModularPipelines.Docker/Options/DockerNodeLsOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerNodeLsOptions.cs @@ -8,11 +8,11 @@ namespace ModularPipelines.Docker.Options; public record DockerNodeLsOptions : DockerOptions { [CommandSwitch("--filter")] - public string? Filter { get; set; } + public virtual string? Filter { get; set; } [CommandSwitch("--format")] - public string? Format { get; set; } + public virtual string? Format { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerNodePsOptions.cs b/src/ModularPipelines.Docker/Options/DockerNodePsOptions.cs index 35babd46a9..f044520fdb 100644 --- a/src/ModularPipelines.Docker/Options/DockerNodePsOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerNodePsOptions.cs @@ -11,17 +11,17 @@ public record DockerNodePsOptions : DockerOptions public IEnumerable? Node { get; set; } [CommandSwitch("--filter")] - public string? Filter { get; set; } + public virtual string? Filter { get; set; } [CommandSwitch("--format")] - public string? Format { get; set; } + public virtual string? Format { get; set; } [BooleanCommandSwitch("--no-resolve")] - public bool? NoResolve { get; set; } + public virtual bool? NoResolve { get; set; } [BooleanCommandSwitch("--no-trunc")] - public bool? NoTrunc { get; set; } + public virtual bool? NoTrunc { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerNodeRmOptions.cs b/src/ModularPipelines.Docker/Options/DockerNodeRmOptions.cs index 1ad55c5502..c20b1c4812 100644 --- a/src/ModularPipelines.Docker/Options/DockerNodeRmOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerNodeRmOptions.cs @@ -19,5 +19,5 @@ IEnumerable node public IEnumerable? Node { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerNodeUpdateOptions.cs b/src/ModularPipelines.Docker/Options/DockerNodeUpdateOptions.cs index 9275398f19..7d9d1e267c 100644 --- a/src/ModularPipelines.Docker/Options/DockerNodeUpdateOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerNodeUpdateOptions.cs @@ -19,14 +19,14 @@ string node public string? Node { get; set; } [CommandSwitch("--availability")] - public string? Availability { get; set; } + public virtual string? Availability { get; set; } [CommandSwitch("--label-add")] - public string? LabelAdd { get; set; } + public virtual string? LabelAdd { get; set; } [CommandSwitch("--label-rm")] - public string? LabelRm { get; set; } + public virtual string? LabelRm { get; set; } [CommandSwitch("--role")] - public string? Role { get; set; } + public virtual string? Role { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerOptions.cs b/src/ModularPipelines.Docker/Options/DockerOptions.cs index a60f818f2f..618b083f3e 100644 --- a/src/ModularPipelines.Docker/Options/DockerOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerOptions.cs @@ -8,35 +8,35 @@ namespace ModularPipelines.Docker.Options; public record DockerOptions() : CommandLineToolOptions("docker") { [CommandSwitch("--config")] - public string? Config { get; set; } + public virtual string? Config { get; set; } [CommandSwitch("--context")] - public string? Context { get; set; } + public virtual string? Context { get; set; } [CommandSwitch("--debug")] - public string? Debug { get; set; } + public virtual string? Debug { get; set; } [CommandSwitch("--help")] - public string? Help { get; set; } + public virtual string? Help { get; set; } [CommandSwitch("--host")] - public string? Host { get; set; } + public virtual string? Host { get; set; } [CommandSwitch("--log-level")] - public string? LogLevel { get; set; } + public virtual string? LogLevel { get; set; } [CommandSwitch("--tls")] - public string? Tls { get; set; } + public virtual string? Tls { get; set; } [CommandSwitch("--tlscacert")] - public string? Tlscacert { get; set; } + public virtual string? Tlscacert { get; set; } [CommandSwitch("--tlscert")] - public string? Tlscert { get; set; } + public virtual string? Tlscert { get; set; } [CommandSwitch("--tlskey")] - public string? Tlskey { get; set; } + public virtual string? Tlskey { get; set; } [CommandSwitch("--tlsverify")] - public string? Tlsverify { get; set; } + public virtual string? Tlsverify { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerPluginCreateOptions.cs b/src/ModularPipelines.Docker/Options/DockerPluginCreateOptions.cs index a469b45e95..9a10c716b9 100644 --- a/src/ModularPipelines.Docker/Options/DockerPluginCreateOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerPluginCreateOptions.cs @@ -25,5 +25,5 @@ string pluginDataDir public string? PluginDataDir { get; set; } [BooleanCommandSwitch("--compress")] - public bool? Compress { get; set; } + public virtual bool? Compress { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerPluginDisableOptions.cs b/src/ModularPipelines.Docker/Options/DockerPluginDisableOptions.cs index ef47a7ad6e..131bc047b8 100644 --- a/src/ModularPipelines.Docker/Options/DockerPluginDisableOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerPluginDisableOptions.cs @@ -19,5 +19,5 @@ string plugin public string? Plugin { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerPluginEnableOptions.cs b/src/ModularPipelines.Docker/Options/DockerPluginEnableOptions.cs index 4cdbf0a1ad..8ca7ba452c 100644 --- a/src/ModularPipelines.Docker/Options/DockerPluginEnableOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerPluginEnableOptions.cs @@ -19,5 +19,5 @@ string plugin public string? Plugin { get; set; } [CommandSwitch("--timeout")] - public int? Timeout { get; set; } + public virtual int? Timeout { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerPluginInspectOptions.cs b/src/ModularPipelines.Docker/Options/DockerPluginInspectOptions.cs index d2b7e1f010..2c0e6d0cb1 100644 --- a/src/ModularPipelines.Docker/Options/DockerPluginInspectOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerPluginInspectOptions.cs @@ -19,5 +19,5 @@ IEnumerable plugin public IEnumerable? Plugin { get; set; } [CommandSwitch("--format")] - public string? Format { get; set; } + public virtual string? Format { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerPluginInstallOptions.cs b/src/ModularPipelines.Docker/Options/DockerPluginInstallOptions.cs index 3ce617b9e7..8704f51a72 100644 --- a/src/ModularPipelines.Docker/Options/DockerPluginInstallOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerPluginInstallOptions.cs @@ -23,14 +23,14 @@ string plugin public IEnumerable? KeyValue { get; set; } [CommandSwitch("--alias")] - public string? Alias { get; set; } + public virtual string? Alias { get; set; } [CommandSwitch("--disable")] - public string? Disable { get; set; } + public virtual string? Disable { get; set; } [BooleanCommandSwitch("--disable-content-trust")] - public bool? DisableContentTrust { get; set; } + public virtual bool? DisableContentTrust { get; set; } [CommandSwitch("--grant-all-permissions")] - public string? GrantAllPermissions { get; set; } + public virtual string? GrantAllPermissions { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerPluginLsOptions.cs b/src/ModularPipelines.Docker/Options/DockerPluginLsOptions.cs index 3baf73a15a..8f2bef8685 100644 --- a/src/ModularPipelines.Docker/Options/DockerPluginLsOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerPluginLsOptions.cs @@ -8,14 +8,14 @@ namespace ModularPipelines.Docker.Options; public record DockerPluginLsOptions : DockerOptions { [CommandSwitch("--filter")] - public string? Filter { get; set; } + public virtual string? Filter { get; set; } [CommandSwitch("--format")] - public string? Format { get; set; } + public virtual string? Format { get; set; } [BooleanCommandSwitch("--no-trunc")] - public bool? NoTrunc { get; set; } + public virtual bool? NoTrunc { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerPluginRmOptions.cs b/src/ModularPipelines.Docker/Options/DockerPluginRmOptions.cs index e47ce00d73..aa2a8ff6d9 100644 --- a/src/ModularPipelines.Docker/Options/DockerPluginRmOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerPluginRmOptions.cs @@ -19,5 +19,5 @@ IEnumerable plugin public IEnumerable? Plugin { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerPluginUpgradeOptions.cs b/src/ModularPipelines.Docker/Options/DockerPluginUpgradeOptions.cs index 8eef7746ff..aff04f1262 100644 --- a/src/ModularPipelines.Docker/Options/DockerPluginUpgradeOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerPluginUpgradeOptions.cs @@ -22,11 +22,11 @@ string plugin public string? Remote { get; set; } [BooleanCommandSwitch("--disable-content-trust")] - public bool? DisableContentTrust { get; set; } + public virtual bool? DisableContentTrust { get; set; } [CommandSwitch("--grant-all-permissions")] - public string? GrantAllPermissions { get; set; } + public virtual string? GrantAllPermissions { get; set; } [CommandSwitch("--skip-remote-check")] - public string? SkipRemoteCheck { get; set; } + public virtual string? SkipRemoteCheck { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerScoutCachePruneOptions.cs b/src/ModularPipelines.Docker/Options/DockerScoutCachePruneOptions.cs index b313fb5176..67b5c5f964 100644 --- a/src/ModularPipelines.Docker/Options/DockerScoutCachePruneOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerScoutCachePruneOptions.cs @@ -8,8 +8,8 @@ namespace ModularPipelines.Docker.Options; public record DockerScoutCachePruneOptions : DockerOptions { [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [CommandSwitch("--sboms")] - public string? Sboms { get; set; } + public virtual string? Sboms { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerScoutCompareOptions.cs b/src/ModularPipelines.Docker/Options/DockerScoutCompareOptions.cs index 45c70b87d6..aa28475be8 100644 --- a/src/ModularPipelines.Docker/Options/DockerScoutCompareOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerScoutCompareOptions.cs @@ -11,65 +11,65 @@ public record DockerScoutCompareOptions : DockerOptions public string? ImageOrDirectoryOrArchive { get; set; } [CommandSwitch("--exit-code")] - public string? ExitCode { get; set; } + public virtual string? ExitCode { get; set; } [CommandSwitch("--exit-on")] - public string? ExitOn { get; set; } + public virtual string? ExitOn { get; set; } [CommandSwitch("--format")] - public string? Format { get; set; } + public virtual string? Format { get; set; } [CommandSwitch("--hide-policies")] - public string? HidePolicies { get; set; } + public virtual string? HidePolicies { get; set; } [CommandSwitch("--ignore-base")] - public string? IgnoreBase { get; set; } + public virtual string? IgnoreBase { get; set; } [CommandSwitch("--ignore-unchanged")] - public string? IgnoreUnchanged { get; set; } + public virtual string? IgnoreUnchanged { get; set; } [CommandSwitch("--multi-stage")] - public string? MultiStage { get; set; } + public virtual string? MultiStage { get; set; } [CommandSwitch("--only-fixed")] - public string? OnlyFixed { get; set; } + public virtual string? OnlyFixed { get; set; } [CommandSwitch("--only-package-type")] - public string? OnlyPackageType { get; set; } + public virtual string? OnlyPackageType { get; set; } [CommandSwitch("--only-severity")] - public string? OnlySeverity { get; set; } + public virtual string? OnlySeverity { get; set; } [CommandSwitch("--only-stage")] - public string? OnlyStage { get; set; } + public virtual string? OnlyStage { get; set; } [CommandSwitch("--only-unfixed")] - public string? OnlyUnfixed { get; set; } + public virtual string? OnlyUnfixed { get; set; } [CommandSwitch("--org")] - public string? Org { get; set; } + public virtual string? Org { get; set; } [CommandSwitch("--output")] - public string? Output { get; set; } + public virtual string? Output { get; set; } [CommandSwitch("--platform")] - public string? Platform { get; set; } + public virtual string? Platform { get; set; } [CommandSwitch("--ref")] - public string? Ref { get; set; } + public virtual string? Ref { get; set; } [CommandSwitch("--to")] - public string? To { get; set; } + public virtual string? To { get; set; } [CommandSwitch("--to-env")] - public string? ToEnv { get; set; } + public virtual string? ToEnv { get; set; } [CommandSwitch("--to-latest")] - public string? ToLatest { get; set; } + public virtual string? ToLatest { get; set; } [CommandSwitch("--to-ref")] - public string? ToRef { get; set; } + public virtual string? ToRef { get; set; } [CommandSwitch("--to-stream")] - public string? ToStream { get; set; } + public virtual string? ToStream { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerScoutCvesOptions.cs b/src/ModularPipelines.Docker/Options/DockerScoutCvesOptions.cs index fdb3c50851..4e01a6d2ad 100644 --- a/src/ModularPipelines.Docker/Options/DockerScoutCvesOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerScoutCvesOptions.cs @@ -11,77 +11,77 @@ public record DockerScoutCvesOptions : DockerOptions public string? ImageOrDirectoryOrArchive { get; set; } [BooleanCommandSwitch("--details")] - public bool? Details { get; set; } + public virtual bool? Details { get; set; } [CommandSwitch("--env")] - public string? Env { get; set; } + public virtual string? Env { get; set; } [CommandSwitch("--exit-code")] - public string? ExitCode { get; set; } + public virtual string? ExitCode { get; set; } [CommandSwitch("--format")] - public string? Format { get; set; } + public virtual string? Format { get; set; } [CommandSwitch("--ignore-base")] - public string? IgnoreBase { get; set; } + public virtual string? IgnoreBase { get; set; } [CommandSwitch("--locations")] - public string? Locations { get; set; } + public virtual string? Locations { get; set; } [CommandSwitch("--multi-stage")] - public string? MultiStage { get; set; } + public virtual string? MultiStage { get; set; } [CommandSwitch("--only-cve-id")] - public string? OnlyCveId { get; set; } + public virtual string? OnlyCveId { get; set; } [CommandSwitch("--only-fixed")] - public string? OnlyFixed { get; set; } + public virtual string? OnlyFixed { get; set; } [CommandSwitch("--only-metric")] - public string? OnlyMetric { get; set; } + public virtual string? OnlyMetric { get; set; } [CommandSwitch("--only-package")] - public string? OnlyPackage { get; set; } + public virtual string? OnlyPackage { get; set; } [CommandSwitch("--only-package-type")] - public string? OnlyPackageType { get; set; } + public virtual string? OnlyPackageType { get; set; } [CommandSwitch("--only-severity")] - public string? OnlySeverity { get; set; } + public virtual string? OnlySeverity { get; set; } [CommandSwitch("--only-stage")] - public string? OnlyStage { get; set; } + public virtual string? OnlyStage { get; set; } [CommandSwitch("--only-unfixed")] - public string? OnlyUnfixed { get; set; } + public virtual string? OnlyUnfixed { get; set; } [CommandSwitch("--only-vex-affected")] - public string? OnlyVexAffected { get; set; } + public virtual string? OnlyVexAffected { get; set; } [CommandSwitch("--only-vuln-packages")] - public string? OnlyVulnPackages { get; set; } + public virtual string? OnlyVulnPackages { get; set; } [CommandSwitch("--org")] - public string? Org { get; set; } + public virtual string? Org { get; set; } [CommandSwitch("--output")] - public string? Output { get; set; } + public virtual string? Output { get; set; } [CommandSwitch("--platform")] - public string? Platform { get; set; } + public virtual string? Platform { get; set; } [CommandSwitch("--ref")] - public string? Ref { get; set; } + public virtual string? Ref { get; set; } [CommandSwitch("--stream")] - public string? Stream { get; set; } + public virtual string? Stream { get; set; } [CommandSwitch("--vex")] - public string? Vex { get; set; } + public virtual string? Vex { get; set; } [CommandSwitch("--vex-author")] - public string? VexAuthor { get; set; } + public virtual string? VexAuthor { get; set; } [CommandSwitch("--vex-location")] - public string? VexLocation { get; set; } + public virtual string? VexLocation { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerScoutEnvironmentOptions.cs b/src/ModularPipelines.Docker/Options/DockerScoutEnvironmentOptions.cs index 8380355b8b..efbc049770 100644 --- a/src/ModularPipelines.Docker/Options/DockerScoutEnvironmentOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerScoutEnvironmentOptions.cs @@ -14,11 +14,11 @@ public record DockerScoutEnvironmentOptions : DockerOptions public string? Image { get; set; } [CommandSwitch("--org")] - public string? Org { get; set; } + public virtual string? Org { get; set; } [CommandSwitch("--output")] - public string? Output { get; set; } + public virtual string? Output { get; set; } [CommandSwitch("--platform")] - public string? Platform { get; set; } + public virtual string? Platform { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerScoutIntegrationConfigureOptions.cs b/src/ModularPipelines.Docker/Options/DockerScoutIntegrationConfigureOptions.cs index 90c285820c..872f63c3c5 100644 --- a/src/ModularPipelines.Docker/Options/DockerScoutIntegrationConfigureOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerScoutIntegrationConfigureOptions.cs @@ -8,11 +8,11 @@ namespace ModularPipelines.Docker.Options; public record DockerScoutIntegrationConfigureOptions : DockerOptions { [CommandSwitch("--name")] - public string? Name { get; set; } + public virtual string? Name { get; set; } [CommandSwitch("--org")] - public string? Org { get; set; } + public virtual string? Org { get; set; } [CommandSwitch("--parameter")] - public string? Parameter { get; set; } + public virtual string? Parameter { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerScoutIntegrationDeleteOptions.cs b/src/ModularPipelines.Docker/Options/DockerScoutIntegrationDeleteOptions.cs index 0928247a2c..753774ed1a 100644 --- a/src/ModularPipelines.Docker/Options/DockerScoutIntegrationDeleteOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerScoutIntegrationDeleteOptions.cs @@ -8,8 +8,8 @@ namespace ModularPipelines.Docker.Options; public record DockerScoutIntegrationDeleteOptions : DockerOptions { [CommandSwitch("--name")] - public string? Name { get; set; } + public virtual string? Name { get; set; } [CommandSwitch("--org")] - public string? Org { get; set; } + public virtual string? Org { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerScoutIntegrationListOptions.cs b/src/ModularPipelines.Docker/Options/DockerScoutIntegrationListOptions.cs index 40705d77b3..7ede1c211e 100644 --- a/src/ModularPipelines.Docker/Options/DockerScoutIntegrationListOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerScoutIntegrationListOptions.cs @@ -11,8 +11,8 @@ public record DockerScoutIntegrationListOptions : DockerOptions public string? Integration { get; set; } [CommandSwitch("--name")] - public string? Name { get; set; } + public virtual string? Name { get; set; } [CommandSwitch("--org")] - public string? Org { get; set; } + public virtual string? Org { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerScoutOptions.cs b/src/ModularPipelines.Docker/Options/DockerScoutOptions.cs index f5eb7acad7..e5a1fa24b9 100644 --- a/src/ModularPipelines.Docker/Options/DockerScoutOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerScoutOptions.cs @@ -11,5 +11,5 @@ public record DockerScoutOptions : DockerOptions public string? Command { get; set; } [CommandSwitch("--verbose-debug")] - public string? VerboseDebug { get; set; } + public virtual string? VerboseDebug { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerScoutPolicyOptions.cs b/src/ModularPipelines.Docker/Options/DockerScoutPolicyOptions.cs index e64e4b251a..86c53077be 100644 --- a/src/ModularPipelines.Docker/Options/DockerScoutPolicyOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerScoutPolicyOptions.cs @@ -11,23 +11,23 @@ public record DockerScoutPolicyOptions : DockerOptions public string? ImageOrRepo { get; set; } [CommandSwitch("--env")] - public string? Env { get; set; } + public virtual string? Env { get; set; } [CommandSwitch("--exit-code")] - public string? ExitCode { get; set; } + public virtual string? ExitCode { get; set; } [CommandSwitch("--org")] - public string? Org { get; set; } + public virtual string? Org { get; set; } [CommandSwitch("--output")] - public string? Output { get; set; } + public virtual string? Output { get; set; } [CommandSwitch("--platform")] - public string? Platform { get; set; } + public virtual string? Platform { get; set; } [CommandSwitch("--to-env")] - public string? ToEnv { get; set; } + public virtual string? ToEnv { get; set; } [CommandSwitch("--to-latest")] - public string? ToLatest { get; set; } + public virtual string? ToLatest { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerScoutQuickviewOptions.cs b/src/ModularPipelines.Docker/Options/DockerScoutQuickviewOptions.cs index a74aa5b21d..11e958aaaa 100644 --- a/src/ModularPipelines.Docker/Options/DockerScoutQuickviewOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerScoutQuickviewOptions.cs @@ -11,23 +11,23 @@ public record DockerScoutQuickviewOptions : DockerOptions public string? ImageOrDirectoryOrArchive { get; set; } [CommandSwitch("--env")] - public string? Env { get; set; } + public virtual string? Env { get; set; } [CommandSwitch("--latest")] - public string? Latest { get; set; } + public virtual string? Latest { get; set; } [CommandSwitch("--org")] - public string? Org { get; set; } + public virtual string? Org { get; set; } [CommandSwitch("--output")] - public string? Output { get; set; } + public virtual string? Output { get; set; } [CommandSwitch("--platform")] - public string? Platform { get; set; } + public virtual string? Platform { get; set; } [CommandSwitch("--ref")] - public string? Ref { get; set; } + public virtual string? Ref { get; set; } [CommandSwitch("--stream")] - public string? Stream { get; set; } + public virtual string? Stream { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerScoutRecommendationsOptions.cs b/src/ModularPipelines.Docker/Options/DockerScoutRecommendationsOptions.cs index e4cd213330..c29de43d92 100644 --- a/src/ModularPipelines.Docker/Options/DockerScoutRecommendationsOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerScoutRecommendationsOptions.cs @@ -11,23 +11,23 @@ public record DockerScoutRecommendationsOptions : DockerOptions public string? ImageOrDirectoryOrArchive { get; set; } [CommandSwitch("--only-refresh")] - public string? OnlyRefresh { get; set; } + public virtual string? OnlyRefresh { get; set; } [CommandSwitch("--only-update")] - public string? OnlyUpdate { get; set; } + public virtual string? OnlyUpdate { get; set; } [CommandSwitch("--org")] - public string? Org { get; set; } + public virtual string? Org { get; set; } [CommandSwitch("--output")] - public string? Output { get; set; } + public virtual string? Output { get; set; } [CommandSwitch("--platform")] - public string? Platform { get; set; } + public virtual string? Platform { get; set; } [CommandSwitch("--ref")] - public string? Ref { get; set; } + public virtual string? Ref { get; set; } [CommandSwitch("--tag")] - public string? Tag { get; set; } + public virtual string? Tag { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerScoutRepoDisableOptions.cs b/src/ModularPipelines.Docker/Options/DockerScoutRepoDisableOptions.cs index 80db90c4b1..f84cdc4917 100644 --- a/src/ModularPipelines.Docker/Options/DockerScoutRepoDisableOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerScoutRepoDisableOptions.cs @@ -11,17 +11,17 @@ public record DockerScoutRepoDisableOptions : DockerOptions public string? Repository { get; set; } [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } [CommandSwitch("--filter")] - public string? Filter { get; set; } + public virtual string? Filter { get; set; } [CommandSwitch("--integration")] - public string? Integration { get; set; } + public virtual string? Integration { get; set; } [CommandSwitch("--org")] - public string? Org { get; set; } + public virtual string? Org { get; set; } [CommandSwitch("--registry")] - public string? Registry { get; set; } + public virtual string? Registry { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerScoutRepoEnableOptions.cs b/src/ModularPipelines.Docker/Options/DockerScoutRepoEnableOptions.cs index 4e0c9dce6a..603e8ae88b 100644 --- a/src/ModularPipelines.Docker/Options/DockerScoutRepoEnableOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerScoutRepoEnableOptions.cs @@ -11,17 +11,17 @@ public record DockerScoutRepoEnableOptions : DockerOptions public string? Repository { get; set; } [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } [CommandSwitch("--filter")] - public string? Filter { get; set; } + public virtual string? Filter { get; set; } [CommandSwitch("--integration")] - public string? Integration { get; set; } + public virtual string? Integration { get; set; } [CommandSwitch("--org")] - public string? Org { get; set; } + public virtual string? Org { get; set; } [CommandSwitch("--registry")] - public string? Registry { get; set; } + public virtual string? Registry { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerScoutRepoListOptions.cs b/src/ModularPipelines.Docker/Options/DockerScoutRepoListOptions.cs index c1f259bcc6..b4b06552f6 100644 --- a/src/ModularPipelines.Docker/Options/DockerScoutRepoListOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerScoutRepoListOptions.cs @@ -8,17 +8,17 @@ namespace ModularPipelines.Docker.Options; public record DockerScoutRepoListOptions : DockerOptions { [CommandSwitch("--filter")] - public string? Filter { get; set; } + public virtual string? Filter { get; set; } [CommandSwitch("--only-disabled")] - public string? OnlyDisabled { get; set; } + public virtual string? OnlyDisabled { get; set; } [CommandSwitch("--only-enabled")] - public string? OnlyEnabled { get; set; } + public virtual string? OnlyEnabled { get; set; } [CommandSwitch("--only-registry")] - public string? OnlyRegistry { get; set; } + public virtual string? OnlyRegistry { get; set; } [CommandSwitch("--org")] - public string? Org { get; set; } + public virtual string? Org { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerScoutSbomOptions.cs b/src/ModularPipelines.Docker/Options/DockerScoutSbomOptions.cs index 95a2175aa2..f28a321b95 100644 --- a/src/ModularPipelines.Docker/Options/DockerScoutSbomOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerScoutSbomOptions.cs @@ -11,17 +11,17 @@ public record DockerScoutSbomOptions : DockerOptions public string? ImageOrDirectoryOrArchive { get; set; } [CommandSwitch("--format")] - public string? Format { get; set; } + public virtual string? Format { get; set; } [CommandSwitch("--only-package-type")] - public string? OnlyPackageType { get; set; } + public virtual string? OnlyPackageType { get; set; } [CommandSwitch("--output")] - public string? Output { get; set; } + public virtual string? Output { get; set; } [CommandSwitch("--platform")] - public string? Platform { get; set; } + public virtual string? Platform { get; set; } [CommandSwitch("--ref")] - public string? Ref { get; set; } + public virtual string? Ref { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerScoutStreamOptions.cs b/src/ModularPipelines.Docker/Options/DockerScoutStreamOptions.cs index 1a374d07b0..e25f2c2d64 100644 --- a/src/ModularPipelines.Docker/Options/DockerScoutStreamOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerScoutStreamOptions.cs @@ -14,11 +14,11 @@ public record DockerScoutStreamOptions : DockerOptions public string? Image { get; set; } [CommandSwitch("--org")] - public string? Org { get; set; } + public virtual string? Org { get; set; } [CommandSwitch("--output")] - public string? Output { get; set; } + public virtual string? Output { get; set; } [CommandSwitch("--platform")] - public string? Platform { get; set; } + public virtual string? Platform { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerScoutWatchOptions.cs b/src/ModularPipelines.Docker/Options/DockerScoutWatchOptions.cs index 0272cb49d2..8fd4fe6c0f 100644 --- a/src/ModularPipelines.Docker/Options/DockerScoutWatchOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerScoutWatchOptions.cs @@ -8,32 +8,32 @@ namespace ModularPipelines.Docker.Options; public record DockerScoutWatchOptions : DockerOptions { [CommandSwitch("--all-images")] - public string? AllImages { get; set; } + public virtual string? AllImages { get; set; } [BooleanCommandSwitch("--dry-run")] - public bool? DryRun { get; set; } + public virtual bool? DryRun { get; set; } [CommandSwitch("--interval")] - public int? Interval { get; set; } + public virtual int? Interval { get; set; } [CommandSwitch("--org")] - public string? Org { get; set; } + public virtual string? Org { get; set; } [CommandSwitch("--refresh-registry")] - public string? RefreshRegistry { get; set; } + public virtual string? RefreshRegistry { get; set; } [CommandSwitch("--registry")] - public string? Registry { get; set; } + public virtual string? Registry { get; set; } [CommandSwitch("--repository")] - public string? Repository { get; set; } + public virtual string? Repository { get; set; } [BooleanCommandSwitch("--sbom")] - public bool? Sbom { get; set; } + public virtual bool? Sbom { get; set; } [CommandSwitch("--tag")] - public string? Tag { get; set; } + public virtual string? Tag { get; set; } [CommandSwitch("--workers")] - public int? Workers { get; set; } + public virtual int? Workers { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerSearchOptions.cs b/src/ModularPipelines.Docker/Options/DockerSearchOptions.cs index 53aa8dda3d..fcd790d9b6 100644 --- a/src/ModularPipelines.Docker/Options/DockerSearchOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerSearchOptions.cs @@ -19,14 +19,14 @@ string term public string? Term { get; set; } [CommandSwitch("--filter")] - public string? Filter { get; set; } + public virtual string? Filter { get; set; } [CommandSwitch("--format")] - public string? Format { get; set; } + public virtual string? Format { get; set; } [CommandSwitch("--limit")] - public string? Limit { get; set; } + public virtual string? Limit { get; set; } [BooleanCommandSwitch("--no-trunc")] - public bool? NoTrunc { get; set; } + public virtual bool? NoTrunc { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerSecretCreateOptions.cs b/src/ModularPipelines.Docker/Options/DockerSecretCreateOptions.cs index 0f5e46100a..e3044a7d79 100644 --- a/src/ModularPipelines.Docker/Options/DockerSecretCreateOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerSecretCreateOptions.cs @@ -22,11 +22,11 @@ string secret public string? File { get; set; } [CommandSwitch("--driver")] - public string? Driver { get; set; } + public virtual string? Driver { get; set; } [CommandSwitch("--label")] - public string? Label { get; set; } + public virtual string? Label { get; set; } [CommandSwitch("--template-driver")] - public string? TemplateDriver { get; set; } + public virtual string? TemplateDriver { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerSecretInspectOptions.cs b/src/ModularPipelines.Docker/Options/DockerSecretInspectOptions.cs index 78aa65a7e9..dc51d3473d 100644 --- a/src/ModularPipelines.Docker/Options/DockerSecretInspectOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerSecretInspectOptions.cs @@ -19,8 +19,8 @@ IEnumerable secret public IEnumerable? Secret { get; set; } [CommandSwitch("--format")] - public string? Format { get; set; } + public virtual string? Format { get; set; } [CommandSwitch("--pretty")] - public string? Pretty { get; set; } + public virtual string? Pretty { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerSecretLsOptions.cs b/src/ModularPipelines.Docker/Options/DockerSecretLsOptions.cs index dad8c8e1a4..078eb65c4d 100644 --- a/src/ModularPipelines.Docker/Options/DockerSecretLsOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerSecretLsOptions.cs @@ -8,11 +8,11 @@ namespace ModularPipelines.Docker.Options; public record DockerSecretLsOptions : DockerOptions { [CommandSwitch("--filter")] - public string? Filter { get; set; } + public virtual string? Filter { get; set; } [CommandSwitch("--format")] - public string? Format { get; set; } + public virtual string? Format { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerServiceCreateOptions.cs b/src/ModularPipelines.Docker/Options/DockerServiceCreateOptions.cs index ebebb0bc94..da74d4120f 100644 --- a/src/ModularPipelines.Docker/Options/DockerServiceCreateOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerServiceCreateOptions.cs @@ -25,212 +25,212 @@ string image public IEnumerable? Arg { get; set; } [CommandSwitch("--cap-add")] - public string? CapAdd { get; set; } + public virtual string? CapAdd { get; set; } [CommandSwitch("--cap-drop")] - public string? CapDrop { get; set; } + public virtual string? CapDrop { get; set; } [CommandSwitch("--constraint")] - public string? Constraint { get; set; } + public virtual string? Constraint { get; set; } [CommandSwitch("--container-label")] - public string? ContainerLabel { get; set; } + public virtual string? ContainerLabel { get; set; } [CommandSwitch("--credential-spec")] - public string? CredentialSpec { get; set; } + public virtual string? CredentialSpec { get; set; } [BooleanCommandSwitch("--detach")] - public bool? Detach { get; set; } + public virtual bool? Detach { get; set; } [CommandSwitch("--dns")] - public string? Dns { get; set; } + public virtual string? Dns { get; set; } [CommandSwitch("--dns-option")] - public string? DnsOption { get; set; } + public virtual string? DnsOption { get; set; } [CommandSwitch("--dns-search")] - public string? DnsSearch { get; set; } + public virtual string? DnsSearch { get; set; } [CommandSwitch("--endpoint-mode")] - public string? EndpointMode { get; set; } + public virtual string? EndpointMode { get; set; } [CommandSwitch("--entrypoint")] - public string? Entrypoint { get; set; } + public virtual string? Entrypoint { get; set; } [CommandSwitch("--env")] - public string? Env { get; set; } + public virtual string? Env { get; set; } [CommandSwitch("--env-file")] - public string? EnvFile { get; set; } + public virtual string? EnvFile { get; set; } [CommandSwitch("--generic-resource")] - public string? GenericResource { get; set; } + public virtual string? GenericResource { get; set; } [CommandSwitch("--group")] - public string? Group { get; set; } + public virtual string? Group { get; set; } [CommandSwitch("--health-cmd")] - public string? HealthCmd { get; set; } + public virtual string? HealthCmd { get; set; } [CommandSwitch("--health-interval")] - public string? HealthInterval { get; set; } + public virtual string? HealthInterval { get; set; } [CommandSwitch("--health-retries")] - public string? HealthRetries { get; set; } + public virtual string? HealthRetries { get; set; } [CommandSwitch("--health-start-interval")] - public string? HealthStartInterval { get; set; } + public virtual string? HealthStartInterval { get; set; } [CommandSwitch("--health-start-period")] - public string? HealthStartPeriod { get; set; } + public virtual string? HealthStartPeriod { get; set; } [CommandSwitch("--health-timeout")] - public string? HealthTimeout { get; set; } + public virtual string? HealthTimeout { get; set; } [CommandSwitch("--hostname")] - public string? Hostname { get; set; } + public virtual string? Hostname { get; set; } [CommandSwitch("--init")] - public string? Init { get; set; } + public virtual string? Init { get; set; } [BooleanCommandSwitch("--isolation")] - public bool? Isolation { get; set; } + public virtual bool? Isolation { get; set; } [CommandSwitch("--label")] - public string? Label { get; set; } + public virtual string? Label { get; set; } [CommandSwitch("--limit-cpu")] - public string? LimitCpu { get; set; } + public virtual string? LimitCpu { get; set; } [CommandSwitch("--limit-memory")] - public string? LimitMemory { get; set; } + public virtual string? LimitMemory { get; set; } [CommandSwitch("--limit-pids")] - public string? LimitPids { get; set; } + public virtual string? LimitPids { get; set; } [CommandSwitch("--log-driver")] - public string? LogDriver { get; set; } + public virtual string? LogDriver { get; set; } [CommandSwitch("--log-opt")] - public string? LogOpt { get; set; } + public virtual string? LogOpt { get; set; } [CommandSwitch("--max-concurrent")] - public string? MaxConcurrent { get; set; } + public virtual string? MaxConcurrent { get; set; } [CommandSwitch("--mode")] - public string? Mode { get; set; } + public virtual string? Mode { get; set; } [CommandSwitch("--mount")] - public string? Mount { get; set; } + public virtual string? Mount { get; set; } [CommandSwitch("--name")] - public string? Name { get; set; } + public virtual string? Name { get; set; } [CommandSwitch("--network")] - public string? Network { get; set; } + public virtual string? Network { get; set; } [BooleanCommandSwitch("--no-healthcheck")] - public bool? NoHealthcheck { get; set; } + public virtual bool? NoHealthcheck { get; set; } [CommandSwitch("--no-resolve-image")] - public string? NoResolveImage { get; set; } + public virtual string? NoResolveImage { get; set; } [CommandSwitch("--placement-pref")] - public string? PlacementPref { get; set; } + public virtual string? PlacementPref { get; set; } [CommandSwitch("--publish")] - public string? Publish { get; set; } + public virtual string? Publish { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } [BooleanCommandSwitch("--read-only")] - public bool? ReadOnly { get; set; } + public virtual bool? ReadOnly { get; set; } [CommandSwitch("--replicas")] - public string? Replicas { get; set; } + public virtual string? Replicas { get; set; } [CommandSwitch("--replicas-max-per-node")] - public string? ReplicasMaxPerNode { get; set; } + public virtual string? ReplicasMaxPerNode { get; set; } [CommandSwitch("--reserve-cpu")] - public string? ReserveCpu { get; set; } + public virtual string? ReserveCpu { get; set; } [CommandSwitch("--reserve-memory")] - public string? ReserveMemory { get; set; } + public virtual string? ReserveMemory { get; set; } [CommandSwitch("--restart-condition")] - public string? RestartCondition { get; set; } + public virtual string? RestartCondition { get; set; } [CommandSwitch("--restart-delay")] - public string? RestartDelay { get; set; } + public virtual string? RestartDelay { get; set; } [CommandSwitch("--restart-max-attempts")] - public string? RestartMaxAttempts { get; set; } + public virtual string? RestartMaxAttempts { get; set; } [CommandSwitch("--restart-window")] - public string? RestartWindow { get; set; } + public virtual string? RestartWindow { get; set; } [CommandSwitch("--rollback-delay")] - public string? RollbackDelay { get; set; } + public virtual string? RollbackDelay { get; set; } [CommandSwitch("--rollback-failure-action")] - public string? RollbackFailureAction { get; set; } + public virtual string? RollbackFailureAction { get; set; } [CommandSwitch("--rollback-max-failure-ratio")] - public string? RollbackMaxFailureRatio { get; set; } + public virtual string? RollbackMaxFailureRatio { get; set; } [CommandSwitch("--rollback-monitor")] - public string? RollbackMonitor { get; set; } + public virtual string? RollbackMonitor { get; set; } [CommandSwitch("--rollback-order")] - public string? RollbackOrder { get; set; } + public virtual string? RollbackOrder { get; set; } [CommandSwitch("--rollback-parallelism")] - public int? RollbackParallelism { get; set; } + public virtual int? RollbackParallelism { get; set; } [CommandSwitch("--secret")] - public string? Secret { get; set; } + public virtual string? Secret { get; set; } [CommandSwitch("--stop-grace-period")] - public string? StopGracePeriod { get; set; } + public virtual string? StopGracePeriod { get; set; } [CommandSwitch("--stop-signal")] - public string? StopSignal { get; set; } + public virtual string? StopSignal { get; set; } [CommandSwitch("--sysctl")] - public string? Sysctl { get; set; } + public virtual string? Sysctl { get; set; } [CommandSwitch("--tty")] - public string? Tty { get; set; } + public virtual string? Tty { get; set; } [CommandSwitch("--ulimit")] - public string? Ulimit { get; set; } + public virtual string? Ulimit { get; set; } [CommandSwitch("--update-delay")] - public string? UpdateDelay { get; set; } + public virtual string? UpdateDelay { get; set; } [CommandSwitch("--update-failure-action")] - public string? UpdateFailureAction { get; set; } + public virtual string? UpdateFailureAction { get; set; } [CommandSwitch("--update-max-failure-ratio")] - public string? UpdateMaxFailureRatio { get; set; } + public virtual string? UpdateMaxFailureRatio { get; set; } [CommandSwitch("--update-monitor")] - public string? UpdateMonitor { get; set; } + public virtual string? UpdateMonitor { get; set; } [CommandSwitch("--update-order")] - public string? UpdateOrder { get; set; } + public virtual string? UpdateOrder { get; set; } [CommandSwitch("--update-parallelism")] - public int? UpdateParallelism { get; set; } + public virtual int? UpdateParallelism { get; set; } [CommandSwitch("--user")] - public string? User { get; set; } + public virtual string? User { get; set; } [CommandSwitch("--with-registry-auth")] - public string? WithRegistryAuth { get; set; } + public virtual string? WithRegistryAuth { get; set; } [CommandSwitch("--workdir")] - public string? Workdir { get; set; } + public virtual string? Workdir { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerServiceInspectOptions.cs b/src/ModularPipelines.Docker/Options/DockerServiceInspectOptions.cs index a1e6cad022..fe2a4f381d 100644 --- a/src/ModularPipelines.Docker/Options/DockerServiceInspectOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerServiceInspectOptions.cs @@ -19,8 +19,8 @@ IEnumerable service public IEnumerable? Service { get; set; } [CommandSwitch("--format")] - public string? Format { get; set; } + public virtual string? Format { get; set; } [CommandSwitch("--pretty")] - public string? Pretty { get; set; } + public virtual string? Pretty { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerServiceLogsOptions.cs b/src/ModularPipelines.Docker/Options/DockerServiceLogsOptions.cs index 087deaba11..da2e411417 100644 --- a/src/ModularPipelines.Docker/Options/DockerServiceLogsOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerServiceLogsOptions.cs @@ -19,29 +19,29 @@ string serviceOrTask public string? ServiceOrTask { get; set; } [BooleanCommandSwitch("--details")] - public bool? Details { get; set; } + public virtual bool? Details { get; set; } [BooleanCommandSwitch("--follow")] - public bool? Follow { get; set; } + public virtual bool? Follow { get; set; } [BooleanCommandSwitch("--no-resolve")] - public bool? NoResolve { get; set; } + public virtual bool? NoResolve { get; set; } [BooleanCommandSwitch("--no-task-ids")] - public bool? NoTaskIds { get; set; } + public virtual bool? NoTaskIds { get; set; } [BooleanCommandSwitch("--no-trunc")] - public bool? NoTrunc { get; set; } + public virtual bool? NoTrunc { get; set; } [BooleanCommandSwitch("--raw")] - public bool? Raw { get; set; } + public virtual bool? Raw { get; set; } [CommandSwitch("--since")] - public string? Since { get; set; } + public virtual string? Since { get; set; } [CommandSwitch("--tail")] - public string? Tail { get; set; } + public virtual string? Tail { get; set; } [BooleanCommandSwitch("--timestamps")] - public bool? Timestamps { get; set; } + public virtual bool? Timestamps { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerServiceLsOptions.cs b/src/ModularPipelines.Docker/Options/DockerServiceLsOptions.cs index 608004a0bb..d4f35cfdff 100644 --- a/src/ModularPipelines.Docker/Options/DockerServiceLsOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerServiceLsOptions.cs @@ -8,11 +8,11 @@ namespace ModularPipelines.Docker.Options; public record DockerServiceLsOptions : DockerOptions { [CommandSwitch("--filter")] - public string? Filter { get; set; } + public virtual string? Filter { get; set; } [CommandSwitch("--format")] - public string? Format { get; set; } + public virtual string? Format { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerServicePsOptions.cs b/src/ModularPipelines.Docker/Options/DockerServicePsOptions.cs index c9fa46656b..003ceb3496 100644 --- a/src/ModularPipelines.Docker/Options/DockerServicePsOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerServicePsOptions.cs @@ -19,17 +19,17 @@ IEnumerable service public IEnumerable? Service { get; set; } [CommandSwitch("--filter")] - public string? Filter { get; set; } + public virtual string? Filter { get; set; } [CommandSwitch("--format")] - public string? Format { get; set; } + public virtual string? Format { get; set; } [BooleanCommandSwitch("--no-resolve")] - public bool? NoResolve { get; set; } + public virtual bool? NoResolve { get; set; } [BooleanCommandSwitch("--no-trunc")] - public bool? NoTrunc { get; set; } + public virtual bool? NoTrunc { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerServiceRollbackOptions.cs b/src/ModularPipelines.Docker/Options/DockerServiceRollbackOptions.cs index 40a831638f..798128b452 100644 --- a/src/ModularPipelines.Docker/Options/DockerServiceRollbackOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerServiceRollbackOptions.cs @@ -19,8 +19,8 @@ string service public string? Service { get; set; } [BooleanCommandSwitch("--detach")] - public bool? Detach { get; set; } + public virtual bool? Detach { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerServiceScaleOptions.cs b/src/ModularPipelines.Docker/Options/DockerServiceScaleOptions.cs index 342389c971..e00a8e35ed 100644 --- a/src/ModularPipelines.Docker/Options/DockerServiceScaleOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerServiceScaleOptions.cs @@ -12,5 +12,5 @@ public record DockerServiceScaleOptions : DockerOptions public IEnumerable? ServiceReplicas { get; set; } [BooleanCommandSwitch("--detach")] - public bool? Detach { get; set; } + public virtual bool? Detach { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerServiceUpdateOptions.cs b/src/ModularPipelines.Docker/Options/DockerServiceUpdateOptions.cs index 0a2cc6d416..e68075cc48 100644 --- a/src/ModularPipelines.Docker/Options/DockerServiceUpdateOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerServiceUpdateOptions.cs @@ -19,275 +19,275 @@ string service public string? Service { get; set; } [CommandSwitch("--args")] - public string? Args { get; set; } + public virtual string? Args { get; set; } [CommandSwitch("--cap-add")] - public string? CapAdd { get; set; } + public virtual string? CapAdd { get; set; } [CommandSwitch("--cap-drop")] - public string? CapDrop { get; set; } + public virtual string? CapDrop { get; set; } [CommandSwitch("--config-add")] - public string? ConfigAdd { get; set; } + public virtual string? ConfigAdd { get; set; } [CommandSwitch("--config-rm")] - public string? ConfigRm { get; set; } + public virtual string? ConfigRm { get; set; } [CommandSwitch("--constraint-add")] - public string? ConstraintAdd { get; set; } + public virtual string? ConstraintAdd { get; set; } [CommandSwitch("--constraint-rm")] - public string? ConstraintRm { get; set; } + public virtual string? ConstraintRm { get; set; } [CommandSwitch("--container-label-add")] - public string? ContainerLabelAdd { get; set; } + public virtual string? ContainerLabelAdd { get; set; } [CommandSwitch("--container-label-rm")] - public string? ContainerLabelRm { get; set; } + public virtual string? ContainerLabelRm { get; set; } [CommandSwitch("--credential-spec")] - public string? CredentialSpec { get; set; } + public virtual string? CredentialSpec { get; set; } [BooleanCommandSwitch("--detach")] - public bool? Detach { get; set; } + public virtual bool? Detach { get; set; } [CommandSwitch("--dns-add")] - public string? DnsAdd { get; set; } + public virtual string? DnsAdd { get; set; } [CommandSwitch("--dns-option-add")] - public string? DnsOptionAdd { get; set; } + public virtual string? DnsOptionAdd { get; set; } [CommandSwitch("--dns-option-rm")] - public string? DnsOptionRm { get; set; } + public virtual string? DnsOptionRm { get; set; } [CommandSwitch("--dns-rm")] - public string? DnsRm { get; set; } + public virtual string? DnsRm { get; set; } [CommandSwitch("--dns-search-add")] - public string? DnsSearchAdd { get; set; } + public virtual string? DnsSearchAdd { get; set; } [CommandSwitch("--dns-search-rm")] - public string? DnsSearchRm { get; set; } + public virtual string? DnsSearchRm { get; set; } [CommandSwitch("--endpoint-mode")] - public string? EndpointMode { get; set; } + public virtual string? EndpointMode { get; set; } [CommandSwitch("--entrypoint")] - public string? Entrypoint { get; set; } + public virtual string? Entrypoint { get; set; } [CommandSwitch("--env-add")] - public string? EnvAdd { get; set; } + public virtual string? EnvAdd { get; set; } [CommandSwitch("--env-rm")] - public string? EnvRm { get; set; } + public virtual string? EnvRm { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [CommandSwitch("--generic-resource-add")] - public string? GenericResourceAdd { get; set; } + public virtual string? GenericResourceAdd { get; set; } [CommandSwitch("--generic-resource-rm")] - public string? GenericResourceRm { get; set; } + public virtual string? GenericResourceRm { get; set; } [CommandSwitch("--group-add")] - public string? GroupAdd { get; set; } + public virtual string? GroupAdd { get; set; } [CommandSwitch("--group-rm")] - public string? GroupRm { get; set; } + public virtual string? GroupRm { get; set; } [CommandSwitch("--health-cmd")] - public string? HealthCmd { get; set; } + public virtual string? HealthCmd { get; set; } [CommandSwitch("--health-interval")] - public string? HealthInterval { get; set; } + public virtual string? HealthInterval { get; set; } [CommandSwitch("--health-retries")] - public string? HealthRetries { get; set; } + public virtual string? HealthRetries { get; set; } [CommandSwitch("--health-start-interval")] - public string? HealthStartInterval { get; set; } + public virtual string? HealthStartInterval { get; set; } [CommandSwitch("--health-start-period")] - public string? HealthStartPeriod { get; set; } + public virtual string? HealthStartPeriod { get; set; } [CommandSwitch("--health-timeout")] - public string? HealthTimeout { get; set; } + public virtual string? HealthTimeout { get; set; } [CommandSwitch("--host-add")] - public string? HostAdd { get; set; } + public virtual string? HostAdd { get; set; } [CommandSwitch("--host-rm")] - public string? HostRm { get; set; } + public virtual string? HostRm { get; set; } [CommandSwitch("--hostname")] - public string? Hostname { get; set; } + public virtual string? Hostname { get; set; } [CommandSwitch("--image")] - public string? Image { get; set; } + public virtual string? Image { get; set; } [CommandSwitch("--init")] - public string? Init { get; set; } + public virtual string? Init { get; set; } [BooleanCommandSwitch("--isolation")] - public bool? Isolation { get; set; } + public virtual bool? Isolation { get; set; } [CommandSwitch("--label-add")] - public string? LabelAdd { get; set; } + public virtual string? LabelAdd { get; set; } [CommandSwitch("--label-rm")] - public string? LabelRm { get; set; } + public virtual string? LabelRm { get; set; } [CommandSwitch("--limit-cpu")] - public string? LimitCpu { get; set; } + public virtual string? LimitCpu { get; set; } [CommandSwitch("--limit-memory")] - public string? LimitMemory { get; set; } + public virtual string? LimitMemory { get; set; } [CommandSwitch("--limit-pids")] - public string? LimitPids { get; set; } + public virtual string? LimitPids { get; set; } [CommandSwitch("--log-driver")] - public string? LogDriver { get; set; } + public virtual string? LogDriver { get; set; } [CommandSwitch("--log-opt")] - public string? LogOpt { get; set; } + public virtual string? LogOpt { get; set; } [CommandSwitch("--max-concurrent")] - public string? MaxConcurrent { get; set; } + public virtual string? MaxConcurrent { get; set; } [CommandSwitch("--mount-add")] - public string? MountAdd { get; set; } + public virtual string? MountAdd { get; set; } [CommandSwitch("--mount-rm")] - public string? MountRm { get; set; } + public virtual string? MountRm { get; set; } [CommandSwitch("--network-add")] - public string? NetworkAdd { get; set; } + public virtual string? NetworkAdd { get; set; } [CommandSwitch("--network-rm")] - public string? NetworkRm { get; set; } + public virtual string? NetworkRm { get; set; } [BooleanCommandSwitch("--no-healthcheck")] - public bool? NoHealthcheck { get; set; } + public virtual bool? NoHealthcheck { get; set; } [CommandSwitch("--no-resolve-image")] - public string? NoResolveImage { get; set; } + public virtual string? NoResolveImage { get; set; } [CommandSwitch("--placement-pref-add")] - public string? PlacementPrefAdd { get; set; } + public virtual string? PlacementPrefAdd { get; set; } [CommandSwitch("--placement-pref-rm")] - public string? PlacementPrefRm { get; set; } + public virtual string? PlacementPrefRm { get; set; } [CommandSwitch("--publish-add")] - public string? PublishAdd { get; set; } + public virtual string? PublishAdd { get; set; } [CommandSwitch("--publish-rm")] - public string? PublishRm { get; set; } + public virtual string? PublishRm { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } [BooleanCommandSwitch("--read-only")] - public bool? ReadOnly { get; set; } + public virtual bool? ReadOnly { get; set; } [CommandSwitch("--replicas")] - public string? Replicas { get; set; } + public virtual string? Replicas { get; set; } [CommandSwitch("--replicas-max-per-node")] - public string? ReplicasMaxPerNode { get; set; } + public virtual string? ReplicasMaxPerNode { get; set; } [CommandSwitch("--reserve-cpu")] - public string? ReserveCpu { get; set; } + public virtual string? ReserveCpu { get; set; } [CommandSwitch("--reserve-memory")] - public string? ReserveMemory { get; set; } + public virtual string? ReserveMemory { get; set; } [CommandSwitch("--restart-condition")] - public string? RestartCondition { get; set; } + public virtual string? RestartCondition { get; set; } [CommandSwitch("--restart-delay")] - public string? RestartDelay { get; set; } + public virtual string? RestartDelay { get; set; } [CommandSwitch("--restart-max-attempts")] - public string? RestartMaxAttempts { get; set; } + public virtual string? RestartMaxAttempts { get; set; } [CommandSwitch("--restart-window")] - public string? RestartWindow { get; set; } + public virtual string? RestartWindow { get; set; } [CommandSwitch("--rollback")] - public string? Rollback { get; set; } + public virtual string? Rollback { get; set; } [CommandSwitch("--rollback-delay")] - public string? RollbackDelay { get; set; } + public virtual string? RollbackDelay { get; set; } [CommandSwitch("--rollback-failure-action")] - public string? RollbackFailureAction { get; set; } + public virtual string? RollbackFailureAction { get; set; } [CommandSwitch("--rollback-max-failure-ratio")] - public string? RollbackMaxFailureRatio { get; set; } + public virtual string? RollbackMaxFailureRatio { get; set; } [CommandSwitch("--rollback-monitor")] - public string? RollbackMonitor { get; set; } + public virtual string? RollbackMonitor { get; set; } [CommandSwitch("--rollback-order")] - public string? RollbackOrder { get; set; } + public virtual string? RollbackOrder { get; set; } [CommandSwitch("--rollback-parallelism")] - public string? RollbackParallelism { get; set; } + public virtual string? RollbackParallelism { get; set; } [CommandSwitch("--secret-add")] - public string? SecretAdd { get; set; } + public virtual string? SecretAdd { get; set; } [CommandSwitch("--secret-rm")] - public string? SecretRm { get; set; } + public virtual string? SecretRm { get; set; } [CommandSwitch("--stop-grace-period")] - public string? StopGracePeriod { get; set; } + public virtual string? StopGracePeriod { get; set; } [CommandSwitch("--stop-signal")] - public string? StopSignal { get; set; } + public virtual string? StopSignal { get; set; } [CommandSwitch("--sysctl-add")] - public string? SysctlAdd { get; set; } + public virtual string? SysctlAdd { get; set; } [CommandSwitch("--sysctl-rm")] - public string? SysctlRm { get; set; } + public virtual string? SysctlRm { get; set; } [CommandSwitch("--tty")] - public string? Tty { get; set; } + public virtual string? Tty { get; set; } [CommandSwitch("--ulimit-add")] - public string? UlimitAdd { get; set; } + public virtual string? UlimitAdd { get; set; } [CommandSwitch("--ulimit-rm")] - public string? UlimitRm { get; set; } + public virtual string? UlimitRm { get; set; } [CommandSwitch("--update-delay")] - public string? UpdateDelay { get; set; } + public virtual string? UpdateDelay { get; set; } [CommandSwitch("--update-failure-action")] - public string? UpdateFailureAction { get; set; } + public virtual string? UpdateFailureAction { get; set; } [CommandSwitch("--update-max-failure-ratio")] - public string? UpdateMaxFailureRatio { get; set; } + public virtual string? UpdateMaxFailureRatio { get; set; } [CommandSwitch("--update-monitor")] - public string? UpdateMonitor { get; set; } + public virtual string? UpdateMonitor { get; set; } [CommandSwitch("--update-order")] - public string? UpdateOrder { get; set; } + public virtual string? UpdateOrder { get; set; } [CommandSwitch("--update-parallelism")] - public string? UpdateParallelism { get; set; } + public virtual string? UpdateParallelism { get; set; } [CommandSwitch("--user")] - public string? User { get; set; } + public virtual string? User { get; set; } [CommandSwitch("--with-registry-auth")] - public string? WithRegistryAuth { get; set; } + public virtual string? WithRegistryAuth { get; set; } [CommandSwitch("--workdir")] - public string? Workdir { get; set; } + public virtual string? Workdir { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerStackConfigOptions.cs b/src/ModularPipelines.Docker/Options/DockerStackConfigOptions.cs index de508617c1..78caebc09f 100644 --- a/src/ModularPipelines.Docker/Options/DockerStackConfigOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerStackConfigOptions.cs @@ -8,8 +8,8 @@ namespace ModularPipelines.Docker.Options; public record DockerStackConfigOptions : DockerOptions { [CommandSwitch("--compose-file")] - public string? ComposeFile { get; set; } + public virtual string? ComposeFile { get; set; } [CommandSwitch("--skip-interpolation")] - public string? SkipInterpolation { get; set; } + public virtual string? SkipInterpolation { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerStackDeployOptions.cs b/src/ModularPipelines.Docker/Options/DockerStackDeployOptions.cs index 8e3f3d21b6..d3644dde54 100644 --- a/src/ModularPipelines.Docker/Options/DockerStackDeployOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerStackDeployOptions.cs @@ -19,14 +19,14 @@ string stack public string? Stack { get; set; } [CommandSwitch("--compose-file")] - public string? ComposeFile { get; set; } + public virtual string? ComposeFile { get; set; } [CommandSwitch("--prune")] - public string? Prune { get; set; } + public virtual string? Prune { get; set; } [CommandSwitch("--resolve-image")] - public string? ResolveImage { get; set; } + public virtual string? ResolveImage { get; set; } [CommandSwitch("--with-registry-auth")] - public string? WithRegistryAuth { get; set; } + public virtual string? WithRegistryAuth { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerStackLsOptions.cs b/src/ModularPipelines.Docker/Options/DockerStackLsOptions.cs index 110146f84a..92f6da1163 100644 --- a/src/ModularPipelines.Docker/Options/DockerStackLsOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerStackLsOptions.cs @@ -8,5 +8,5 @@ namespace ModularPipelines.Docker.Options; public record DockerStackLsOptions : DockerOptions { [CommandSwitch("--format")] - public string? Format { get; set; } + public virtual string? Format { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerStackOptions.cs b/src/ModularPipelines.Docker/Options/DockerStackOptions.cs index dd0696bc08..32fa7d30f4 100644 --- a/src/ModularPipelines.Docker/Options/DockerStackOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerStackOptions.cs @@ -8,5 +8,5 @@ namespace ModularPipelines.Docker.Options; public record DockerStackOptions : DockerOptions { [CommandSwitch("--orchestrator")] - public string? Orchestrator { get; set; } + public virtual string? Orchestrator { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerStackPsOptions.cs b/src/ModularPipelines.Docker/Options/DockerStackPsOptions.cs index de6ce08999..41619909a9 100644 --- a/src/ModularPipelines.Docker/Options/DockerStackPsOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerStackPsOptions.cs @@ -19,17 +19,17 @@ string stack public string? Stack { get; set; } [CommandSwitch("--filter")] - public string? Filter { get; set; } + public virtual string? Filter { get; set; } [CommandSwitch("--format")] - public string? Format { get; set; } + public virtual string? Format { get; set; } [BooleanCommandSwitch("--no-resolve")] - public bool? NoResolve { get; set; } + public virtual bool? NoResolve { get; set; } [BooleanCommandSwitch("--no-trunc")] - public bool? NoTrunc { get; set; } + public virtual bool? NoTrunc { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerStackServicesOptions.cs b/src/ModularPipelines.Docker/Options/DockerStackServicesOptions.cs index a89e8e7e15..6c2332d1f5 100644 --- a/src/ModularPipelines.Docker/Options/DockerStackServicesOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerStackServicesOptions.cs @@ -19,11 +19,11 @@ string stack public string? Stack { get; set; } [CommandSwitch("--filter")] - public string? Filter { get; set; } + public virtual string? Filter { get; set; } [CommandSwitch("--format")] - public string? Format { get; set; } + public virtual string? Format { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerSwarmCaOptions.cs b/src/ModularPipelines.Docker/Options/DockerSwarmCaOptions.cs index 26b0276621..3d65b16f30 100644 --- a/src/ModularPipelines.Docker/Options/DockerSwarmCaOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerSwarmCaOptions.cs @@ -8,23 +8,23 @@ namespace ModularPipelines.Docker.Options; public record DockerSwarmCaOptions : DockerOptions { [CommandSwitch("--ca-cert")] - public string? CaCert { get; set; } + public virtual string? CaCert { get; set; } [CommandSwitch("--ca-key")] - public string? CaKey { get; set; } + public virtual string? CaKey { get; set; } [CommandSwitch("--cert-expiry")] - public string? CertExpiry { get; set; } + public virtual string? CertExpiry { get; set; } [BooleanCommandSwitch("--detach")] - public bool? Detach { get; set; } + public virtual bool? Detach { get; set; } [CommandSwitch("--external-ca")] - public string? ExternalCa { get; set; } + public virtual string? ExternalCa { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } [CommandSwitch("--rotate")] - public string? Rotate { get; set; } + public virtual string? Rotate { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerSwarmInitOptions.cs b/src/ModularPipelines.Docker/Options/DockerSwarmInitOptions.cs index d3986a2c95..0c9c3de9a1 100644 --- a/src/ModularPipelines.Docker/Options/DockerSwarmInitOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerSwarmInitOptions.cs @@ -8,47 +8,47 @@ namespace ModularPipelines.Docker.Options; public record DockerSwarmInitOptions : DockerOptions { [CommandSwitch("--advertise-addr")] - public string? AdvertiseAddr { get; set; } + public virtual string? AdvertiseAddr { get; set; } [CommandSwitch("--autolock")] - public string? Autolock { get; set; } + public virtual string? Autolock { get; set; } [CommandSwitch("--availability")] - public string? Availability { get; set; } + public virtual string? Availability { get; set; } [CommandSwitch("--cert-expiry")] - public string? CertExpiry { get; set; } + public virtual string? CertExpiry { get; set; } [CommandSwitch("--data-path-addr")] - public string? DataPathAddr { get; set; } + public virtual string? DataPathAddr { get; set; } [CommandSwitch("--data-path-port")] - public string? DataPathPort { get; set; } + public virtual string? DataPathPort { get; set; } [CommandSwitch("--default-addr-pool")] - public string? DefaultAddrPool { get; set; } + public virtual string? DefaultAddrPool { get; set; } [CommandSwitch("--default-addr-pool-mask-length")] - public int? DefaultAddrPoolMaskLength { get; set; } + public virtual int? DefaultAddrPoolMaskLength { get; set; } [CommandSwitch("--dispatcher-heartbeat")] - public string? DispatcherHeartbeat { get; set; } + public virtual string? DispatcherHeartbeat { get; set; } [CommandSwitch("--external-ca")] - public string? ExternalCa { get; set; } + public virtual string? ExternalCa { get; set; } [CommandSwitch("--force-new-cluster")] - public string? ForceNewCluster { get; set; } + public virtual string? ForceNewCluster { get; set; } [CommandSwitch("--listen-addr")] - public string? ListenAddr { get; set; } + public virtual string? ListenAddr { get; set; } [CommandSwitch("--max-snapshots")] - public string? MaxSnapshots { get; set; } + public virtual string? MaxSnapshots { get; set; } [CommandSwitch("--snapshot-interval")] - public int? SnapshotInterval { get; set; } + public virtual int? SnapshotInterval { get; set; } [CommandSwitch("--task-history-limit")] - public int? TaskHistoryLimit { get; set; } + public virtual int? TaskHistoryLimit { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerSwarmJoinOptions.cs b/src/ModularPipelines.Docker/Options/DockerSwarmJoinOptions.cs index b02aee178a..2ea14ee1de 100644 --- a/src/ModularPipelines.Docker/Options/DockerSwarmJoinOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerSwarmJoinOptions.cs @@ -19,17 +19,17 @@ string host public string? JoinHost { get; set; } [CommandSwitch("--advertise-addr")] - public string? AdvertiseAddr { get; set; } + public virtual string? AdvertiseAddr { get; set; } [CommandSwitch("--availability")] - public string? Availability { get; set; } + public virtual string? Availability { get; set; } [CommandSwitch("--data-path-addr")] - public string? DataPathAddr { get; set; } + public virtual string? DataPathAddr { get; set; } [CommandSwitch("--listen-addr")] - public string? ListenAddr { get; set; } + public virtual string? ListenAddr { get; set; } [CommandSwitch("--token")] - public string? Token { get; set; } + public virtual string? Token { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerSwarmJoinTokenOptions.cs b/src/ModularPipelines.Docker/Options/DockerSwarmJoinTokenOptions.cs index 52c1543283..eae7920415 100644 --- a/src/ModularPipelines.Docker/Options/DockerSwarmJoinTokenOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerSwarmJoinTokenOptions.cs @@ -19,8 +19,8 @@ string workerOrManager public string? WorkerOrManager { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } [CommandSwitch("--rotate")] - public string? Rotate { get; set; } + public virtual string? Rotate { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerSwarmLeaveOptions.cs b/src/ModularPipelines.Docker/Options/DockerSwarmLeaveOptions.cs index cfd134ddf0..14e88f21fa 100644 --- a/src/ModularPipelines.Docker/Options/DockerSwarmLeaveOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerSwarmLeaveOptions.cs @@ -8,5 +8,5 @@ namespace ModularPipelines.Docker.Options; public record DockerSwarmLeaveOptions : DockerOptions { [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerSwarmUnlockKeyOptions.cs b/src/ModularPipelines.Docker/Options/DockerSwarmUnlockKeyOptions.cs index f800da4135..7f6da75476 100644 --- a/src/ModularPipelines.Docker/Options/DockerSwarmUnlockKeyOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerSwarmUnlockKeyOptions.cs @@ -8,8 +8,8 @@ namespace ModularPipelines.Docker.Options; public record DockerSwarmUnlockKeyOptions : DockerOptions { [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } [CommandSwitch("--rotate")] - public string? Rotate { get; set; } + public virtual string? Rotate { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerSwarmUpdateOptions.cs b/src/ModularPipelines.Docker/Options/DockerSwarmUpdateOptions.cs index 3486776afc..d233c629c6 100644 --- a/src/ModularPipelines.Docker/Options/DockerSwarmUpdateOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerSwarmUpdateOptions.cs @@ -8,23 +8,23 @@ namespace ModularPipelines.Docker.Options; public record DockerSwarmUpdateOptions : DockerOptions { [CommandSwitch("--autolock")] - public string? Autolock { get; set; } + public virtual string? Autolock { get; set; } [CommandSwitch("--cert-expiry")] - public string? CertExpiry { get; set; } + public virtual string? CertExpiry { get; set; } [CommandSwitch("--dispatcher-heartbeat")] - public string? DispatcherHeartbeat { get; set; } + public virtual string? DispatcherHeartbeat { get; set; } [CommandSwitch("--external-ca")] - public string? ExternalCa { get; set; } + public virtual string? ExternalCa { get; set; } [CommandSwitch("--max-snapshots")] - public string? MaxSnapshots { get; set; } + public virtual string? MaxSnapshots { get; set; } [CommandSwitch("--snapshot-interval")] - public int? SnapshotInterval { get; set; } + public virtual int? SnapshotInterval { get; set; } [CommandSwitch("--task-history-limit")] - public int? TaskHistoryLimit { get; set; } + public virtual int? TaskHistoryLimit { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerSystemDfOptions.cs b/src/ModularPipelines.Docker/Options/DockerSystemDfOptions.cs index 3452fa7a4f..9c1efde6fd 100644 --- a/src/ModularPipelines.Docker/Options/DockerSystemDfOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerSystemDfOptions.cs @@ -8,8 +8,8 @@ namespace ModularPipelines.Docker.Options; public record DockerSystemDfOptions : DockerOptions { [CommandSwitch("--format")] - public string? Format { get; set; } + public virtual string? Format { get; set; } [CommandSwitch("--verbose")] - public string? Verbose { get; set; } + public virtual string? Verbose { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerSystemEventsOptions.cs b/src/ModularPipelines.Docker/Options/DockerSystemEventsOptions.cs index eae7f51da6..5690091fdc 100644 --- a/src/ModularPipelines.Docker/Options/DockerSystemEventsOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerSystemEventsOptions.cs @@ -8,14 +8,14 @@ namespace ModularPipelines.Docker.Options; public record DockerSystemEventsOptions : DockerOptions { [CommandSwitch("--filter")] - public string? Filter { get; set; } + public virtual string? Filter { get; set; } [CommandSwitch("--format")] - public string? Format { get; set; } + public virtual string? Format { get; set; } [CommandSwitch("--since")] - public string? Since { get; set; } + public virtual string? Since { get; set; } [CommandSwitch("--until")] - public string? Until { get; set; } + public virtual string? Until { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerSystemInfoOptions.cs b/src/ModularPipelines.Docker/Options/DockerSystemInfoOptions.cs index 722a22247d..abc8fa1116 100644 --- a/src/ModularPipelines.Docker/Options/DockerSystemInfoOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerSystemInfoOptions.cs @@ -8,5 +8,5 @@ namespace ModularPipelines.Docker.Options; public record DockerSystemInfoOptions : DockerOptions { [CommandSwitch("--format")] - public string? Format { get; set; } + public virtual string? Format { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerSystemPruneOptions.cs b/src/ModularPipelines.Docker/Options/DockerSystemPruneOptions.cs index d52daf88c5..8d9a1cec94 100644 --- a/src/ModularPipelines.Docker/Options/DockerSystemPruneOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerSystemPruneOptions.cs @@ -8,14 +8,14 @@ namespace ModularPipelines.Docker.Options; public record DockerSystemPruneOptions : DockerOptions { [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } [CommandSwitch("--filter")] - public string? Filter { get; set; } + public virtual string? Filter { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [CommandSwitch("--volumes")] - public string? Volumes { get; set; } + public virtual string? Volumes { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerTrustInspectOptions.cs b/src/ModularPipelines.Docker/Options/DockerTrustInspectOptions.cs index 693c91f934..0620cf30d9 100644 --- a/src/ModularPipelines.Docker/Options/DockerTrustInspectOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerTrustInspectOptions.cs @@ -11,5 +11,5 @@ public record DockerTrustInspectOptions : DockerOptions public IEnumerable? Image { get; set; } [CommandSwitch("--pretty")] - public string? Pretty { get; set; } + public virtual string? Pretty { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerTrustKeyGenerateOptions.cs b/src/ModularPipelines.Docker/Options/DockerTrustKeyGenerateOptions.cs index b402949885..8c5e7c398f 100644 --- a/src/ModularPipelines.Docker/Options/DockerTrustKeyGenerateOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerTrustKeyGenerateOptions.cs @@ -8,5 +8,5 @@ namespace ModularPipelines.Docker.Options; public record DockerTrustKeyGenerateOptions : DockerOptions { [CommandSwitch("--dir")] - public string? Dir { get; set; } + public virtual string? Dir { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerTrustKeyLoadOptions.cs b/src/ModularPipelines.Docker/Options/DockerTrustKeyLoadOptions.cs index 6468df137e..f3ca1a6a8d 100644 --- a/src/ModularPipelines.Docker/Options/DockerTrustKeyLoadOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerTrustKeyLoadOptions.cs @@ -19,5 +19,5 @@ string keyfile public string? Keyfile { get; set; } [CommandSwitch("--name")] - public string? Name { get; set; } + public virtual string? Name { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerTrustRevokeOptions.cs b/src/ModularPipelines.Docker/Options/DockerTrustRevokeOptions.cs index 7d56c8b668..b95b627ffb 100644 --- a/src/ModularPipelines.Docker/Options/DockerTrustRevokeOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerTrustRevokeOptions.cs @@ -19,5 +19,5 @@ string image public string? Image { get; set; } [BooleanCommandSwitch("--yes")] - public bool? Yes { get; set; } + public virtual bool? Yes { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerTrustSignOptions.cs b/src/ModularPipelines.Docker/Options/DockerTrustSignOptions.cs index c6e2acae73..8f6b261671 100644 --- a/src/ModularPipelines.Docker/Options/DockerTrustSignOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerTrustSignOptions.cs @@ -8,5 +8,5 @@ namespace ModularPipelines.Docker.Options; public record DockerTrustSignOptions : DockerOptions { [CommandSwitch("--local")] - public string? Local { get; set; } + public virtual string? Local { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerTrustSignerAddOptions.cs b/src/ModularPipelines.Docker/Options/DockerTrustSignerAddOptions.cs index 65158e09cf..d333ec4560 100644 --- a/src/ModularPipelines.Docker/Options/DockerTrustSignerAddOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerTrustSignerAddOptions.cs @@ -11,5 +11,5 @@ public record DockerTrustSignerAddOptions : DockerOptions public IEnumerable? Repository { get; set; } [CommandSwitch("--key")] - public string? Key { get; set; } + public virtual string? Key { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerTrustSignerRemoveOptions.cs b/src/ModularPipelines.Docker/Options/DockerTrustSignerRemoveOptions.cs index c4ccc16ae8..f8d2aca2db 100644 --- a/src/ModularPipelines.Docker/Options/DockerTrustSignerRemoveOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerTrustSignerRemoveOptions.cs @@ -25,5 +25,5 @@ IEnumerable repository public IEnumerable? Repository { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerVersionOptions.cs b/src/ModularPipelines.Docker/Options/DockerVersionOptions.cs index 3131cd86e8..0121a28f66 100644 --- a/src/ModularPipelines.Docker/Options/DockerVersionOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerVersionOptions.cs @@ -8,5 +8,5 @@ namespace ModularPipelines.Docker.Options; public record DockerVersionOptions : DockerOptions { [CommandSwitch("--format")] - public string? Format { get; set; } + public virtual string? Format { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerVolumeCreateOptions.cs b/src/ModularPipelines.Docker/Options/DockerVolumeCreateOptions.cs index c73f9d2eb7..74b5914e42 100644 --- a/src/ModularPipelines.Docker/Options/DockerVolumeCreateOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerVolumeCreateOptions.cs @@ -11,44 +11,44 @@ public record DockerVolumeCreateOptions : DockerOptions public string? Volume { get; set; } [CommandSwitch("--availability")] - public string? Availability { get; set; } + public virtual string? Availability { get; set; } [CommandSwitch("--driver")] - public string? Driver { get; set; } + public virtual string? Driver { get; set; } [CommandSwitch("--group")] - public string? Group { get; set; } + public virtual string? Group { get; set; } [CommandSwitch("--label")] - public string? Label { get; set; } + public virtual string? Label { get; set; } [CommandSwitch("--limit-bytes")] - public string? LimitBytes { get; set; } + public virtual string? LimitBytes { get; set; } [CommandSwitch("--name")] - public string? Name { get; set; } + public virtual string? Name { get; set; } [CommandSwitch("--opt")] - public string? Opt { get; set; } + public virtual string? Opt { get; set; } [CommandSwitch("--required-bytes")] - public string? RequiredBytes { get; set; } + public virtual string? RequiredBytes { get; set; } [CommandSwitch("--scope")] - public string? Scope { get; set; } + public virtual string? Scope { get; set; } [CommandSwitch("--secret")] - public string? Secret { get; set; } + public virtual string? Secret { get; set; } [CommandSwitch("--sharing")] - public string? Sharing { get; set; } + public virtual string? Sharing { get; set; } [CommandSwitch("--topology-preferred")] - public string? TopologyPreferred { get; set; } + public virtual string? TopologyPreferred { get; set; } [CommandSwitch("--topology-required")] - public string? TopologyRequired { get; set; } + public virtual string? TopologyRequired { get; set; } [CommandSwitch("--type")] - public string? Type { get; set; } + public virtual string? Type { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerVolumeInspectOptions.cs b/src/ModularPipelines.Docker/Options/DockerVolumeInspectOptions.cs index 04ff9ee779..c402e9d77b 100644 --- a/src/ModularPipelines.Docker/Options/DockerVolumeInspectOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerVolumeInspectOptions.cs @@ -19,5 +19,5 @@ IEnumerable volume public IEnumerable? Volume { get; set; } [CommandSwitch("--format")] - public string? Format { get; set; } + public virtual string? Format { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerVolumeLsOptions.cs b/src/ModularPipelines.Docker/Options/DockerVolumeLsOptions.cs index bb4800b632..5c8f49e4c1 100644 --- a/src/ModularPipelines.Docker/Options/DockerVolumeLsOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerVolumeLsOptions.cs @@ -8,14 +8,14 @@ namespace ModularPipelines.Docker.Options; public record DockerVolumeLsOptions : DockerOptions { [CommandSwitch("--cluster")] - public string? Cluster { get; set; } + public virtual string? Cluster { get; set; } [CommandSwitch("--filter")] - public string? Filter { get; set; } + public virtual string? Filter { get; set; } [CommandSwitch("--format")] - public string? Format { get; set; } + public virtual string? Format { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerVolumePruneOptions.cs b/src/ModularPipelines.Docker/Options/DockerVolumePruneOptions.cs index ee6cfe0d46..b45967aa01 100644 --- a/src/ModularPipelines.Docker/Options/DockerVolumePruneOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerVolumePruneOptions.cs @@ -8,11 +8,11 @@ namespace ModularPipelines.Docker.Options; public record DockerVolumePruneOptions : DockerOptions { [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } [CommandSwitch("--filter")] - public string? Filter { get; set; } + public virtual string? Filter { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerVolumeRmOptions.cs b/src/ModularPipelines.Docker/Options/DockerVolumeRmOptions.cs index 2b55507bc1..539a2aa6a3 100644 --- a/src/ModularPipelines.Docker/Options/DockerVolumeRmOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerVolumeRmOptions.cs @@ -19,5 +19,5 @@ IEnumerable volume public IEnumerable? Volume { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } } diff --git a/src/ModularPipelines.Docker/Options/DockerVolumeUpdateOptions.cs b/src/ModularPipelines.Docker/Options/DockerVolumeUpdateOptions.cs index d453af9bbf..05bdbe2f83 100644 --- a/src/ModularPipelines.Docker/Options/DockerVolumeUpdateOptions.cs +++ b/src/ModularPipelines.Docker/Options/DockerVolumeUpdateOptions.cs @@ -11,5 +11,5 @@ public record DockerVolumeUpdateOptions : DockerOptions public string? Volume { get; set; } [CommandSwitch("--availability")] - public string? Availability { get; set; } + public virtual string? Availability { get; set; } } diff --git a/src/ModularPipelines.Docker/Services/Docker.cs b/src/ModularPipelines.Docker/Services/Docker.cs index 90cce8f037..13d146f27f 100644 --- a/src/ModularPipelines.Docker/Services/Docker.cs +++ b/src/ModularPipelines.Docker/Services/Docker.cs @@ -97,127 +97,127 @@ ICommand internalCommand public DockerConfig DockerConfig { get; } - public async Task Builder(DockerBuilderOptions? options = default, CancellationToken token = default) + public virtual async Task Builder(DockerBuilderOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerBuilderOptions(), token); } - public async Task Buildx(DockerBuildxOptions? options = default, CancellationToken token = default) + public virtual async Task Buildx(DockerBuildxOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerBuildxOptions(), token); } - public async Task Checkpoint(DockerCheckpointOptions? options = default, CancellationToken token = default) + public virtual async Task Checkpoint(DockerCheckpointOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerCheckpointOptions(), token); } - public async Task Compose(DockerComposeOptions? options = default, CancellationToken token = default) + public virtual async Task Compose(DockerComposeOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerComposeOptions(), token); } - public async Task Config(DockerConfigOptions? options = default, CancellationToken token = default) + public virtual async Task Config(DockerConfigOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerConfigOptions(), token); } - public async Task Container(DockerContainerOptions? options = default, CancellationToken token = default) + public virtual async Task Container(DockerContainerOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerContainerOptions(), token); } - public async Task Context(DockerContextOptions? options = default, CancellationToken token = default) + public virtual async Task Context(DockerContextOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerContextOptions(), token); } - public async Task Image(DockerImageOptions? options = default, CancellationToken token = default) + public virtual async Task Image(DockerImageOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerImageOptions(), token); } - public async Task Init(DockerInitOptions? options = default, CancellationToken token = default) + public virtual async Task Init(DockerInitOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerInitOptions(), token); } - public async Task Inspect(DockerInspectOptions options, CancellationToken token = default) + public virtual async Task Inspect(DockerInspectOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Login(DockerLoginOptions? options = default, CancellationToken token = default) + public virtual async Task Login(DockerLoginOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerLoginOptions(), token); } - public async Task Logout(DockerLogoutOptions? options = default, CancellationToken token = default) + public virtual async Task Logout(DockerLogoutOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerLogoutOptions(), token); } - public async Task Manifest(DockerManifestOptions? options = default, CancellationToken token = default) + public virtual async Task Manifest(DockerManifestOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerManifestOptions(), token); } - public async Task Network(DockerNetworkOptions? options = default, CancellationToken token = default) + public virtual async Task Network(DockerNetworkOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerNetworkOptions(), token); } - public async Task Node(DockerNodeOptions? options = default, CancellationToken token = default) + public virtual async Task Node(DockerNodeOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerNodeOptions(), token); } - public async Task Plugin(DockerPluginOptions? options = default, CancellationToken token = default) + public virtual async Task Plugin(DockerPluginOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerPluginOptions(), token); } - public async Task Scout(DockerScoutOptions? options = default, CancellationToken token = default) + public virtual async Task Scout(DockerScoutOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerScoutOptions(), token); } - public async Task Search(DockerSearchOptions options, CancellationToken token = default) + public virtual async Task Search(DockerSearchOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Secret(DockerSecretOptions? options = default, CancellationToken token = default) + public virtual async Task Secret(DockerSecretOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerSecretOptions(), token); } - public async Task Service(DockerServiceOptions? options = default, CancellationToken token = default) + public virtual async Task Service(DockerServiceOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerServiceOptions(), token); } - public async Task Stack(DockerStackOptions? options = default, CancellationToken token = default) + public virtual async Task Stack(DockerStackOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerStackOptions(), token); } - public async Task Swarm(DockerSwarmOptions? options = default, CancellationToken token = default) + public virtual async Task Swarm(DockerSwarmOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerSwarmOptions(), token); } - public async Task System(DockerSystemOptions? options = default, CancellationToken token = default) + public virtual async Task System(DockerSystemOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerSystemOptions(), token); } - public async Task Trust(DockerTrustOptions? options = default, CancellationToken token = default) + public virtual async Task Trust(DockerTrustOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerTrustOptions(), token); } - public async Task Version(DockerVersionOptions? options = default, CancellationToken token = default) + public virtual async Task Version(DockerVersionOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerVersionOptions(), token); } diff --git a/src/ModularPipelines.Docker/Services/DockerBuilder.cs b/src/ModularPipelines.Docker/Services/DockerBuilder.cs index 61c49d4483..e0c70a0bcd 100644 --- a/src/ModularPipelines.Docker/Services/DockerBuilder.cs +++ b/src/ModularPipelines.Docker/Services/DockerBuilder.cs @@ -17,7 +17,7 @@ ICommand internalCommand private readonly ICommand _command; - public async Task Prune(DockerBuilderPruneOptions? options = default, CancellationToken token = default) + public virtual async Task Prune(DockerBuilderPruneOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerBuilderPruneOptions(), token); } diff --git a/src/ModularPipelines.Docker/Services/DockerBuildx.cs b/src/ModularPipelines.Docker/Services/DockerBuildx.cs index adb8934d17..40b638ff91 100644 --- a/src/ModularPipelines.Docker/Services/DockerBuildx.cs +++ b/src/ModularPipelines.Docker/Services/DockerBuildx.cs @@ -21,72 +21,72 @@ ICommand internalCommand public DockerBuildxImagetools BuildxImagetools { get; } - public async Task Bake(DockerBuildxBakeOptions? options = default, CancellationToken token = default) + public virtual async Task Bake(DockerBuildxBakeOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerBuildxBakeOptions(), token); } - public async Task Build(DockerBuildxBuildOptions options, CancellationToken token = default) + public virtual async Task Build(DockerBuildxBuildOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Create(DockerBuildxCreateOptions? options = default, CancellationToken token = default) + public virtual async Task Create(DockerBuildxCreateOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerBuildxCreateOptions(), token); } - public async Task Debug(DockerBuildxDebugOptions? options = default, CancellationToken token = default) + public virtual async Task Debug(DockerBuildxDebugOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerBuildxDebugOptions(), token); } - public async Task DebugBuild(DockerBuildxDebugBuildOptions options, CancellationToken token = default) + public virtual async Task DebugBuild(DockerBuildxDebugBuildOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Du(DockerBuildxDuOptions? options = default, CancellationToken token = default) + public virtual async Task Du(DockerBuildxDuOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerBuildxDuOptions(), token); } - public async Task Imagetools(DockerBuildxImagetoolsOptions? options = default, CancellationToken token = default) + public virtual async Task Imagetools(DockerBuildxImagetoolsOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerBuildxImagetoolsOptions(), token); } - public async Task Inspect(DockerBuildxInspectOptions? options = default, CancellationToken token = default) + public virtual async Task Inspect(DockerBuildxInspectOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerBuildxInspectOptions(), token); } - public async Task Ls(DockerBuildxLsOptions? options = default, CancellationToken token = default) + public virtual async Task Ls(DockerBuildxLsOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerBuildxLsOptions(), token); } - public async Task Prune(DockerBuildxPruneOptions? options = default, CancellationToken token = default) + public virtual async Task Prune(DockerBuildxPruneOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerBuildxPruneOptions(), token); } - public async Task Rm(DockerBuildxRmOptions? options = default, CancellationToken token = default) + public virtual async Task Rm(DockerBuildxRmOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerBuildxRmOptions(), token); } - public async Task Stop(DockerBuildxStopOptions? options = default, CancellationToken token = default) + public virtual async Task Stop(DockerBuildxStopOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerBuildxStopOptions(), token); } - public async Task Use(DockerBuildxUseOptions options, CancellationToken token = default) + public virtual async Task Use(DockerBuildxUseOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Version(DockerBuildxVersionOptions? options = default, CancellationToken token = default) + public virtual async Task Version(DockerBuildxVersionOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerBuildxVersionOptions(), token); } diff --git a/src/ModularPipelines.Docker/Services/DockerBuildxImagetools.cs b/src/ModularPipelines.Docker/Services/DockerBuildxImagetools.cs index 89bb74d034..f2ae3d30b5 100644 --- a/src/ModularPipelines.Docker/Services/DockerBuildxImagetools.cs +++ b/src/ModularPipelines.Docker/Services/DockerBuildxImagetools.cs @@ -17,12 +17,12 @@ ICommand internalCommand private readonly ICommand _command; - public async Task Create(DockerBuildxImagetoolsCreateOptions? options = default, CancellationToken token = default) + public virtual async Task Create(DockerBuildxImagetoolsCreateOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerBuildxImagetoolsCreateOptions(), token); } - public async Task Inspect(DockerBuildxImagetoolsInspectOptions options, CancellationToken token = default) + public virtual async Task Inspect(DockerBuildxImagetoolsInspectOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } diff --git a/src/ModularPipelines.Docker/Services/DockerCheckpoint.cs b/src/ModularPipelines.Docker/Services/DockerCheckpoint.cs index 282b313618..96a87cc9c6 100644 --- a/src/ModularPipelines.Docker/Services/DockerCheckpoint.cs +++ b/src/ModularPipelines.Docker/Services/DockerCheckpoint.cs @@ -17,17 +17,17 @@ ICommand internalCommand private readonly ICommand _command; - public async Task Create(DockerCheckpointCreateOptions options, CancellationToken token = default) + public virtual async Task Create(DockerCheckpointCreateOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Ls(DockerCheckpointLsOptions options, CancellationToken token = default) + public virtual async Task Ls(DockerCheckpointLsOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Rm(DockerCheckpointRmOptions options, CancellationToken token = default) + public virtual async Task Rm(DockerCheckpointRmOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } diff --git a/src/ModularPipelines.Docker/Services/DockerCompose.cs b/src/ModularPipelines.Docker/Services/DockerCompose.cs index a6b1fdcbea..d2db6171a4 100644 --- a/src/ModularPipelines.Docker/Services/DockerCompose.cs +++ b/src/ModularPipelines.Docker/Services/DockerCompose.cs @@ -21,142 +21,142 @@ ICommand internalCommand public DockerComposeAlpha ComposeAlpha { get; } - public async Task Alpha(DockerComposeAlphaOptions? options = default, CancellationToken token = default) + public virtual async Task Alpha(DockerComposeAlphaOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerComposeAlphaOptions(), token); } - public async Task Build(DockerComposeBuildOptions? options = default, CancellationToken token = default) + public virtual async Task Build(DockerComposeBuildOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerComposeBuildOptions(), token); } - public async Task Config(DockerComposeConfigOptions? options = default, CancellationToken token = default) + public virtual async Task Config(DockerComposeConfigOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerComposeConfigOptions(), token); } - public async Task Cp(DockerComposeCpOptions options, CancellationToken token = default) + public virtual async Task Cp(DockerComposeCpOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Create(DockerComposeCreateOptions? options = default, CancellationToken token = default) + public virtual async Task Create(DockerComposeCreateOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerComposeCreateOptions(), token); } - public async Task Down(DockerComposeDownOptions? options = default, CancellationToken token = default) + public virtual async Task Down(DockerComposeDownOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerComposeDownOptions(), token); } - public async Task Events(DockerComposeEventsOptions? options = default, CancellationToken token = default) + public virtual async Task Events(DockerComposeEventsOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerComposeEventsOptions(), token); } - public async Task Exec(DockerComposeExecOptions options, CancellationToken token = default) + public virtual async Task Exec(DockerComposeExecOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Images(DockerComposeImagesOptions? options = default, CancellationToken token = default) + public virtual async Task Images(DockerComposeImagesOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerComposeImagesOptions(), token); } - public async Task Kill(DockerComposeKillOptions? options = default, CancellationToken token = default) + public virtual async Task Kill(DockerComposeKillOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerComposeKillOptions(), token); } - public async Task Logs(DockerComposeLogsOptions? options = default, CancellationToken token = default) + public virtual async Task Logs(DockerComposeLogsOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerComposeLogsOptions(), token); } - public async Task Ls(DockerComposeLsOptions? options = default, CancellationToken token = default) + public virtual async Task Ls(DockerComposeLsOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerComposeLsOptions(), token); } - public async Task Pause(DockerComposePauseOptions? options = default, CancellationToken token = default) + public virtual async Task Pause(DockerComposePauseOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerComposePauseOptions(), token); } - public async Task Port(DockerComposePortOptions options, CancellationToken token = default) + public virtual async Task Port(DockerComposePortOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Ps(DockerComposePsOptions? options = default, CancellationToken token = default) + public virtual async Task Ps(DockerComposePsOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerComposePsOptions(), token); } - public async Task Pull(DockerComposePullOptions? options = default, CancellationToken token = default) + public virtual async Task Pull(DockerComposePullOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerComposePullOptions(), token); } - public async Task Push(DockerComposePushOptions? options = default, CancellationToken token = default) + public virtual async Task Push(DockerComposePushOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerComposePushOptions(), token); } - public async Task Restart(DockerComposeRestartOptions? options = default, CancellationToken token = default) + public virtual async Task Restart(DockerComposeRestartOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerComposeRestartOptions(), token); } - public async Task Rm(DockerComposeRmOptions? options = default, CancellationToken token = default) + public virtual async Task Rm(DockerComposeRmOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerComposeRmOptions(), token); } - public async Task Run(DockerComposeRunOptions options, CancellationToken token = default) + public virtual async Task Run(DockerComposeRunOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Start(DockerComposeStartOptions? options = default, CancellationToken token = default) + public virtual async Task Start(DockerComposeStartOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerComposeStartOptions(), token); } - public async Task Stop(DockerComposeStopOptions? options = default, CancellationToken token = default) + public virtual async Task Stop(DockerComposeStopOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerComposeStopOptions(), token); } - public async Task Top(DockerComposeTopOptions? options = default, CancellationToken token = default) + public virtual async Task Top(DockerComposeTopOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerComposeTopOptions(), token); } - public async Task Unpause(DockerComposeUnpauseOptions? options = default, CancellationToken token = default) + public virtual async Task Unpause(DockerComposeUnpauseOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerComposeUnpauseOptions(), token); } - public async Task Up(DockerComposeUpOptions? options = default, CancellationToken token = default) + public virtual async Task Up(DockerComposeUpOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerComposeUpOptions(), token); } - public async Task Version(DockerComposeVersionOptions? options = default, CancellationToken token = default) + public virtual async Task Version(DockerComposeVersionOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerComposeVersionOptions(), token); } - public async Task Wait(DockerComposeWaitOptions? options = default, CancellationToken token = default) + public virtual async Task Wait(DockerComposeWaitOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerComposeWaitOptions(), token); } - public async Task Watch(DockerComposeWatchOptions? options = default, CancellationToken token = default) + public virtual async Task Watch(DockerComposeWatchOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerComposeWatchOptions(), token); } diff --git a/src/ModularPipelines.Docker/Services/DockerComposeAlpha.cs b/src/ModularPipelines.Docker/Services/DockerComposeAlpha.cs index e77c74db71..510fb63ab8 100644 --- a/src/ModularPipelines.Docker/Services/DockerComposeAlpha.cs +++ b/src/ModularPipelines.Docker/Services/DockerComposeAlpha.cs @@ -17,22 +17,22 @@ ICommand internalCommand private readonly ICommand _command; - public async Task DryRun(DockerComposeAlphaDryRunOptions? options = default, CancellationToken token = default) + public virtual async Task DryRun(DockerComposeAlphaDryRunOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerComposeAlphaDryRunOptions(), token); } - public async Task Publish(DockerComposeAlphaPublishOptions? options = default, CancellationToken token = default) + public virtual async Task Publish(DockerComposeAlphaPublishOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerComposeAlphaPublishOptions(), token); } - public async Task Scale(DockerComposeAlphaScaleOptions? options = default, CancellationToken token = default) + public virtual async Task Scale(DockerComposeAlphaScaleOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerComposeAlphaScaleOptions(), token); } - public async Task Viz(DockerComposeAlphaVizOptions? options = default, CancellationToken token = default) + public virtual async Task Viz(DockerComposeAlphaVizOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerComposeAlphaVizOptions(), token); } diff --git a/src/ModularPipelines.Docker/Services/DockerConfig.cs b/src/ModularPipelines.Docker/Services/DockerConfig.cs index 102e3eb3cd..b340d2a44b 100644 --- a/src/ModularPipelines.Docker/Services/DockerConfig.cs +++ b/src/ModularPipelines.Docker/Services/DockerConfig.cs @@ -17,22 +17,22 @@ ICommand internalCommand private readonly ICommand _command; - public async Task Create(DockerConfigCreateOptions options, CancellationToken token = default) + public virtual async Task Create(DockerConfigCreateOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Inspect(DockerConfigInspectOptions options, CancellationToken token = default) + public virtual async Task Inspect(DockerConfigInspectOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Ls(DockerConfigLsOptions? options = default, CancellationToken token = default) + public virtual async Task Ls(DockerConfigLsOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerConfigLsOptions(), token); } - public async Task Rm(DockerConfigRmOptions? options = default, CancellationToken token = default) + public virtual async Task Rm(DockerConfigRmOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerConfigRmOptions(), token); } diff --git a/src/ModularPipelines.Docker/Services/DockerContainer.cs b/src/ModularPipelines.Docker/Services/DockerContainer.cs index ed62b1f6fe..04a61e65ab 100644 --- a/src/ModularPipelines.Docker/Services/DockerContainer.cs +++ b/src/ModularPipelines.Docker/Services/DockerContainer.cs @@ -17,127 +17,127 @@ ICommand internalCommand private readonly ICommand _command; - public async Task Attach(DockerContainerAttachOptions options, CancellationToken token = default) + public virtual async Task Attach(DockerContainerAttachOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Commit(DockerContainerCommitOptions options, CancellationToken token = default) + public virtual async Task Commit(DockerContainerCommitOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Cp(DockerContainerCpOptions options, CancellationToken token = default) + public virtual async Task Cp(DockerContainerCpOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Create(DockerContainerCreateOptions options, CancellationToken token = default) + public virtual async Task Create(DockerContainerCreateOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Diff(DockerContainerDiffOptions? options = default, CancellationToken token = default) + public virtual async Task Diff(DockerContainerDiffOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerContainerDiffOptions(), token); } - public async Task Exec(DockerContainerExecOptions options, CancellationToken token = default) + public virtual async Task Exec(DockerContainerExecOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Export(DockerContainerExportOptions options, CancellationToken token = default) + public virtual async Task Export(DockerContainerExportOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Inspect(DockerContainerInspectOptions options, CancellationToken token = default) + public virtual async Task Inspect(DockerContainerInspectOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Kill(DockerContainerKillOptions options, CancellationToken token = default) + public virtual async Task Kill(DockerContainerKillOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Logs(DockerContainerLogsOptions options, CancellationToken token = default) + public virtual async Task Logs(DockerContainerLogsOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Ls(DockerContainerLsOptions? options = default, CancellationToken token = default) + public virtual async Task Ls(DockerContainerLsOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerContainerLsOptions(), token); } - public async Task Pause(DockerContainerPauseOptions? options = default, CancellationToken token = default) + public virtual async Task Pause(DockerContainerPauseOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerContainerPauseOptions(), token); } - public async Task Port(DockerContainerPortOptions? options = default, CancellationToken token = default) + public virtual async Task Port(DockerContainerPortOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerContainerPortOptions(), token); } - public async Task Prune(DockerContainerPruneOptions? options = default, CancellationToken token = default) + public virtual async Task Prune(DockerContainerPruneOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerContainerPruneOptions(), token); } - public async Task Rename(DockerContainerRenameOptions? options = default, CancellationToken token = default) + public virtual async Task Rename(DockerContainerRenameOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerContainerRenameOptions(), token); } - public async Task Restart(DockerContainerRestartOptions options, CancellationToken token = default) + public virtual async Task Restart(DockerContainerRestartOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Rm(DockerContainerRmOptions options, CancellationToken token = default) + public virtual async Task Rm(DockerContainerRmOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Run(DockerContainerRunOptions options, CancellationToken token = default) + public virtual async Task Run(DockerContainerRunOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Start(DockerContainerStartOptions options, CancellationToken token = default) + public virtual async Task Start(DockerContainerStartOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Stats(DockerContainerStatsOptions? options = default, CancellationToken token = default) + public virtual async Task Stats(DockerContainerStatsOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerContainerStatsOptions(), token); } - public async Task Stop(DockerContainerStopOptions options, CancellationToken token = default) + public virtual async Task Stop(DockerContainerStopOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Top(DockerContainerTopOptions options, CancellationToken token = default) + public virtual async Task Top(DockerContainerTopOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Unpause(DockerContainerUnpauseOptions? options = default, CancellationToken token = default) + public virtual async Task Unpause(DockerContainerUnpauseOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerContainerUnpauseOptions(), token); } - public async Task Update(DockerContainerUpdateOptions options, CancellationToken token = default) + public virtual async Task Update(DockerContainerUpdateOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Wait(DockerContainerWaitOptions? options = default, CancellationToken token = default) + public virtual async Task Wait(DockerContainerWaitOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerContainerWaitOptions(), token); } diff --git a/src/ModularPipelines.Docker/Services/DockerContext.cs b/src/ModularPipelines.Docker/Services/DockerContext.cs index ce5deaa88d..9d659e7605 100644 --- a/src/ModularPipelines.Docker/Services/DockerContext.cs +++ b/src/ModularPipelines.Docker/Services/DockerContext.cs @@ -17,47 +17,47 @@ ICommand internalCommand private readonly ICommand _command; - public async Task Create(DockerContextCreateOptions options, CancellationToken token = default) + public virtual async Task Create(DockerContextCreateOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Export(DockerContextExportOptions options, CancellationToken token = default) + public virtual async Task Export(DockerContextExportOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Import(DockerContextImportOptions? options = default, CancellationToken token = default) + public virtual async Task Import(DockerContextImportOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerContextImportOptions(), token); } - public async Task Inspect(DockerContextInspectOptions? options = default, CancellationToken token = default) + public virtual async Task Inspect(DockerContextInspectOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerContextInspectOptions(), token); } - public async Task Ls(DockerContextLsOptions? options = default, CancellationToken token = default) + public virtual async Task Ls(DockerContextLsOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerContextLsOptions(), token); } - public async Task Rm(DockerContextRmOptions? options = default, CancellationToken token = default) + public virtual async Task Rm(DockerContextRmOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerContextRmOptions(), token); } - public async Task Show(DockerContextShowOptions? options = default, CancellationToken token = default) + public virtual async Task Show(DockerContextShowOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerContextShowOptions(), token); } - public async Task Update(DockerContextUpdateOptions options, CancellationToken token = default) + public virtual async Task Update(DockerContextUpdateOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Use(DockerContextUseOptions? options = default, CancellationToken token = default) + public virtual async Task Use(DockerContextUseOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerContextUseOptions(), token); } diff --git a/src/ModularPipelines.Docker/Services/DockerImage.cs b/src/ModularPipelines.Docker/Services/DockerImage.cs index a969d22a6a..50aad00263 100644 --- a/src/ModularPipelines.Docker/Services/DockerImage.cs +++ b/src/ModularPipelines.Docker/Services/DockerImage.cs @@ -17,62 +17,62 @@ ICommand internalCommand private readonly ICommand _command; - public async Task Build(DockerImageBuildOptions options, CancellationToken token = default) + public virtual async Task Build(DockerImageBuildOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task History(DockerImageHistoryOptions options, CancellationToken token = default) + public virtual async Task History(DockerImageHistoryOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Import(DockerImageImportOptions options, CancellationToken token = default) + public virtual async Task Import(DockerImageImportOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Inspect(DockerImageInspectOptions options, CancellationToken token = default) + public virtual async Task Inspect(DockerImageInspectOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Load(DockerImageLoadOptions? options = default, CancellationToken token = default) + public virtual async Task Load(DockerImageLoadOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerImageLoadOptions(), token); } - public async Task Ls(DockerImageLsOptions? options = default, CancellationToken token = default) + public virtual async Task Ls(DockerImageLsOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerImageLsOptions(), token); } - public async Task Prune(DockerImagePruneOptions? options = default, CancellationToken token = default) + public virtual async Task Prune(DockerImagePruneOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerImagePruneOptions(), token); } - public async Task Pull(DockerImagePullOptions options, CancellationToken token = default) + public virtual async Task Pull(DockerImagePullOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Push(DockerImagePushOptions options, CancellationToken token = default) + public virtual async Task Push(DockerImagePushOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Rm(DockerImageRmOptions options, CancellationToken token = default) + public virtual async Task Rm(DockerImageRmOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Save(DockerImageSaveOptions options, CancellationToken token = default) + public virtual async Task Save(DockerImageSaveOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Tag(DockerImageTagOptions? options = default, CancellationToken token = default) + public virtual async Task Tag(DockerImageTagOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerImageTagOptions(), token); } diff --git a/src/ModularPipelines.Docker/Services/DockerManifest.cs b/src/ModularPipelines.Docker/Services/DockerManifest.cs index 52054f53d6..4e5c99ba81 100644 --- a/src/ModularPipelines.Docker/Services/DockerManifest.cs +++ b/src/ModularPipelines.Docker/Services/DockerManifest.cs @@ -17,27 +17,27 @@ ICommand internalCommand private readonly ICommand _command; - public async Task Annotate(DockerManifestAnnotateOptions options, CancellationToken token = default) + public virtual async Task Annotate(DockerManifestAnnotateOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Create(DockerManifestCreateOptions? options = default, CancellationToken token = default) + public virtual async Task Create(DockerManifestCreateOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerManifestCreateOptions(), token); } - public async Task Inspect(DockerManifestInspectOptions options, CancellationToken token = default) + public virtual async Task Inspect(DockerManifestInspectOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Push(DockerManifestPushOptions options, CancellationToken token = default) + public virtual async Task Push(DockerManifestPushOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Rm(DockerManifestRmOptions? options = default, CancellationToken token = default) + public virtual async Task Rm(DockerManifestRmOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerManifestRmOptions(), token); } diff --git a/src/ModularPipelines.Docker/Services/DockerNetwork.cs b/src/ModularPipelines.Docker/Services/DockerNetwork.cs index 4ae612d098..f76d279767 100644 --- a/src/ModularPipelines.Docker/Services/DockerNetwork.cs +++ b/src/ModularPipelines.Docker/Services/DockerNetwork.cs @@ -17,37 +17,37 @@ ICommand internalCommand private readonly ICommand _command; - public async Task Connect(DockerNetworkConnectOptions options, CancellationToken token = default) + public virtual async Task Connect(DockerNetworkConnectOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Create(DockerNetworkCreateOptions options, CancellationToken token = default) + public virtual async Task Create(DockerNetworkCreateOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Disconnect(DockerNetworkDisconnectOptions options, CancellationToken token = default) + public virtual async Task Disconnect(DockerNetworkDisconnectOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Inspect(DockerNetworkInspectOptions options, CancellationToken token = default) + public virtual async Task Inspect(DockerNetworkInspectOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Ls(DockerNetworkLsOptions? options = default, CancellationToken token = default) + public virtual async Task Ls(DockerNetworkLsOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerNetworkLsOptions(), token); } - public async Task Prune(DockerNetworkPruneOptions? options = default, CancellationToken token = default) + public virtual async Task Prune(DockerNetworkPruneOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerNetworkPruneOptions(), token); } - public async Task Rm(DockerNetworkRmOptions? options = default, CancellationToken token = default) + public virtual async Task Rm(DockerNetworkRmOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerNetworkRmOptions(), token); } diff --git a/src/ModularPipelines.Docker/Services/DockerNode.cs b/src/ModularPipelines.Docker/Services/DockerNode.cs index 47b92e01a4..75e474d1c4 100644 --- a/src/ModularPipelines.Docker/Services/DockerNode.cs +++ b/src/ModularPipelines.Docker/Services/DockerNode.cs @@ -17,37 +17,37 @@ ICommand internalCommand private readonly ICommand _command; - public async Task Demote(DockerNodeDemoteOptions? options = default, CancellationToken token = default) + public virtual async Task Demote(DockerNodeDemoteOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerNodeDemoteOptions(), token); } - public async Task Inspect(DockerNodeInspectOptions options, CancellationToken token = default) + public virtual async Task Inspect(DockerNodeInspectOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Ls(DockerNodeLsOptions? options = default, CancellationToken token = default) + public virtual async Task Ls(DockerNodeLsOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerNodeLsOptions(), token); } - public async Task Promote(DockerNodePromoteOptions? options = default, CancellationToken token = default) + public virtual async Task Promote(DockerNodePromoteOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerNodePromoteOptions(), token); } - public async Task Ps(DockerNodePsOptions? options = default, CancellationToken token = default) + public virtual async Task Ps(DockerNodePsOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerNodePsOptions(), token); } - public async Task Rm(DockerNodeRmOptions options, CancellationToken token = default) + public virtual async Task Rm(DockerNodeRmOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Update(DockerNodeUpdateOptions options, CancellationToken token = default) + public virtual async Task Update(DockerNodeUpdateOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } diff --git a/src/ModularPipelines.Docker/Services/DockerPlugin.cs b/src/ModularPipelines.Docker/Services/DockerPlugin.cs index 335f1b0a66..9f646d6af7 100644 --- a/src/ModularPipelines.Docker/Services/DockerPlugin.cs +++ b/src/ModularPipelines.Docker/Services/DockerPlugin.cs @@ -17,47 +17,47 @@ ICommand internalCommand private readonly ICommand _command; - public async Task Create(DockerPluginCreateOptions options, CancellationToken token = default) + public virtual async Task Create(DockerPluginCreateOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Disable(DockerPluginDisableOptions options, CancellationToken token = default) + public virtual async Task Disable(DockerPluginDisableOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Enable(DockerPluginEnableOptions options, CancellationToken token = default) + public virtual async Task Enable(DockerPluginEnableOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Inspect(DockerPluginInspectOptions options, CancellationToken token = default) + public virtual async Task Inspect(DockerPluginInspectOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Install(DockerPluginInstallOptions options, CancellationToken token = default) + public virtual async Task Install(DockerPluginInstallOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Ls(DockerPluginLsOptions? options = default, CancellationToken token = default) + public virtual async Task Ls(DockerPluginLsOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerPluginLsOptions(), token); } - public async Task Rm(DockerPluginRmOptions options, CancellationToken token = default) + public virtual async Task Rm(DockerPluginRmOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Set(DockerPluginSetOptions? options = default, CancellationToken token = default) + public virtual async Task Set(DockerPluginSetOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerPluginSetOptions(), token); } - public async Task Upgrade(DockerPluginUpgradeOptions options, CancellationToken token = default) + public virtual async Task Upgrade(DockerPluginUpgradeOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } diff --git a/src/ModularPipelines.Docker/Services/DockerScout.cs b/src/ModularPipelines.Docker/Services/DockerScout.cs index b607896719..9370b698c1 100644 --- a/src/ModularPipelines.Docker/Services/DockerScout.cs +++ b/src/ModularPipelines.Docker/Services/DockerScout.cs @@ -29,77 +29,77 @@ ICommand internalCommand public DockerScoutCache ScoutCache { get; } - public async Task Cache(DockerScoutCacheOptions? options = default, CancellationToken token = default) + public virtual async Task Cache(DockerScoutCacheOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerScoutCacheOptions(), token); } - public async Task Compare(DockerScoutCompareOptions? options = default, CancellationToken token = default) + public virtual async Task Compare(DockerScoutCompareOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerScoutCompareOptions(), token); } - public async Task Config(DockerScoutConfigOptions? options = default, CancellationToken token = default) + public virtual async Task Config(DockerScoutConfigOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerScoutConfigOptions(), token); } - public async Task Cves(DockerScoutCvesOptions? options = default, CancellationToken token = default) + public virtual async Task Cves(DockerScoutCvesOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerScoutCvesOptions(), token); } - public async Task Enroll(DockerScoutEnrollOptions? options = default, CancellationToken token = default) + public virtual async Task Enroll(DockerScoutEnrollOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerScoutEnrollOptions(), token); } - public async Task Environment(DockerScoutEnvironmentOptions? options = default, CancellationToken token = default) + public virtual async Task Environment(DockerScoutEnvironmentOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerScoutEnvironmentOptions(), token); } - public async Task Integration(DockerScoutIntegrationOptions? options = default, CancellationToken token = default) + public virtual async Task Integration(DockerScoutIntegrationOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerScoutIntegrationOptions(), token); } - public async Task Policy(DockerScoutPolicyOptions? options = default, CancellationToken token = default) + public virtual async Task Policy(DockerScoutPolicyOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerScoutPolicyOptions(), token); } - public async Task Quickview(DockerScoutQuickviewOptions? options = default, CancellationToken token = default) + public virtual async Task Quickview(DockerScoutQuickviewOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerScoutQuickviewOptions(), token); } - public async Task Recommendations(DockerScoutRecommendationsOptions? options = default, CancellationToken token = default) + public virtual async Task Recommendations(DockerScoutRecommendationsOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerScoutRecommendationsOptions(), token); } - public async Task Repo(DockerScoutRepoOptions? options = default, CancellationToken token = default) + public virtual async Task Repo(DockerScoutRepoOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerScoutRepoOptions(), token); } - public async Task Sbom(DockerScoutSbomOptions? options = default, CancellationToken token = default) + public virtual async Task Sbom(DockerScoutSbomOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerScoutSbomOptions(), token); } - public async Task Stream(DockerScoutStreamOptions? options = default, CancellationToken token = default) + public virtual async Task Stream(DockerScoutStreamOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerScoutStreamOptions(), token); } - public async Task Version(DockerScoutVersionOptions? options = default, CancellationToken token = default) + public virtual async Task Version(DockerScoutVersionOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerScoutVersionOptions(), token); } - public async Task Watch(DockerScoutWatchOptions? options = default, CancellationToken token = default) + public virtual async Task Watch(DockerScoutWatchOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerScoutWatchOptions(), token); } diff --git a/src/ModularPipelines.Docker/Services/DockerScoutCache.cs b/src/ModularPipelines.Docker/Services/DockerScoutCache.cs index 3fe3ddf7b7..b4e22020f7 100644 --- a/src/ModularPipelines.Docker/Services/DockerScoutCache.cs +++ b/src/ModularPipelines.Docker/Services/DockerScoutCache.cs @@ -17,12 +17,12 @@ ICommand internalCommand private readonly ICommand _command; - public async Task Df(DockerScoutCacheDfOptions? options = default, CancellationToken token = default) + public virtual async Task Df(DockerScoutCacheDfOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerScoutCacheDfOptions(), token); } - public async Task Prune(DockerScoutCachePruneOptions? options = default, CancellationToken token = default) + public virtual async Task Prune(DockerScoutCachePruneOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerScoutCachePruneOptions(), token); } diff --git a/src/ModularPipelines.Docker/Services/DockerScoutIntegration.cs b/src/ModularPipelines.Docker/Services/DockerScoutIntegration.cs index 5bb4878655..10b09e0679 100644 --- a/src/ModularPipelines.Docker/Services/DockerScoutIntegration.cs +++ b/src/ModularPipelines.Docker/Services/DockerScoutIntegration.cs @@ -17,17 +17,17 @@ ICommand internalCommand private readonly ICommand _command; - public async Task Configure(DockerScoutIntegrationConfigureOptions? options = default, CancellationToken token = default) + public virtual async Task Configure(DockerScoutIntegrationConfigureOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerScoutIntegrationConfigureOptions(), token); } - public async Task Delete(DockerScoutIntegrationDeleteOptions? options = default, CancellationToken token = default) + public virtual async Task Delete(DockerScoutIntegrationDeleteOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerScoutIntegrationDeleteOptions(), token); } - public async Task List(DockerScoutIntegrationListOptions? options = default, CancellationToken token = default) + public virtual async Task List(DockerScoutIntegrationListOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerScoutIntegrationListOptions(), token); } diff --git a/src/ModularPipelines.Docker/Services/DockerScoutRepo.cs b/src/ModularPipelines.Docker/Services/DockerScoutRepo.cs index 02ed569c67..a160acc630 100644 --- a/src/ModularPipelines.Docker/Services/DockerScoutRepo.cs +++ b/src/ModularPipelines.Docker/Services/DockerScoutRepo.cs @@ -17,17 +17,17 @@ ICommand internalCommand private readonly ICommand _command; - public async Task Disable(DockerScoutRepoDisableOptions? options = default, CancellationToken token = default) + public virtual async Task Disable(DockerScoutRepoDisableOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerScoutRepoDisableOptions(), token); } - public async Task Enable(DockerScoutRepoEnableOptions? options = default, CancellationToken token = default) + public virtual async Task Enable(DockerScoutRepoEnableOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerScoutRepoEnableOptions(), token); } - public async Task List(DockerScoutRepoListOptions? options = default, CancellationToken token = default) + public virtual async Task List(DockerScoutRepoListOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerScoutRepoListOptions(), token); } diff --git a/src/ModularPipelines.Docker/Services/DockerSecret.cs b/src/ModularPipelines.Docker/Services/DockerSecret.cs index e048605964..b7c1182422 100644 --- a/src/ModularPipelines.Docker/Services/DockerSecret.cs +++ b/src/ModularPipelines.Docker/Services/DockerSecret.cs @@ -17,22 +17,22 @@ ICommand internalCommand private readonly ICommand _command; - public async Task Create(DockerSecretCreateOptions options, CancellationToken token = default) + public virtual async Task Create(DockerSecretCreateOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Inspect(DockerSecretInspectOptions options, CancellationToken token = default) + public virtual async Task Inspect(DockerSecretInspectOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Ls(DockerSecretLsOptions? options = default, CancellationToken token = default) + public virtual async Task Ls(DockerSecretLsOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerSecretLsOptions(), token); } - public async Task Rm(DockerSecretRmOptions? options = default, CancellationToken token = default) + public virtual async Task Rm(DockerSecretRmOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerSecretRmOptions(), token); } diff --git a/src/ModularPipelines.Docker/Services/DockerService.cs b/src/ModularPipelines.Docker/Services/DockerService.cs index fe96cc44c4..4fbff1e6d9 100644 --- a/src/ModularPipelines.Docker/Services/DockerService.cs +++ b/src/ModularPipelines.Docker/Services/DockerService.cs @@ -17,47 +17,47 @@ ICommand internalCommand private readonly ICommand _command; - public async Task Create(DockerServiceCreateOptions options, CancellationToken token = default) + public virtual async Task Create(DockerServiceCreateOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Inspect(DockerServiceInspectOptions options, CancellationToken token = default) + public virtual async Task Inspect(DockerServiceInspectOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Logs(DockerServiceLogsOptions options, CancellationToken token = default) + public virtual async Task Logs(DockerServiceLogsOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Ls(DockerServiceLsOptions? options = default, CancellationToken token = default) + public virtual async Task Ls(DockerServiceLsOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerServiceLsOptions(), token); } - public async Task Ps(DockerServicePsOptions options, CancellationToken token = default) + public virtual async Task Ps(DockerServicePsOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Rollback(DockerServiceRollbackOptions options, CancellationToken token = default) + public virtual async Task Rollback(DockerServiceRollbackOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Rm(DockerServiceRmOptions? options = default, CancellationToken token = default) + public virtual async Task Rm(DockerServiceRmOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerServiceRmOptions(), token); } - public async Task Scale(DockerServiceScaleOptions? options = default, CancellationToken token = default) + public virtual async Task Scale(DockerServiceScaleOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerServiceScaleOptions(), token); } - public async Task Update(DockerServiceUpdateOptions options, CancellationToken token = default) + public virtual async Task Update(DockerServiceUpdateOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } diff --git a/src/ModularPipelines.Docker/Services/DockerStack.cs b/src/ModularPipelines.Docker/Services/DockerStack.cs index 31e01db347..715d56df02 100644 --- a/src/ModularPipelines.Docker/Services/DockerStack.cs +++ b/src/ModularPipelines.Docker/Services/DockerStack.cs @@ -17,32 +17,32 @@ ICommand internalCommand private readonly ICommand _command; - public async Task Config(DockerStackConfigOptions? options = default, CancellationToken token = default) + public virtual async Task Config(DockerStackConfigOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerStackConfigOptions(), token); } - public async Task Deploy(DockerStackDeployOptions options, CancellationToken token = default) + public virtual async Task Deploy(DockerStackDeployOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Ls(DockerStackLsOptions? options = default, CancellationToken token = default) + public virtual async Task Ls(DockerStackLsOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerStackLsOptions(), token); } - public async Task Ps(DockerStackPsOptions options, CancellationToken token = default) + public virtual async Task Ps(DockerStackPsOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Rm(DockerStackRmOptions options, CancellationToken token = default) + public virtual async Task Rm(DockerStackRmOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Services(DockerStackServicesOptions options, CancellationToken token = default) + public virtual async Task Services(DockerStackServicesOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } diff --git a/src/ModularPipelines.Docker/Services/DockerSwarm.cs b/src/ModularPipelines.Docker/Services/DockerSwarm.cs index 99e0bf45a6..807f6287fa 100644 --- a/src/ModularPipelines.Docker/Services/DockerSwarm.cs +++ b/src/ModularPipelines.Docker/Services/DockerSwarm.cs @@ -17,42 +17,42 @@ ICommand internalCommand private readonly ICommand _command; - public async Task Ca(DockerSwarmCaOptions? options = default, CancellationToken token = default) + public virtual async Task Ca(DockerSwarmCaOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerSwarmCaOptions(), token); } - public async Task Init(DockerSwarmInitOptions? options = default, CancellationToken token = default) + public virtual async Task Init(DockerSwarmInitOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerSwarmInitOptions(), token); } - public async Task JoinToken(DockerSwarmJoinTokenOptions options, CancellationToken token = default) + public virtual async Task JoinToken(DockerSwarmJoinTokenOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Join(DockerSwarmJoinOptions options, CancellationToken token = default) + public virtual async Task Join(DockerSwarmJoinOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Leave(DockerSwarmLeaveOptions? options = default, CancellationToken token = default) + public virtual async Task Leave(DockerSwarmLeaveOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerSwarmLeaveOptions(), token); } - public async Task UnlockKey(DockerSwarmUnlockKeyOptions? options = default, CancellationToken token = default) + public virtual async Task UnlockKey(DockerSwarmUnlockKeyOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerSwarmUnlockKeyOptions(), token); } - public async Task Unlock(DockerSwarmUnlockOptions? options = default, CancellationToken token = default) + public virtual async Task Unlock(DockerSwarmUnlockOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerSwarmUnlockOptions(), token); } - public async Task Update(DockerSwarmUpdateOptions? options = default, CancellationToken token = default) + public virtual async Task Update(DockerSwarmUpdateOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerSwarmUpdateOptions(), token); } diff --git a/src/ModularPipelines.Docker/Services/DockerSystem.cs b/src/ModularPipelines.Docker/Services/DockerSystem.cs index 2168fc95b9..edd1ba258e 100644 --- a/src/ModularPipelines.Docker/Services/DockerSystem.cs +++ b/src/ModularPipelines.Docker/Services/DockerSystem.cs @@ -17,22 +17,22 @@ ICommand internalCommand private readonly ICommand _command; - public async Task Info(DockerSystemInfoOptions? options = default, CancellationToken token = default) + public virtual async Task Info(DockerSystemInfoOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerSystemInfoOptions(), token); } - public async Task Df(DockerSystemDfOptions? options = default, CancellationToken token = default) + public virtual async Task Df(DockerSystemDfOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerSystemDfOptions(), token); } - public async Task Events(DockerSystemEventsOptions? options = default, CancellationToken token = default) + public virtual async Task Events(DockerSystemEventsOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerSystemEventsOptions(), token); } - public async Task Prune(DockerSystemPruneOptions? options = default, CancellationToken token = default) + public virtual async Task Prune(DockerSystemPruneOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerSystemPruneOptions(), token); } diff --git a/src/ModularPipelines.Docker/Services/DockerTrust.cs b/src/ModularPipelines.Docker/Services/DockerTrust.cs index 472f2f6c72..b2a793920f 100644 --- a/src/ModularPipelines.Docker/Services/DockerTrust.cs +++ b/src/ModularPipelines.Docker/Services/DockerTrust.cs @@ -25,27 +25,27 @@ ICommand internalCommand public DockerTrustKey TrustKey { get; } - public async Task Inspect(DockerTrustInspectOptions? options = default, CancellationToken token = default) + public virtual async Task Inspect(DockerTrustInspectOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerTrustInspectOptions(), token); } - public async Task Key(DockerTrustKeyOptions? options = default, CancellationToken token = default) + public virtual async Task Key(DockerTrustKeyOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerTrustKeyOptions(), token); } - public async Task Revoke(DockerTrustRevokeOptions options, CancellationToken token = default) + public virtual async Task Revoke(DockerTrustRevokeOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Sign(DockerTrustSignOptions? options = default, CancellationToken token = default) + public virtual async Task Sign(DockerTrustSignOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerTrustSignOptions(), token); } - public async Task Signer(DockerTrustSignerOptions? options = default, CancellationToken token = default) + public virtual async Task Signer(DockerTrustSignerOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerTrustSignerOptions(), token); } diff --git a/src/ModularPipelines.Docker/Services/DockerTrustKey.cs b/src/ModularPipelines.Docker/Services/DockerTrustKey.cs index dd29d45a50..72a4bb0f0a 100644 --- a/src/ModularPipelines.Docker/Services/DockerTrustKey.cs +++ b/src/ModularPipelines.Docker/Services/DockerTrustKey.cs @@ -17,12 +17,12 @@ ICommand internalCommand private readonly ICommand _command; - public async Task Generate(DockerTrustKeyGenerateOptions? options = default, CancellationToken token = default) + public virtual async Task Generate(DockerTrustKeyGenerateOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerTrustKeyGenerateOptions(), token); } - public async Task Load(DockerTrustKeyLoadOptions options, CancellationToken token = default) + public virtual async Task Load(DockerTrustKeyLoadOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } diff --git a/src/ModularPipelines.Docker/Services/DockerTrustSigner.cs b/src/ModularPipelines.Docker/Services/DockerTrustSigner.cs index 61b4c56818..8599ea0b56 100644 --- a/src/ModularPipelines.Docker/Services/DockerTrustSigner.cs +++ b/src/ModularPipelines.Docker/Services/DockerTrustSigner.cs @@ -17,12 +17,12 @@ ICommand internalCommand private readonly ICommand _command; - public async Task Add(DockerTrustSignerAddOptions? options = default, CancellationToken token = default) + public virtual async Task Add(DockerTrustSignerAddOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerTrustSignerAddOptions(), token); } - public async Task Remove(DockerTrustSignerRemoveOptions options, CancellationToken token = default) + public virtual async Task Remove(DockerTrustSignerRemoveOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } diff --git a/src/ModularPipelines.Docker/Services/DockerVolume.cs b/src/ModularPipelines.Docker/Services/DockerVolume.cs index d29fa60f6a..0ab8e68169 100644 --- a/src/ModularPipelines.Docker/Services/DockerVolume.cs +++ b/src/ModularPipelines.Docker/Services/DockerVolume.cs @@ -17,32 +17,32 @@ ICommand internalCommand private readonly ICommand _command; - public async Task Create(DockerVolumeCreateOptions? options = default, CancellationToken token = default) + public virtual async Task Create(DockerVolumeCreateOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerVolumeCreateOptions(), token); } - public async Task Inspect(DockerVolumeInspectOptions options, CancellationToken token = default) + public virtual async Task Inspect(DockerVolumeInspectOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Ls(DockerVolumeLsOptions? options = default, CancellationToken token = default) + public virtual async Task Ls(DockerVolumeLsOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerVolumeLsOptions(), token); } - public async Task Prune(DockerVolumePruneOptions? options = default, CancellationToken token = default) + public virtual async Task Prune(DockerVolumePruneOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerVolumePruneOptions(), token); } - public async Task Rm(DockerVolumeRmOptions options, CancellationToken token = default) + public virtual async Task Rm(DockerVolumeRmOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Update(DockerVolumeUpdateOptions? options = default, CancellationToken token = default) + public virtual async Task Update(DockerVolumeUpdateOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DockerVolumeUpdateOptions(), token); } diff --git a/src/ModularPipelines.DotNet/Options/DotNetAddPackageOptions.cs b/src/ModularPipelines.DotNet/Options/DotNetAddPackageOptions.cs index ccb4aa888d..65c000d0ec 100644 --- a/src/ModularPipelines.DotNet/Options/DotNetAddPackageOptions.cs +++ b/src/ModularPipelines.DotNet/Options/DotNetAddPackageOptions.cs @@ -34,23 +34,23 @@ string packageName public string? PackageName { get; set; } [CommandSwitch("--framework")] - public string? Framework { get; set; } + public virtual string? Framework { get; set; } [BooleanCommandSwitch("--interactive")] - public bool? Interactive { get; set; } + public virtual bool? Interactive { get; set; } [BooleanCommandSwitch("--no-restore")] - public bool? NoRestore { get; set; } + public virtual bool? NoRestore { get; set; } [CommandSwitch("--package-directory")] - public string? PackageDirectory { get; set; } + public virtual string? PackageDirectory { get; set; } [BooleanCommandSwitch("--prerelease")] - public bool? Prerelease { get; set; } + public virtual bool? Prerelease { get; set; } [CommandSwitch("--source")] - public string? Source { get; set; } + public virtual string? Source { get; set; } [CommandSwitch("--version")] - public string? Version { get; set; } + public virtual string? Version { get; set; } } diff --git a/src/ModularPipelines.DotNet/Options/DotNetAddReferenceOptions.cs b/src/ModularPipelines.DotNet/Options/DotNetAddReferenceOptions.cs index 4157dc1ba5..864e393c01 100644 --- a/src/ModularPipelines.DotNet/Options/DotNetAddReferenceOptions.cs +++ b/src/ModularPipelines.DotNet/Options/DotNetAddReferenceOptions.cs @@ -31,10 +31,10 @@ string projectReferences public string? Project { get; set; } [CommandSwitch("--framework")] - public string? Framework { get; set; } + public virtual string? Framework { get; set; } [BooleanCommandSwitch("--interactive")] - public bool? Interactive { get; set; } + public virtual bool? Interactive { get; set; } [PositionalArgument(PlaceholderName = "")] public string? ProjectReferences { get; set; } diff --git a/src/ModularPipelines.DotNet/Options/DotNetBuildOptions.cs b/src/ModularPipelines.DotNet/Options/DotNetBuildOptions.cs index e099213b73..b4b854a56c 100644 --- a/src/ModularPipelines.DotNet/Options/DotNetBuildOptions.cs +++ b/src/ModularPipelines.DotNet/Options/DotNetBuildOptions.cs @@ -24,62 +24,62 @@ public DotNetBuildOptions() public string? ProjectSolution { get; set; } [CommandSwitch("--arch")] - public string? Architecture { get; set; } + public virtual string? Architecture { get; set; } [CommandSwitch("--configuration")] - public string? Configuration { get; set; } + public virtual string? Configuration { get; set; } [CommandSwitch("--framework")] - public string? Framework { get; set; } + public virtual string? Framework { get; set; } [BooleanCommandSwitch("--disable-build-servers")] - public bool? DisableBuildServers { get; set; } + public virtual bool? DisableBuildServers { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [BooleanCommandSwitch("--interactive")] - public bool? Interactive { get; set; } + public virtual bool? Interactive { get; set; } [BooleanCommandSwitch("--no-dependencies")] - public bool? NoDependencies { get; set; } + public virtual bool? NoDependencies { get; set; } [BooleanCommandSwitch("--no-incremental")] - public bool? NoIncremental { get; set; } + public virtual bool? NoIncremental { get; set; } [BooleanCommandSwitch("--no-restore")] - public bool? NoRestore { get; set; } + public virtual bool? NoRestore { get; set; } [BooleanCommandSwitch("--nologo")] - public bool? Nologo { get; set; } + public virtual bool? Nologo { get; set; } [BooleanCommandSwitch("--no-self-contained")] - public bool? NoSelfContained { get; set; } + public virtual bool? NoSelfContained { get; set; } [CommandSwitch("--os")] - public string? Os { get; set; } + public virtual string? Os { get; set; } [CommandSwitch("--output")] - public string? OutputDirectory { get; set; } + public virtual string? OutputDirectory { get; set; } [CommandSwitch("--runtime")] - public string? RuntimeIdentifier { get; set; } + public virtual string? RuntimeIdentifier { get; set; } [BooleanCommandSwitch("--self-contained")] - public bool? SelfContained { get; set; } + public virtual bool? SelfContained { get; set; } [CommandSwitch("--source")] - public string? Source { get; set; } + public virtual string? Source { get; set; } [BooleanCommandSwitch("--tl")] - public bool? Tl { get; set; } + public virtual bool? Tl { get; set; } [BooleanCommandSwitch("--use-current-runtime")] - public bool? UseCurrentRuntime { get; set; } + public virtual bool? UseCurrentRuntime { get; set; } [CommandSwitch("--verbosity")] - public string? Verbosity { get; set; } + public virtual string? Verbosity { get; set; } [CommandSwitch("--version-suffix")] - public string? VersionSuffix { get; set; } + public virtual string? VersionSuffix { get; set; } } diff --git a/src/ModularPipelines.DotNet/Options/DotNetBuildServerOptions.cs b/src/ModularPipelines.DotNet/Options/DotNetBuildServerOptions.cs index d0d8dddc44..2def2737e3 100644 --- a/src/ModularPipelines.DotNet/Options/DotNetBuildServerOptions.cs +++ b/src/ModularPipelines.DotNet/Options/DotNetBuildServerOptions.cs @@ -8,11 +8,11 @@ namespace ModularPipelines.DotNet.Options; public record DotNetBuildServerOptions : DotNetOptions { [BooleanCommandSwitch("--msbuild")] - public bool? Msbuild { get; set; } + public virtual bool? Msbuild { get; set; } [BooleanCommandSwitch("--razor")] - public bool? Razor { get; set; } + public virtual bool? Razor { get; set; } [BooleanCommandSwitch("--vbcscompiler")] - public bool? Vbcscompiler { get; set; } + public virtual bool? Vbcscompiler { get; set; } } diff --git a/src/ModularPipelines.DotNet/Options/DotNetCleanOptions.cs b/src/ModularPipelines.DotNet/Options/DotNetCleanOptions.cs index 87aaa99f0f..10ddec4b98 100644 --- a/src/ModularPipelines.DotNet/Options/DotNetCleanOptions.cs +++ b/src/ModularPipelines.DotNet/Options/DotNetCleanOptions.cs @@ -24,26 +24,26 @@ public DotNetCleanOptions() public string? ProjectSolution { get; set; } [CommandSwitch("--configuration")] - public string? Configuration { get; set; } + public virtual string? Configuration { get; set; } [CommandSwitch("--framework")] - public string? Framework { get; set; } + public virtual string? Framework { get; set; } [BooleanCommandSwitch("--interactive")] - public bool? Interactive { get; set; } + public virtual bool? Interactive { get; set; } [BooleanCommandSwitch("--nologo")] - public bool? Nologo { get; set; } + public virtual bool? Nologo { get; set; } [CommandSwitch("--output")] - public string? OutputDirectory { get; set; } + public virtual string? OutputDirectory { get; set; } [CommandSwitch("--runtime")] - public string? RuntimeIdentifier { get; set; } + public virtual string? RuntimeIdentifier { get; set; } [BooleanCommandSwitch("--tl")] - public bool? Tl { get; set; } + public virtual bool? Tl { get; set; } [CommandSwitch("--verbosity")] - public string? Verbosity { get; set; } + public virtual string? Verbosity { get; set; } } diff --git a/src/ModularPipelines.DotNet/Options/DotNetDevCertsOptions.cs b/src/ModularPipelines.DotNet/Options/DotNetDevCertsOptions.cs index 62d2075f01..394c5294c6 100644 --- a/src/ModularPipelines.DotNet/Options/DotNetDevCertsOptions.cs +++ b/src/ModularPipelines.DotNet/Options/DotNetDevCertsOptions.cs @@ -8,35 +8,35 @@ namespace ModularPipelines.DotNet.Options; public record DotNetDevCertsOptions : DotNetOptions { [BooleanCommandSwitch("--check")] - public bool? Check { get; set; } + public virtual bool? Check { get; set; } [BooleanCommandSwitch("--clean")] - public bool? Clean { get; set; } + public virtual bool? Clean { get; set; } [CommandSwitch("--export-path")] - public string? ExportPath { get; set; } + public virtual string? ExportPath { get; set; } [BooleanCommandSwitch("--format")] - public bool? Format { get; set; } + public virtual bool? Format { get; set; } [BooleanCommandSwitch("--import")] - public bool? Import { get; set; } + public virtual bool? Import { get; set; } [BooleanCommandSwitch("--no-password")] - public bool? NoPassword { get; set; } + public virtual bool? NoPassword { get; set; } [BooleanCommandSwitch("--password")] - public bool? Password { get; set; } + public virtual bool? Password { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } [BooleanCommandSwitch("--trust")] - public bool? Trust { get; set; } + public virtual bool? Trust { get; set; } [BooleanCommandSwitch("--verbose")] - public bool? Verbose { get; set; } + public virtual bool? Verbose { get; set; } [BooleanCommandSwitch("--version")] - public bool? Version { get; set; } + public virtual bool? Version { get; set; } } diff --git a/src/ModularPipelines.DotNet/Options/DotNetFormatOptions.cs b/src/ModularPipelines.DotNet/Options/DotNetFormatOptions.cs index f0f73f630e..c14a46cc55 100644 --- a/src/ModularPipelines.DotNet/Options/DotNetFormatOptions.cs +++ b/src/ModularPipelines.DotNet/Options/DotNetFormatOptions.cs @@ -24,35 +24,35 @@ public DotNetFormatOptions() public string? ProjectSolution { get; set; } [CommandSwitch("--diagnostics")] - public string? Diagnostics { get; set; } + public virtual string? Diagnostics { get; set; } [BooleanCommandSwitch("--severity")] - public string? Severity { get; set; } + public virtual string? Severity { get; set; } [BooleanCommandSwitch("--no-restore")] - public bool? NoRestore { get; set; } + public virtual bool? NoRestore { get; set; } [BooleanCommandSwitch("--verify-no-changes")] - public bool? VerifyNoChanges { get; set; } + public virtual bool? VerifyNoChanges { get; set; } [CommandSwitch("--include")] - public string? Include { get; set; } + public virtual string? Include { get; set; } [CommandSwitch("--exclude")] - public string? Exclude { get; set; } + public virtual string? Exclude { get; set; } [BooleanCommandSwitch("--include-generated")] - public bool? IncludeGenerated { get; set; } + public virtual bool? IncludeGenerated { get; set; } [CommandSwitch("--verbosity")] - public string? Verbosity { get; set; } + public virtual string? Verbosity { get; set; } [CommandSwitch("--binarylog")] - public string? Binarylog { get; set; } + public virtual string? Binarylog { get; set; } [CommandSwitch("--report")] - public string? Report { get; set; } + public virtual string? Report { get; set; } [BooleanCommandSwitch("--help")] - public bool? Help { get; set; } + public virtual bool? Help { get; set; } } diff --git a/src/ModularPipelines.DotNet/Options/DotNetListPackageOptions.cs b/src/ModularPipelines.DotNet/Options/DotNetListPackageOptions.cs index 8c7813892e..bca783fa93 100644 --- a/src/ModularPipelines.DotNet/Options/DotNetListPackageOptions.cs +++ b/src/ModularPipelines.DotNet/Options/DotNetListPackageOptions.cs @@ -24,44 +24,44 @@ public DotNetListPackageOptions() public string? ProjectSolution { get; set; } [CommandSwitch("--config")] - public string? Config { get; set; } + public virtual string? Config { get; set; } [BooleanCommandSwitch("--deprecated")] - public bool? Deprecated { get; set; } + public virtual bool? Deprecated { get; set; } [CommandSwitch("--framework")] - public IEnumerable? Framework { get; set; } + public virtual IEnumerable? Framework { get; set; } [BooleanCommandSwitch("--highest-minor")] - public bool? HighestMinor { get; set; } + public virtual bool? HighestMinor { get; set; } [BooleanCommandSwitch("--highest-patch")] - public bool? HighestPatch { get; set; } + public virtual bool? HighestPatch { get; set; } [BooleanCommandSwitch("--include-prerelease")] - public bool? IncludePrerelease { get; set; } + public virtual bool? IncludePrerelease { get; set; } [BooleanCommandSwitch("--include-transitive")] - public bool? IncludeTransitive { get; set; } + public virtual bool? IncludeTransitive { get; set; } [BooleanCommandSwitch("--interactive")] - public bool? Interactive { get; set; } + public virtual bool? Interactive { get; set; } [BooleanCommandSwitch("--outdated")] - public bool? Outdated { get; set; } + public virtual bool? Outdated { get; set; } [CommandSwitch("--source")] - public string? Source { get; set; } + public virtual string? Source { get; set; } [CommandSwitch("--verbosity")] - public string? Verbosity { get; set; } + public virtual string? Verbosity { get; set; } [BooleanCommandSwitch("--vulnerable")] - public bool? Vulnerable { get; set; } + public virtual bool? Vulnerable { get; set; } [CommandSwitch("--format")] - public string? Format { get; set; } + public virtual string? Format { get; set; } [CommandSwitch("--output-version")] - public string? OutputVersion { get; set; } + public virtual string? OutputVersion { get; set; } } diff --git a/src/ModularPipelines.DotNet/Options/DotNetMigrateOptions.cs b/src/ModularPipelines.DotNet/Options/DotNetMigrateOptions.cs index c1f7f40918..06907b2f31 100644 --- a/src/ModularPipelines.DotNet/Options/DotNetMigrateOptions.cs +++ b/src/ModularPipelines.DotNet/Options/DotNetMigrateOptions.cs @@ -24,23 +24,23 @@ public DotNetMigrateOptions() public string? SolutionFileProjectDir { get; set; } [CommandSwitch("--format-report-file-json")] - public string? FormatReportFileJson { get; set; } + public virtual string? FormatReportFileJson { get; set; } [CommandSwitch("--report-file")] - public string? ReportFile { get; set; } + public virtual string? ReportFile { get; set; } [BooleanCommandSwitch("--skip-project-references")] - public bool? SkipProjectReferences { get; set; } + public virtual bool? SkipProjectReferences { get; set; } [BooleanCommandSwitch("--skip-backup")] - public bool? SkipBackup { get; set; } + public virtual bool? SkipBackup { get; set; } [CommandSwitch("--template-file")] - public string? TemplateFile { get; set; } + public virtual string? TemplateFile { get; set; } [BooleanCommandSwitch("--sdk-package-version")] - public bool? SdkPackageVersion { get; set; } + public virtual bool? SdkPackageVersion { get; set; } [BooleanCommandSwitch("--xproj-file")] - public bool? XprojFile { get; set; } + public virtual bool? XprojFile { get; set; } } diff --git a/src/ModularPipelines.DotNet/Options/DotNetMsbuildOptions.cs b/src/ModularPipelines.DotNet/Options/DotNetMsbuildOptions.cs index 972a940cd0..6a0e40f3ad 100644 --- a/src/ModularPipelines.DotNet/Options/DotNetMsbuildOptions.cs +++ b/src/ModularPipelines.DotNet/Options/DotNetMsbuildOptions.cs @@ -24,5 +24,5 @@ public DotNetMsbuildOptions() public string? MsbuildArguments { get; set; } [BooleanCommandSwitch("-h")] - public bool? H { get; set; } + public virtual bool? H { get; set; } } diff --git a/src/ModularPipelines.DotNet/Options/DotNetNewOptions.cs b/src/ModularPipelines.DotNet/Options/DotNetNewOptions.cs index 7725897a69..68cd8aaf17 100644 --- a/src/ModularPipelines.DotNet/Options/DotNetNewOptions.cs +++ b/src/ModularPipelines.DotNet/Options/DotNetNewOptions.cs @@ -19,32 +19,32 @@ string template public string? Template { get; set; } [BooleanCommandSwitch("--dry-run")] - public bool? DryRun { get; set; } + public virtual bool? DryRun { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [BooleanCommandSwitch("--language")] - public bool? Language { get; set; } + public virtual bool? Language { get; set; } [CommandSwitch("--name")] - public string? Name { get; set; } + public virtual string? Name { get; set; } [CommandSwitch("--framework")] - public string? Framework { get; set; } + public virtual string? Framework { get; set; } [BooleanCommandSwitch("--no-update-check")] - public bool? NoUpdateCheck { get; set; } + public virtual bool? NoUpdateCheck { get; set; } [CommandSwitch("--output")] - public string? OutputDirectory { get; set; } + public virtual string? OutputDirectory { get; set; } [CommandSwitch("--project")] - public string? ProjectPath { get; set; } + public virtual string? ProjectPath { get; set; } [BooleanCommandSwitch("--diagnostics")] - public bool? Diagnostics { get; set; } + public virtual bool? Diagnostics { get; set; } [CommandSwitch("--verbosity")] - public string? Verbosity { get; set; } + public virtual string? Verbosity { get; set; } } diff --git a/src/ModularPipelines.DotNet/Options/DotNetNugetAddSourceOptions.cs b/src/ModularPipelines.DotNet/Options/DotNetNugetAddSourceOptions.cs index 022bec61b1..18c7b05b00 100644 --- a/src/ModularPipelines.DotNet/Options/DotNetNugetAddSourceOptions.cs +++ b/src/ModularPipelines.DotNet/Options/DotNetNugetAddSourceOptions.cs @@ -19,20 +19,20 @@ string packageSourcePath public string? PackageSourcePath { get; set; } [CommandSwitch("--name")] - public string? Name { get; set; } + public virtual string? Name { get; set; } [CommandSwitch("--username")] - public string? Username { get; set; } + public virtual string? Username { get; set; } [CommandSwitch("--password")] - public string? Password { get; set; } + public virtual string? Password { get; set; } [BooleanCommandSwitch("--store-password-in-clear-text")] - public bool? StorePasswordInClearText { get; set; } + public virtual bool? StorePasswordInClearText { get; set; } [CommandSwitch("--valid-authentication-types")] - public string? ValidAuthenticationTypes { get; set; } + public virtual string? ValidAuthenticationTypes { get; set; } [CommandSwitch("--configfile")] - public string? Configfile { get; set; } + public virtual string? Configfile { get; set; } } diff --git a/src/ModularPipelines.DotNet/Options/DotNetNugetDeleteOptions.cs b/src/ModularPipelines.DotNet/Options/DotNetNugetDeleteOptions.cs index 801c91ecc8..73647ca541 100644 --- a/src/ModularPipelines.DotNet/Options/DotNetNugetDeleteOptions.cs +++ b/src/ModularPipelines.DotNet/Options/DotNetNugetDeleteOptions.cs @@ -24,20 +24,20 @@ public DotNetNugetDeleteOptions() public string? PackageNamePackageVersion { get; set; } [BooleanCommandSwitch("--force-english-output")] - public bool? ForceEnglishOutput { get; set; } + public virtual bool? ForceEnglishOutput { get; set; } [BooleanCommandSwitch("--interactive")] - public bool? Interactive { get; set; } + public virtual bool? Interactive { get; set; } [CommandSwitch("--api-key")] - public string? ApiKey { get; set; } + public virtual string? ApiKey { get; set; } [BooleanCommandSwitch("--no-service-endpoint")] - public bool? NoServiceEndpoint { get; set; } + public virtual bool? NoServiceEndpoint { get; set; } [BooleanCommandSwitch("--non-interactive")] - public bool? NonInteractive { get; set; } + public virtual bool? NonInteractive { get; set; } [CommandSwitch("--source")] - public string? Source { get; set; } + public virtual string? Source { get; set; } } diff --git a/src/ModularPipelines.DotNet/Options/DotNetNugetDisableSourceOptions.cs b/src/ModularPipelines.DotNet/Options/DotNetNugetDisableSourceOptions.cs index d8e5e47c66..e93f2f29d0 100644 --- a/src/ModularPipelines.DotNet/Options/DotNetNugetDisableSourceOptions.cs +++ b/src/ModularPipelines.DotNet/Options/DotNetNugetDisableSourceOptions.cs @@ -19,5 +19,5 @@ string name public string? Name { get; set; } [CommandSwitch("--configfile")] - public string? Configfile { get; set; } + public virtual string? Configfile { get; set; } } diff --git a/src/ModularPipelines.DotNet/Options/DotNetNugetEnableSourceOptions.cs b/src/ModularPipelines.DotNet/Options/DotNetNugetEnableSourceOptions.cs index 2073c6e112..884f1c7000 100644 --- a/src/ModularPipelines.DotNet/Options/DotNetNugetEnableSourceOptions.cs +++ b/src/ModularPipelines.DotNet/Options/DotNetNugetEnableSourceOptions.cs @@ -19,5 +19,5 @@ string name public string? Name { get; set; } [CommandSwitch("--configfile")] - public string? Configfile { get; set; } + public virtual string? Configfile { get; set; } } diff --git a/src/ModularPipelines.DotNet/Options/DotNetNugetListSourceOptions.cs b/src/ModularPipelines.DotNet/Options/DotNetNugetListSourceOptions.cs index f5d73968e0..2fa2aefd10 100644 --- a/src/ModularPipelines.DotNet/Options/DotNetNugetListSourceOptions.cs +++ b/src/ModularPipelines.DotNet/Options/DotNetNugetListSourceOptions.cs @@ -8,8 +8,8 @@ namespace ModularPipelines.DotNet.Options; public record DotNetNugetListSourceOptions : DotNetOptions { [BooleanCommandSwitch("--format")] - public bool? Format { get; set; } + public virtual bool? Format { get; set; } [CommandSwitch("--configfile")] - public string? Configfile { get; set; } + public virtual string? Configfile { get; set; } } diff --git a/src/ModularPipelines.DotNet/Options/DotNetNugetLocalsOptions.cs b/src/ModularPipelines.DotNet/Options/DotNetNugetLocalsOptions.cs index bb35362572..af89d101e2 100644 --- a/src/ModularPipelines.DotNet/Options/DotNetNugetLocalsOptions.cs +++ b/src/ModularPipelines.DotNet/Options/DotNetNugetLocalsOptions.cs @@ -19,11 +19,11 @@ string cacheLocation public string? CacheLocation { get; set; } [BooleanCommandSwitch("--clear")] - public bool? Clear { get; set; } + public virtual bool? Clear { get; set; } [BooleanCommandSwitch("--list")] - public bool? List { get; set; } + public virtual bool? List { get; set; } [BooleanCommandSwitch("--force-english-output")] - public bool? ForceEnglishOutput { get; set; } + public virtual bool? ForceEnglishOutput { get; set; } } diff --git a/src/ModularPipelines.DotNet/Options/DotNetNugetPushOptions.cs b/src/ModularPipelines.DotNet/Options/DotNetNugetPushOptions.cs index 4719531cf4..79113edf17 100644 --- a/src/ModularPipelines.DotNet/Options/DotNetNugetPushOptions.cs +++ b/src/ModularPipelines.DotNet/Options/DotNetNugetPushOptions.cs @@ -24,35 +24,35 @@ public DotNetNugetPushOptions() public string? Path { get; set; } [BooleanCommandSwitch("--disable-buffering")] - public bool? DisableBuffering { get; set; } + public virtual bool? DisableBuffering { get; set; } [BooleanCommandSwitch("--force-english-output")] - public bool? ForceEnglishOutput { get; set; } + public virtual bool? ForceEnglishOutput { get; set; } [BooleanCommandSwitch("--interactive")] - public bool? Interactive { get; set; } + public virtual bool? Interactive { get; set; } [CommandSwitch("--api-key")] - public string? ApiKey { get; set; } + public virtual string? ApiKey { get; set; } [BooleanCommandSwitch("--no-symbols")] - public bool? NoSymbols { get; set; } + public virtual bool? NoSymbols { get; set; } [BooleanCommandSwitch("--no-service-endpoint")] - public bool? NoServiceEndpoint { get; set; } + public virtual bool? NoServiceEndpoint { get; set; } [CommandSwitch("--source")] - public string? Source { get; set; } + public virtual string? Source { get; set; } [BooleanCommandSwitch("--skip-duplicate")] - public bool? SkipDuplicate { get; set; } + public virtual bool? SkipDuplicate { get; set; } [CommandSwitch("--symbol-api-key")] - public string? SymbolApiKey { get; set; } + public virtual string? SymbolApiKey { get; set; } [CommandSwitch("--symbol-source")] - public string? SymbolSource { get; set; } + public virtual string? SymbolSource { get; set; } [CommandSwitch("--timeout")] - public string? Timeout { get; set; } + public virtual string? Timeout { get; set; } } diff --git a/src/ModularPipelines.DotNet/Options/DotNetNugetRemoveSourceOptions.cs b/src/ModularPipelines.DotNet/Options/DotNetNugetRemoveSourceOptions.cs index f45c4a70e2..e5ad6d8994 100644 --- a/src/ModularPipelines.DotNet/Options/DotNetNugetRemoveSourceOptions.cs +++ b/src/ModularPipelines.DotNet/Options/DotNetNugetRemoveSourceOptions.cs @@ -19,5 +19,5 @@ string name public string? Name { get; set; } [CommandSwitch("--configfile")] - public string? Configfile { get; set; } + public virtual string? Configfile { get; set; } } diff --git a/src/ModularPipelines.DotNet/Options/DotNetNugetSignOptions.cs b/src/ModularPipelines.DotNet/Options/DotNetNugetSignOptions.cs index 296dbc6d4f..11aff7b67a 100644 --- a/src/ModularPipelines.DotNet/Options/DotNetNugetSignOptions.cs +++ b/src/ModularPipelines.DotNet/Options/DotNetNugetSignOptions.cs @@ -24,38 +24,38 @@ public DotNetNugetSignOptions() public string? PackagePath { get; set; } [CommandSwitch("--certificate-path")] - public string? CertificatePath { get; set; } + public virtual string? CertificatePath { get; set; } [CommandSwitch("--certificate-store-name")] - public string? CertificateStoreName { get; set; } + public virtual string? CertificateStoreName { get; set; } [CommandSwitch("--certificate-store-location")] - public string? CertificateStoreLocation { get; set; } + public virtual string? CertificateStoreLocation { get; set; } [CommandSwitch("--certificate-subject-name")] - public string? CertificateSubjectName { get; set; } + public virtual string? CertificateSubjectName { get; set; } [CommandSwitch("--certificate-fingerprint")] - public string? CertificateFingerprint { get; set; } + public virtual string? CertificateFingerprint { get; set; } [CommandSwitch("--certificate-password")] - public string? CertificatePassword { get; set; } + public virtual string? CertificatePassword { get; set; } [CommandSwitch("--hash-algorithm")] - public string? Hashalgorithm { get; set; } + public virtual string? Hashalgorithm { get; set; } [CommandSwitch("--output")] - public string? OutputDirectory { get; set; } + public virtual string? OutputDirectory { get; set; } [BooleanCommandSwitch("--overwrite")] - public bool? Overwrite { get; set; } + public virtual bool? Overwrite { get; set; } [CommandSwitch("--timestamp-hash-algorithm")] - public string? TimestampHashAlgorithm { get; set; } + public virtual string? TimestampHashAlgorithm { get; set; } [CommandSwitch("--timestamper")] - public string? Timestamper { get; set; } + public virtual string? Timestamper { get; set; } [CommandSwitch("--verbosity")] - public string? Verbosity { get; set; } + public virtual string? Verbosity { get; set; } } diff --git a/src/ModularPipelines.DotNet/Options/DotNetNugetUpdateSourceOptions.cs b/src/ModularPipelines.DotNet/Options/DotNetNugetUpdateSourceOptions.cs index 473c891c66..5fb79300ed 100644 --- a/src/ModularPipelines.DotNet/Options/DotNetNugetUpdateSourceOptions.cs +++ b/src/ModularPipelines.DotNet/Options/DotNetNugetUpdateSourceOptions.cs @@ -19,20 +19,20 @@ string name public string? Name { get; set; } [CommandSwitch("--source")] - public string? Source { get; set; } + public virtual string? Source { get; set; } [CommandSwitch("--username")] - public string? Username { get; set; } + public virtual string? Username { get; set; } [CommandSwitch("--password")] - public string? Password { get; set; } + public virtual string? Password { get; set; } [BooleanCommandSwitch("--store-password-in-clear-text")] - public bool? StorePasswordInClearText { get; set; } + public virtual bool? StorePasswordInClearText { get; set; } [CommandSwitch("--valid-authentication-types")] - public string? ValidAuthenticationTypes { get; set; } + public virtual string? ValidAuthenticationTypes { get; set; } [CommandSwitch("--configfile")] - public string? Configfile { get; set; } + public virtual string? Configfile { get; set; } } diff --git a/src/ModularPipelines.DotNet/Options/DotNetNugetVerifyOptions.cs b/src/ModularPipelines.DotNet/Options/DotNetNugetVerifyOptions.cs index 1927bf8503..d8ba1cab4a 100644 --- a/src/ModularPipelines.DotNet/Options/DotNetNugetVerifyOptions.cs +++ b/src/ModularPipelines.DotNet/Options/DotNetNugetVerifyOptions.cs @@ -24,14 +24,14 @@ public DotNetNugetVerifyOptions() public string? PackagePath { get; set; } [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } [CommandSwitch("--certificate-fingerprint")] - public IEnumerable? CertificateFingerprint { get; set; } + public virtual IEnumerable? CertificateFingerprint { get; set; } [CommandSwitch("--verbosity")] - public string? Verbosity { get; set; } + public virtual string? Verbosity { get; set; } [CommandSwitch("--configfile")] - public string? Configfile { get; set; } + public virtual string? Configfile { get; set; } } diff --git a/src/ModularPipelines.DotNet/Options/DotNetOptions.cs b/src/ModularPipelines.DotNet/Options/DotNetOptions.cs index e198c2be89..6357ef3d77 100644 --- a/src/ModularPipelines.DotNet/Options/DotNetOptions.cs +++ b/src/ModularPipelines.DotNet/Options/DotNetOptions.cs @@ -9,5 +9,5 @@ namespace ModularPipelines.DotNet.Options; public record DotNetOptions() : CommandLineToolOptions("dotnet") { [CommandSwitch("--property:", SwitchValueSeparator = "")] - public IEnumerable? Properties { get; set; } + public virtual IEnumerable? Properties { get; set; } } diff --git a/src/ModularPipelines.DotNet/Options/DotNetPackOptions.cs b/src/ModularPipelines.DotNet/Options/DotNetPackOptions.cs index fecd541fe8..240d7a840e 100644 --- a/src/ModularPipelines.DotNet/Options/DotNetPackOptions.cs +++ b/src/ModularPipelines.DotNet/Options/DotNetPackOptions.cs @@ -24,47 +24,47 @@ public DotNetPackOptions() public string? ProjectSolution { get; set; } [CommandSwitch("--configuration")] - public string? Configuration { get; set; } + public virtual string? Configuration { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [BooleanCommandSwitch("--include-source")] - public bool? IncludeSource { get; set; } + public virtual bool? IncludeSource { get; set; } [BooleanCommandSwitch("--include-symbols")] - public bool? IncludeSymbols { get; set; } + public virtual bool? IncludeSymbols { get; set; } [BooleanCommandSwitch("--interactive")] - public bool? Interactive { get; set; } + public virtual bool? Interactive { get; set; } [BooleanCommandSwitch("--no-build")] - public bool? NoBuild { get; set; } + public virtual bool? NoBuild { get; set; } [BooleanCommandSwitch("--no-dependencies")] - public bool? NoDependencies { get; set; } + public virtual bool? NoDependencies { get; set; } [BooleanCommandSwitch("--no-restore")] - public bool? NoRestore { get; set; } + public virtual bool? NoRestore { get; set; } [BooleanCommandSwitch("--nologo")] - public bool? Nologo { get; set; } + public virtual bool? Nologo { get; set; } [CommandSwitch("--output")] - public string? OutputDirectory { get; set; } + public virtual string? OutputDirectory { get; set; } [CommandSwitch("--runtime")] - public string? RuntimeIdentifier { get; set; } + public virtual string? RuntimeIdentifier { get; set; } [BooleanCommandSwitch("--serviceable")] - public bool? Serviceable { get; set; } + public virtual bool? Serviceable { get; set; } [BooleanCommandSwitch("--tl")] - public bool? Tl { get; set; } + public virtual bool? Tl { get; set; } [CommandSwitch("--verbosity")] - public string? Verbosity { get; set; } + public virtual string? Verbosity { get; set; } [CommandSwitch("--version-suffix")] - public string? VersionSuffix { get; set; } + public virtual string? VersionSuffix { get; set; } } diff --git a/src/ModularPipelines.DotNet/Options/DotNetPublishOptions.cs b/src/ModularPipelines.DotNet/Options/DotNetPublishOptions.cs index 700dbe68cc..cabdfa7c93 100644 --- a/src/ModularPipelines.DotNet/Options/DotNetPublishOptions.cs +++ b/src/ModularPipelines.DotNet/Options/DotNetPublishOptions.cs @@ -24,65 +24,65 @@ public DotNetPublishOptions() public string? ProjectSolution { get; set; } [CommandSwitch("--arch")] - public string? Architecture { get; set; } + public virtual string? Architecture { get; set; } [CommandSwitch("--configuration")] - public string? Configuration { get; set; } + public virtual string? Configuration { get; set; } [BooleanCommandSwitch("--disable-build-servers")] - public bool? DisableBuildServers { get; set; } + public virtual bool? DisableBuildServers { get; set; } [CommandSwitch("--framework")] - public string? Framework { get; set; } + public virtual string? Framework { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [BooleanCommandSwitch("--interactive")] - public bool? Interactive { get; set; } + public virtual bool? Interactive { get; set; } [CommandSwitch("--manifest")] - public string? Manifest { get; set; } + public virtual string? Manifest { get; set; } [BooleanCommandSwitch("--no-build")] - public bool? NoBuild { get; set; } + public virtual bool? NoBuild { get; set; } [BooleanCommandSwitch("--no-dependencies")] - public bool? NoDependencies { get; set; } + public virtual bool? NoDependencies { get; set; } [BooleanCommandSwitch("--no-restore")] - public bool? NoRestore { get; set; } + public virtual bool? NoRestore { get; set; } [BooleanCommandSwitch("--nologo")] - public bool? Nologo { get; set; } + public virtual bool? Nologo { get; set; } [CommandSwitch("--output")] - public string? OutputDirectory { get; set; } + public virtual string? OutputDirectory { get; set; } [CommandSwitch("--os")] - public string? Os { get; set; } + public virtual string? Os { get; set; } [CommandSwitch("--runtime")] - public string? RuntimeIdentifier { get; set; } + public virtual string? RuntimeIdentifier { get; set; } [BooleanCommandSwitch("--self-contained")] - public bool? SelfContained { get; set; } + public virtual bool? SelfContained { get; set; } [BooleanCommandSwitch("--no-self-contained")] - public bool? NoSelfContained { get; set; } + public virtual bool? NoSelfContained { get; set; } [CommandSwitch("--source")] - public string? Source { get; set; } + public virtual string? Source { get; set; } [BooleanCommandSwitch("--tl")] - public bool? Tl { get; set; } + public virtual bool? Tl { get; set; } [BooleanCommandSwitch("--use-current-runtime")] - public bool? UseCurrentRuntime { get; set; } + public virtual bool? UseCurrentRuntime { get; set; } [CommandSwitch("--verbosity")] - public string? Verbosity { get; set; } + public virtual string? Verbosity { get; set; } [CommandSwitch("--version-suffix")] - public string? VersionSuffix { get; set; } + public virtual string? VersionSuffix { get; set; } } diff --git a/src/ModularPipelines.DotNet/Options/DotNetRemoveReferenceOptions.cs b/src/ModularPipelines.DotNet/Options/DotNetRemoveReferenceOptions.cs index 27c3ba1be9..dd4a5afe91 100644 --- a/src/ModularPipelines.DotNet/Options/DotNetRemoveReferenceOptions.cs +++ b/src/ModularPipelines.DotNet/Options/DotNetRemoveReferenceOptions.cs @@ -31,7 +31,7 @@ string projectReferences public string? Project { get; set; } [CommandSwitch("--framework")] - public string? Framework { get; set; } + public virtual string? Framework { get; set; } [PositionalArgument(PlaceholderName = "")] public string? ProjectReferences { get; set; } diff --git a/src/ModularPipelines.DotNet/Options/DotNetRestoreOptions.cs b/src/ModularPipelines.DotNet/Options/DotNetRestoreOptions.cs index 2e6bb43f1d..2ab98504ba 100644 --- a/src/ModularPipelines.DotNet/Options/DotNetRestoreOptions.cs +++ b/src/ModularPipelines.DotNet/Options/DotNetRestoreOptions.cs @@ -24,56 +24,56 @@ public DotNetRestoreOptions() public string? Path { get; set; } [CommandSwitch("--configfile")] - public string? Configfile { get; set; } + public virtual string? Configfile { get; set; } [BooleanCommandSwitch("--disable-build-servers")] - public bool? DisableBuildServers { get; set; } + public virtual bool? DisableBuildServers { get; set; } [BooleanCommandSwitch("--disable-parallel")] - public bool? DisableParallel { get; set; } + public virtual bool? DisableParallel { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [BooleanCommandSwitch("--force-evaluate")] - public bool? ForceEvaluate { get; set; } + public virtual bool? ForceEvaluate { get; set; } [BooleanCommandSwitch("--ignore-failed-sources")] - public bool? IgnoreFailedSources { get; set; } + public virtual bool? IgnoreFailedSources { get; set; } [BooleanCommandSwitch("--interactive")] - public bool? Interactive { get; set; } + public virtual bool? Interactive { get; set; } [CommandSwitch("--lock-file-path")] - public string? LockFilePath { get; set; } + public virtual string? LockFilePath { get; set; } [BooleanCommandSwitch("--locked-mode")] - public bool? LockedMode { get; set; } + public virtual bool? LockedMode { get; set; } [BooleanCommandSwitch("--no-cache")] - public bool? NoCache { get; set; } + public virtual bool? NoCache { get; set; } [BooleanCommandSwitch("--no-dependencies")] - public bool? NoDependencies { get; set; } + public virtual bool? NoDependencies { get; set; } [CommandSwitch("--packages")] - public string? PackagesDirectory { get; set; } + public virtual string? PackagesDirectory { get; set; } [CommandSwitch("--runtime")] - public string? RuntimeIdentifier { get; set; } + public virtual string? RuntimeIdentifier { get; set; } [CommandSwitch("--source")] - public IEnumerable? Source { get; set; } + public virtual IEnumerable? Source { get; set; } [BooleanCommandSwitch("--tl")] - public bool? Tl { get; set; } + public virtual bool? Tl { get; set; } [BooleanCommandSwitch("--use-current-runtime")] - public bool? UseCurrentRuntime { get; set; } + public virtual bool? UseCurrentRuntime { get; set; } [BooleanCommandSwitch("--use-lock-file")] - public bool? UseLockFile { get; set; } + public virtual bool? UseLockFile { get; set; } [CommandSwitch("--verbosity")] - public string? Verbosity { get; set; } + public virtual string? Verbosity { get; set; } } diff --git a/src/ModularPipelines.DotNet/Options/DotNetRunOptions.cs b/src/ModularPipelines.DotNet/Options/DotNetRunOptions.cs index eb824a7c49..2c5231b9e8 100644 --- a/src/ModularPipelines.DotNet/Options/DotNetRunOptions.cs +++ b/src/ModularPipelines.DotNet/Options/DotNetRunOptions.cs @@ -8,47 +8,47 @@ namespace ModularPipelines.DotNet.Options; public record DotNetRunOptions : DotNetOptions { [CommandSwitch("--arch")] - public string? Architecture { get; set; } + public virtual string? Architecture { get; set; } [CommandSwitch("--configuration")] - public string? Configuration { get; set; } + public virtual string? Configuration { get; set; } [CommandSwitch("--framework")] - public string? Framework { get; set; } + public virtual string? Framework { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [BooleanCommandSwitch("--interactive")] - public bool? Interactive { get; set; } + public virtual bool? Interactive { get; set; } [CommandSwitch("--launch-profile")] - public string? LaunchProfile { get; set; } + public virtual string? LaunchProfile { get; set; } [BooleanCommandSwitch("--no-build")] - public bool? NoBuild { get; set; } + public virtual bool? NoBuild { get; set; } [BooleanCommandSwitch("--no-dependencies")] - public bool? NoDependencies { get; set; } + public virtual bool? NoDependencies { get; set; } [BooleanCommandSwitch("--no-launch-profile")] - public bool? NoLaunchProfile { get; set; } + public virtual bool? NoLaunchProfile { get; set; } [BooleanCommandSwitch("--no-restore")] - public bool? NoRestore { get; set; } + public virtual bool? NoRestore { get; set; } [CommandSwitch("--os")] - public string? Os { get; set; } + public virtual string? Os { get; set; } [CommandSwitch("--project")] - public string? Project { get; set; } + public virtual string? Project { get; set; } [CommandSwitch("--runtime")] - public string? RuntimeIdentifier { get; set; } + public virtual string? RuntimeIdentifier { get; set; } [BooleanCommandSwitch("--tl")] - public bool? Tl { get; set; } + public virtual bool? Tl { get; set; } [CommandSwitch("--verbosity")] - public string? Verbosity { get; set; } + public virtual string? Verbosity { get; set; } } diff --git a/src/ModularPipelines.DotNet/Options/DotNetStoreOptions.cs b/src/ModularPipelines.DotNet/Options/DotNetStoreOptions.cs index 72146e565a..f3cb53b79e 100644 --- a/src/ModularPipelines.DotNet/Options/DotNetStoreOptions.cs +++ b/src/ModularPipelines.DotNet/Options/DotNetStoreOptions.cs @@ -22,35 +22,35 @@ string runtimeIdentifier } [BooleanCommandSwitch("--manifest")] - public bool? Manifest { get; set; } + public virtual bool? Manifest { get; set; } [PositionalArgument(PlaceholderName = "")] public string? PathToManifestFile { get; set; } [BooleanCommandSwitch("--framework")] - public bool? Framework { get; set; } + public virtual bool? Framework { get; set; } [PositionalArgument(PlaceholderName = "")] public string? FrameworkVersion { get; set; } [BooleanCommandSwitch("--runtime")] - public bool? Runtime { get; set; } + public virtual bool? Runtime { get; set; } [PositionalArgument(PlaceholderName = "")] public string? RuntimeIdentifier { get; set; } [CommandSwitch("--output")] - public string? OutputDirectory { get; set; } + public virtual string? OutputDirectory { get; set; } [BooleanCommandSwitch("--skip-optimization")] - public bool? SkipOptimization { get; set; } + public virtual bool? SkipOptimization { get; set; } [BooleanCommandSwitch("--skip-symbols")] - public bool? SkipSymbols { get; set; } + public virtual bool? SkipSymbols { get; set; } [CommandSwitch("--verbosity")] - public string? Verbosity { get; set; } + public virtual string? Verbosity { get; set; } [CommandSwitch("--working-dir")] - public string? StoreWorkingDirectory { get; set; } + public virtual string? StoreWorkingDirectory { get; set; } } diff --git a/src/ModularPipelines.DotNet/Options/DotNetTestOptions.cs b/src/ModularPipelines.DotNet/Options/DotNetTestOptions.cs index 08438146c8..1efafd1192 100644 --- a/src/ModularPipelines.DotNet/Options/DotNetTestOptions.cs +++ b/src/ModularPipelines.DotNet/Options/DotNetTestOptions.cs @@ -24,83 +24,83 @@ public DotNetTestOptions() public string? ProjectSolutionDirectoryDllExe { get; set; } [CommandSwitch("--test-adapter-path")] - public string? TestAdapterPath { get; set; } + public virtual string? TestAdapterPath { get; set; } [CommandSwitch("--arch")] - public string? Architecture { get; set; } + public virtual string? Architecture { get; set; } [BooleanCommandSwitch("--blame")] - public bool? Blame { get; set; } + public virtual bool? Blame { get; set; } [BooleanCommandSwitch("--blame-crash")] - public bool? BlameCrash { get; set; } + public virtual bool? BlameCrash { get; set; } [CommandSwitch("--blame-crash-dump-type")] - public string? BlameCrashDumpType { get; set; } + public virtual string? BlameCrashDumpType { get; set; } [BooleanCommandSwitch("--blame-crash-collect-always")] - public bool? BlameCrashCollectAlways { get; set; } + public virtual bool? BlameCrashCollectAlways { get; set; } [BooleanCommandSwitch("--blame-hang")] - public bool? BlameHang { get; set; } + public virtual bool? BlameHang { get; set; } [CommandSwitch("--blame-hang-dump-type")] - public string? BlameHangDumpType { get; set; } + public virtual string? BlameHangDumpType { get; set; } [CommandSwitch("--blame-hang-timeout")] - public string? BlameHangTimeout { get; set; } + public virtual string? BlameHangTimeout { get; set; } [CommandSwitch("--configuration")] - public string? Configuration { get; set; } + public virtual string? Configuration { get; set; } [CommandSwitch("--collect")] - public string? Collect { get; set; } + public virtual string? Collect { get; set; } [CommandSwitch("--diag")] - public string? Diag { get; set; } + public virtual string? Diag { get; set; } [CommandSwitch("--framework")] - public string? Framework { get; set; } + public virtual string? Framework { get; set; } [CommandSwitch("--environment")] - public IEnumerable? Environment { get; set; } + public virtual IEnumerable? Environment { get; set; } [CommandSwitch("--filter")] - public string? Filter { get; set; } + public virtual string? Filter { get; set; } [BooleanCommandSwitch("--interactive")] - public bool? Interactive { get; set; } + public virtual bool? Interactive { get; set; } [CommandSwitch("--logger")] - public IEnumerable? Logger { get; set; } + public virtual IEnumerable? Logger { get; set; } [BooleanCommandSwitch("--no-build")] - public bool? NoBuild { get; set; } + public virtual bool? NoBuild { get; set; } [BooleanCommandSwitch("--nologo")] - public bool? Nologo { get; set; } + public virtual bool? Nologo { get; set; } [BooleanCommandSwitch("--no-restore")] - public bool? NoRestore { get; set; } + public virtual bool? NoRestore { get; set; } [CommandSwitch("--output")] - public string? OutputDirectory { get; set; } + public virtual string? OutputDirectory { get; set; } [CommandSwitch("--os")] - public string? Os { get; set; } + public virtual string? Os { get; set; } [CommandSwitch("--results-directory")] - public string? ResultsDirectory { get; set; } + public virtual string? ResultsDirectory { get; set; } [CommandSwitch("--runtime")] - public string? RuntimeIdentifier { get; set; } + public virtual string? RuntimeIdentifier { get; set; } [CommandSwitch("--settings")] - public string? SettingsFile { get; set; } + public virtual string? SettingsFile { get; set; } [BooleanCommandSwitch("--list-tests")] - public bool? ListTests { get; set; } + public virtual bool? ListTests { get; set; } [CommandSwitch("--verbosity")] - public string? Verbosity { get; set; } + public virtual string? Verbosity { get; set; } } diff --git a/src/ModularPipelines.DotNet/Options/DotNetToolInstallOptions.cs b/src/ModularPipelines.DotNet/Options/DotNetToolInstallOptions.cs index 0250f6b515..13383954e2 100644 --- a/src/ModularPipelines.DotNet/Options/DotNetToolInstallOptions.cs +++ b/src/ModularPipelines.DotNet/Options/DotNetToolInstallOptions.cs @@ -31,50 +31,50 @@ string packageName public string? PackageName { get; set; } [BooleanCommandSwitch("--global")] - public bool? Global { get; set; } + public virtual bool? Global { get; set; } [CommandSwitch("--arch")] - public string? Architecture { get; set; } + public virtual string? Architecture { get; set; } [CommandSwitch("--add-source")] - public string? AddSource { get; set; } + public virtual string? AddSource { get; set; } [CommandSwitch("--configfile")] - public string? Configfile { get; set; } + public virtual string? Configfile { get; set; } [BooleanCommandSwitch("--disable-parallel")] - public bool? DisableParallel { get; set; } + public virtual bool? DisableParallel { get; set; } [CommandSwitch("--framework")] - public string? Framework { get; set; } + public virtual string? Framework { get; set; } [BooleanCommandSwitch("--ignore-failed-sources")] - public bool? IgnoreFailedSources { get; set; } + public virtual bool? IgnoreFailedSources { get; set; } [BooleanCommandSwitch("--interactive")] - public bool? Interactive { get; set; } + public virtual bool? Interactive { get; set; } [BooleanCommandSwitch("--no-cache")] - public bool? NoCache { get; set; } + public virtual bool? NoCache { get; set; } [BooleanCommandSwitch("--prerelease")] - public bool? Prerelease { get; set; } + public virtual bool? Prerelease { get; set; } [CommandSwitch("--tool-manifest")] - public string? ToolManifest { get; set; } + public virtual string? ToolManifest { get; set; } [CommandSwitch("--verbosity")] - public string? Verbosity { get; set; } + public virtual string? Verbosity { get; set; } [CommandSwitch("--version")] - public string? VersionNumber { get; set; } + public virtual string? VersionNumber { get; set; } [BooleanCommandSwitch("--tool-path")] - public string? ToolPath { get; set; } + public virtual string? ToolPath { get; set; } [BooleanCommandSwitch("--local")] - public bool? Local { get; set; } + public virtual bool? Local { get; set; } [BooleanCommandSwitch("--create-manifest-if-needed")] - public bool? CreateManifestIfNeeded { get; set; } + public virtual bool? CreateManifestIfNeeded { get; set; } } diff --git a/src/ModularPipelines.DotNet/Options/DotNetToolListOptions.cs b/src/ModularPipelines.DotNet/Options/DotNetToolListOptions.cs index 7a626604d7..7a76e50391 100644 --- a/src/ModularPipelines.DotNet/Options/DotNetToolListOptions.cs +++ b/src/ModularPipelines.DotNet/Options/DotNetToolListOptions.cs @@ -21,13 +21,13 @@ string packageId } [BooleanCommandSwitch("--global")] - public bool? Global { get; set; } + public virtual bool? Global { get; set; } [BooleanCommandSwitch("--tool-path")] - public bool? ToolPath { get; set; } + public virtual bool? ToolPath { get; set; } [BooleanCommandSwitch("--local")] - public bool? Local { get; set; } + public virtual bool? Local { get; set; } [PositionalArgument(PlaceholderName = "[]")] public string? PackageId { get; set; } diff --git a/src/ModularPipelines.DotNet/Options/DotNetToolSearchOptions.cs b/src/ModularPipelines.DotNet/Options/DotNetToolSearchOptions.cs index 18373c802c..18bd104668 100644 --- a/src/ModularPipelines.DotNet/Options/DotNetToolSearchOptions.cs +++ b/src/ModularPipelines.DotNet/Options/DotNetToolSearchOptions.cs @@ -16,16 +16,16 @@ string searchTerm } [BooleanCommandSwitch("--detail")] - public bool? Detail { get; set; } + public virtual bool? Detail { get; set; } [BooleanCommandSwitch("--prerelease")] - public bool? Prerelease { get; set; } + public virtual bool? Prerelease { get; set; } [CommandSwitch("--skip")] - public string? Skip { get; set; } + public virtual string? Skip { get; set; } [CommandSwitch("--take")] - public string? Take { get; set; } + public virtual string? Take { get; set; } [PositionalArgument(PlaceholderName = "")] public string? SearchTerm { get; set; } diff --git a/src/ModularPipelines.DotNet/Options/DotNetToolUninstallOptions.cs b/src/ModularPipelines.DotNet/Options/DotNetToolUninstallOptions.cs index 9cecfa9092..7bd6f4766e 100644 --- a/src/ModularPipelines.DotNet/Options/DotNetToolUninstallOptions.cs +++ b/src/ModularPipelines.DotNet/Options/DotNetToolUninstallOptions.cs @@ -31,11 +31,11 @@ string packageName public string? PackageName { get; set; } [BooleanCommandSwitch("--global")] - public bool? Global { get; set; } + public virtual bool? Global { get; set; } [BooleanCommandSwitch("--tool-path")] - public string? ToolPath { get; set; } + public virtual string? ToolPath { get; set; } [CommandSwitch("--tool-manifest")] - public string? ToolManifest { get; set; } + public virtual string? ToolManifest { get; set; } } diff --git a/src/ModularPipelines.DotNet/Options/DotNetToolUpdateOptions.cs b/src/ModularPipelines.DotNet/Options/DotNetToolUpdateOptions.cs index 3f539c4d8b..f9c1e63a3a 100644 --- a/src/ModularPipelines.DotNet/Options/DotNetToolUpdateOptions.cs +++ b/src/ModularPipelines.DotNet/Options/DotNetToolUpdateOptions.cs @@ -30,44 +30,44 @@ string packageId public string? PackageId { get; set; } [BooleanCommandSwitch("--global")] - public bool? Global { get; set; } + public virtual bool? Global { get; set; } [CommandSwitch("--add-source")] - public string? AddSource { get; set; } + public virtual string? AddSource { get; set; } [CommandSwitch("--configfile")] - public string? Configfile { get; set; } + public virtual string? Configfile { get; set; } [BooleanCommandSwitch("--disable-parallel")] - public bool? DisableParallel { get; set; } + public virtual bool? DisableParallel { get; set; } [CommandSwitch("--framework")] - public string? Framework { get; set; } + public virtual string? Framework { get; set; } [BooleanCommandSwitch("--ignore-failed-sources")] - public bool? IgnoreFailedSources { get; set; } + public virtual bool? IgnoreFailedSources { get; set; } [BooleanCommandSwitch("--interactive")] - public bool? Interactive { get; set; } + public virtual bool? Interactive { get; set; } [BooleanCommandSwitch("--no-cache")] - public bool? NoCache { get; set; } + public virtual bool? NoCache { get; set; } [BooleanCommandSwitch("--prerelease")] - public bool? Prerelease { get; set; } + public virtual bool? Prerelease { get; set; } [CommandSwitch("--verbosity")] - public string? Verbosity { get; set; } + public virtual string? Verbosity { get; set; } [CommandSwitch("--version")] - public string? Version { get; set; } + public virtual string? Version { get; set; } [BooleanCommandSwitch("--tool-path")] - public string? ToolPath { get; set; } + public virtual string? ToolPath { get; set; } [BooleanCommandSwitch("--local")] - public bool? Local { get; set; } + public virtual bool? Local { get; set; } [CommandSwitch("--tool-manifest")] - public string? ToolManifest { get; set; } + public virtual string? ToolManifest { get; set; } } diff --git a/src/ModularPipelines.DotNet/Options/DotNetVstestOptions.cs b/src/ModularPipelines.DotNet/Options/DotNetVstestOptions.cs index eed161c0b7..8d40fa0afb 100644 --- a/src/ModularPipelines.DotNet/Options/DotNetVstestOptions.cs +++ b/src/ModularPipelines.DotNet/Options/DotNetVstestOptions.cs @@ -36,53 +36,53 @@ public DotNetVstestOptions() public string? TestFileNames { get; set; } [BooleanCommandSwitch("--Blame")] - public bool? Blame { get; set; } + public virtual bool? Blame { get; set; } [CommandSwitch("--Diag")] - public string? Diag { get; set; } + public virtual string? Diag { get; set; } [CommandSwitch("--Framework")] - public string? Framework { get; set; } + public virtual string? Framework { get; set; } [BooleanCommandSwitch("--InIsolation")] - public bool? InIsolation { get; set; } + public virtual bool? InIsolation { get; set; } [CommandSwitch("--ListTests")] - public string? ListTests { get; set; } + public virtual string? ListTests { get; set; } [CommandSwitch("--logger")] - public string? LoggerUriOrFriendlyName { get; set; } + public virtual string? LoggerUriOrFriendlyName { get; set; } [BooleanCommandSwitch("--Parallel")] - public bool? Parallel { get; set; } + public virtual bool? Parallel { get; set; } [CommandSwitch("--ParentProcessId")] - public string? ParentProcessId { get; set; } + public virtual string? ParentProcessId { get; set; } [BooleanCommandSwitch("--Platform")] - public bool? Platform { get; set; } + public virtual bool? Platform { get; set; } [PositionalArgument(PlaceholderName = "")] public string? PlatformType { get; set; } [CommandSwitch("--Port")] - public string? Port { get; set; } + public virtual string? Port { get; set; } [CommandSwitch("--ResultsDirectory")] - public string? ResultsDirectoryPATH { get; set; } + public virtual string? ResultsDirectoryPATH { get; set; } [CommandSwitch("--Settings")] - public string? SettingsFile { get; set; } + public virtual string? SettingsFile { get; set; } [CommandSwitch("--TestAdapterPath")] - public string? TestAdapterPath { get; set; } + public virtual string? TestAdapterPath { get; set; } [CommandSwitch("--TestCaseFilter")] - public string? TestCaseFilter { get; set; } + public virtual string? TestCaseFilter { get; set; } [CommandSwitch("--Tests")] - public string? Tests { get; set; } + public virtual string? Tests { get; set; } [BooleanCommandSwitch("--Help")] - public bool? Help { get; set; } + public virtual bool? Help { get; set; } } diff --git a/src/ModularPipelines.DotNet/Options/DotNetWatchOptions.cs b/src/ModularPipelines.DotNet/Options/DotNetWatchOptions.cs index b9f14c88c6..5744bf2a5f 100644 --- a/src/ModularPipelines.DotNet/Options/DotNetWatchOptions.cs +++ b/src/ModularPipelines.DotNet/Options/DotNetWatchOptions.cs @@ -31,25 +31,25 @@ string forwardedArguments public string? Command { get; set; } [BooleanCommandSwitch("--list")] - public bool? List { get; set; } + public virtual bool? List { get; set; } [BooleanCommandSwitch("--no-hot-reload")] - public bool? NoHotReload { get; set; } + public virtual bool? NoHotReload { get; set; } [BooleanCommandSwitch("--non-interactive")] - public bool? NonInteractive { get; set; } + public virtual bool? NonInteractive { get; set; } [CommandSwitch("--project")] - public string? Project { get; set; } + public virtual string? Project { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } [BooleanCommandSwitch("--verbose")] - public bool? Verbose { get; set; } + public virtual bool? Verbose { get; set; } [BooleanCommandSwitch("--version")] - public bool? Version { get; set; } + public virtual bool? Version { get; set; } [PositionalArgument(PlaceholderName = "")] public string? ForwardedArguments { get; set; } diff --git a/src/ModularPipelines.DotNet/Options/DotNetWorkloadInstallOptions.cs b/src/ModularPipelines.DotNet/Options/DotNetWorkloadInstallOptions.cs index bfa8e57579..3c34293b30 100644 --- a/src/ModularPipelines.DotNet/Options/DotNetWorkloadInstallOptions.cs +++ b/src/ModularPipelines.DotNet/Options/DotNetWorkloadInstallOptions.cs @@ -19,32 +19,32 @@ string workloadId public string? WorkloadId { get; set; } [CommandSwitch("--configfile")] - public string? Configfile { get; set; } + public virtual string? Configfile { get; set; } [BooleanCommandSwitch("--disable-parallel")] - public bool? DisableParallel { get; set; } + public virtual bool? DisableParallel { get; set; } [BooleanCommandSwitch("--ignore-failed-sources")] - public bool? IgnoreFailedSources { get; set; } + public virtual bool? IgnoreFailedSources { get; set; } [BooleanCommandSwitch("--include-previews")] - public bool? IncludePreviews { get; set; } + public virtual bool? IncludePreviews { get; set; } [BooleanCommandSwitch("--interactive")] - public bool? Interactive { get; set; } + public virtual bool? Interactive { get; set; } [BooleanCommandSwitch("--no-cache")] - public bool? NoCache { get; set; } + public virtual bool? NoCache { get; set; } [BooleanCommandSwitch("--skip-manifest-update")] - public bool? SkipManifestUpdate { get; set; } + public virtual bool? SkipManifestUpdate { get; set; } [CommandSwitch("--source")] - public string? Source { get; set; } + public virtual string? Source { get; set; } [CommandSwitch("--temp-dir")] - public string? TempDir { get; set; } + public virtual string? TempDir { get; set; } [CommandSwitch("--verbosity")] - public string? Verbosity { get; set; } + public virtual string? Verbosity { get; set; } } diff --git a/src/ModularPipelines.DotNet/Options/DotNetWorkloadListOptions.cs b/src/ModularPipelines.DotNet/Options/DotNetWorkloadListOptions.cs index dde54e22be..7633e9a7a1 100644 --- a/src/ModularPipelines.DotNet/Options/DotNetWorkloadListOptions.cs +++ b/src/ModularPipelines.DotNet/Options/DotNetWorkloadListOptions.cs @@ -8,5 +8,5 @@ namespace ModularPipelines.DotNet.Options; public record DotNetWorkloadListOptions : DotNetOptions { [CommandSwitch("--verbosity")] - public string? Verbosity { get; set; } + public virtual string? Verbosity { get; set; } } diff --git a/src/ModularPipelines.DotNet/Options/DotNetWorkloadOptions.cs b/src/ModularPipelines.DotNet/Options/DotNetWorkloadOptions.cs index aa5b1f87f8..b1a277a255 100644 --- a/src/ModularPipelines.DotNet/Options/DotNetWorkloadOptions.cs +++ b/src/ModularPipelines.DotNet/Options/DotNetWorkloadOptions.cs @@ -8,5 +8,5 @@ namespace ModularPipelines.DotNet.Options; public record DotNetWorkloadOptions : DotNetOptions { [BooleanCommandSwitch("--info")] - public bool? Info { get; set; } + public virtual bool? Info { get; set; } } diff --git a/src/ModularPipelines.DotNet/Options/DotNetWorkloadRepairOptions.cs b/src/ModularPipelines.DotNet/Options/DotNetWorkloadRepairOptions.cs index 3d43a945c9..ee92dfb26a 100644 --- a/src/ModularPipelines.DotNet/Options/DotNetWorkloadRepairOptions.cs +++ b/src/ModularPipelines.DotNet/Options/DotNetWorkloadRepairOptions.cs @@ -8,26 +8,26 @@ namespace ModularPipelines.DotNet.Options; public record DotNetWorkloadRepairOptions : DotNetOptions { [BooleanCommandSwitch("--configfile")] - public bool? Configfile { get; set; } + public virtual bool? Configfile { get; set; } [BooleanCommandSwitch("--disable-parallel")] - public bool? DisableParallel { get; set; } + public virtual bool? DisableParallel { get; set; } [BooleanCommandSwitch("--ignore-failed-sources")] - public bool? IgnoreFailedSources { get; set; } + public virtual bool? IgnoreFailedSources { get; set; } [BooleanCommandSwitch("--interactive")] - public bool? Interactive { get; set; } + public virtual bool? Interactive { get; set; } [BooleanCommandSwitch("--no-cache")] - public bool? NoCache { get; set; } + public virtual bool? NoCache { get; set; } [CommandSwitch("--source")] - public IEnumerable? Source { get; set; } + public virtual IEnumerable? Source { get; set; } [CommandSwitch("--temp-dir")] - public string? TempDir { get; set; } + public virtual string? TempDir { get; set; } [CommandSwitch("--verbosity")] - public string? Verbosity { get; set; } + public virtual string? Verbosity { get; set; } } diff --git a/src/ModularPipelines.DotNet/Options/DotNetWorkloadRestoreOptions.cs b/src/ModularPipelines.DotNet/Options/DotNetWorkloadRestoreOptions.cs index c556880d34..98888fca25 100644 --- a/src/ModularPipelines.DotNet/Options/DotNetWorkloadRestoreOptions.cs +++ b/src/ModularPipelines.DotNet/Options/DotNetWorkloadRestoreOptions.cs @@ -24,32 +24,32 @@ public DotNetWorkloadRestoreOptions() public string? ProjectSolution { get; set; } [CommandSwitch("--configfile")] - public string? Configfile { get; set; } + public virtual string? Configfile { get; set; } [BooleanCommandSwitch("--disable-parallel")] - public bool? DisableParallel { get; set; } + public virtual bool? DisableParallel { get; set; } [BooleanCommandSwitch("--ignore-failed-sources")] - public bool? IgnoreFailedSources { get; set; } + public virtual bool? IgnoreFailedSources { get; set; } [BooleanCommandSwitch("--include-previews")] - public bool? IncludePreviews { get; set; } + public virtual bool? IncludePreviews { get; set; } [BooleanCommandSwitch("--interactive")] - public bool? Interactive { get; set; } + public virtual bool? Interactive { get; set; } [BooleanCommandSwitch("--no-cache")] - public bool? NoCache { get; set; } + public virtual bool? NoCache { get; set; } [BooleanCommandSwitch("--skip-manifest-update")] - public bool? SkipManifestUpdate { get; set; } + public virtual bool? SkipManifestUpdate { get; set; } [CommandSwitch("--source")] - public IEnumerable? Source { get; set; } + public virtual IEnumerable? Source { get; set; } [CommandSwitch("--temp-dir")] - public string? TempDir { get; set; } + public virtual string? TempDir { get; set; } [CommandSwitch("--verbosity")] - public string? Verbosity { get; set; } + public virtual string? Verbosity { get; set; } } diff --git a/src/ModularPipelines.DotNet/Options/DotNetWorkloadSearchOptions.cs b/src/ModularPipelines.DotNet/Options/DotNetWorkloadSearchOptions.cs index 2fc550cbb4..08b3dd50f9 100644 --- a/src/ModularPipelines.DotNet/Options/DotNetWorkloadSearchOptions.cs +++ b/src/ModularPipelines.DotNet/Options/DotNetWorkloadSearchOptions.cs @@ -24,5 +24,5 @@ public DotNetWorkloadSearchOptions() public string? SearchString { get; set; } [CommandSwitch("--verbosity")] - public string? Verbosity { get; set; } + public virtual string? Verbosity { get; set; } } diff --git a/src/ModularPipelines.DotNet/Options/DotNetWorkloadUpdateOptions.cs b/src/ModularPipelines.DotNet/Options/DotNetWorkloadUpdateOptions.cs index c4e9ee7d04..92601f5e14 100644 --- a/src/ModularPipelines.DotNet/Options/DotNetWorkloadUpdateOptions.cs +++ b/src/ModularPipelines.DotNet/Options/DotNetWorkloadUpdateOptions.cs @@ -8,35 +8,35 @@ namespace ModularPipelines.DotNet.Options; public record DotNetWorkloadUpdateOptions : DotNetOptions { [BooleanCommandSwitch("--advertising-manifests-only")] - public bool? AdvertisingManifestsOnly { get; set; } + public virtual bool? AdvertisingManifestsOnly { get; set; } [CommandSwitch("--configfile")] - public string? Configfile { get; set; } + public virtual string? Configfile { get; set; } [BooleanCommandSwitch("--disable-parallel")] - public bool? DisableParallel { get; set; } + public virtual bool? DisableParallel { get; set; } [BooleanCommandSwitch("--from-previous-sdk")] - public bool? FromPreviousSdk { get; set; } + public virtual bool? FromPreviousSdk { get; set; } [BooleanCommandSwitch("--ignore-failed-sources")] - public bool? IgnoreFailedSources { get; set; } + public virtual bool? IgnoreFailedSources { get; set; } [BooleanCommandSwitch("--include-previews")] - public bool? IncludePreviews { get; set; } + public virtual bool? IncludePreviews { get; set; } [BooleanCommandSwitch("--interactive")] - public bool? Interactive { get; set; } + public virtual bool? Interactive { get; set; } [BooleanCommandSwitch("--no-cache")] - public bool? NoCache { get; set; } + public virtual bool? NoCache { get; set; } [CommandSwitch("--source")] - public IEnumerable? Source { get; set; } + public virtual IEnumerable? Source { get; set; } [CommandSwitch("--temp-dir")] - public string? TempDir { get; set; } + public virtual string? TempDir { get; set; } [CommandSwitch("--verbosity")] - public string? Verbosity { get; set; } + public virtual string? Verbosity { get; set; } } diff --git a/src/ModularPipelines.DotNet/Parsers/Trx/TrxParser.cs b/src/ModularPipelines.DotNet/Parsers/Trx/TrxParser.cs index 40a6ba9fa0..81724bb25f 100644 --- a/src/ModularPipelines.DotNet/Parsers/Trx/TrxParser.cs +++ b/src/ModularPipelines.DotNet/Parsers/Trx/TrxParser.cs @@ -21,7 +21,7 @@ private ResultSummary GetResultSummary(XDocument document) private ResultSummary ParseResultSummary(XElement element) { var outcome = element.Attribute("outcome")!.Value; - + var counters = ParseCounters(element.Descendants().First(e => e.Name.LocalName == "Counters")); return new ResultSummary(outcome, counters); diff --git a/src/ModularPipelines.DotNet/Services/DotNet.cs b/src/ModularPipelines.DotNet/Services/DotNet.cs index 39f6e61034..269fa65ff2 100644 --- a/src/ModularPipelines.DotNet/Services/DotNet.cs +++ b/src/ModularPipelines.DotNet/Services/DotNet.cs @@ -55,92 +55,92 @@ ITrxParser trxParser public DotNetNuget Nuget { get; } - public async Task New(DotNetNewOptions options, CancellationToken token = default) + public virtual async Task New(DotNetNewOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Restore(DotNetRestoreOptions? options = default, CancellationToken token = default) + public virtual async Task Restore(DotNetRestoreOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DotNetRestoreOptions(), token); } - public async Task Build(DotNetBuildOptions? options = default, CancellationToken token = default) + public virtual async Task Build(DotNetBuildOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DotNetBuildOptions(), token); } - public async Task Publish(DotNetPublishOptions? options = default, CancellationToken token = default) + public virtual async Task Publish(DotNetPublishOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DotNetPublishOptions(), token); } - public async Task Run(DotNetRunOptions? options = default, CancellationToken token = default) + public virtual async Task Run(DotNetRunOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DotNetRunOptions(), token); } - public async Task Test(DotNetTestOptions? options = default, CancellationToken token = default) + public virtual async Task Test(DotNetTestOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DotNetTestOptions(), token); } - public async Task Vstest(DotNetVstestOptions options, CancellationToken token = default) + public virtual async Task Vstest(DotNetVstestOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Pack(DotNetPackOptions? options = default, CancellationToken token = default) + public virtual async Task Pack(DotNetPackOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DotNetPackOptions(), token); } - public async Task Migrate(DotNetMigrateOptions? options = default, CancellationToken token = default) + public virtual async Task Migrate(DotNetMigrateOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DotNetMigrateOptions(), token); } - public async Task Clean(DotNetCleanOptions? options = default, CancellationToken token = default) + public virtual async Task Clean(DotNetCleanOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DotNetCleanOptions(), token); } - public async Task Sln(DotNetSlnOptions? options = default, CancellationToken token = default) + public virtual async Task Sln(DotNetSlnOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DotNetSlnOptions(), token); } - public async Task Store(DotNetStoreOptions options, CancellationToken token = default) + public virtual async Task Store(DotNetStoreOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Watch(DotNetWatchOptions options, CancellationToken token = default) + public virtual async Task Watch(DotNetWatchOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Format(DotNetFormatOptions? options = default, CancellationToken token = default) + public virtual async Task Format(DotNetFormatOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DotNetFormatOptions(), token); } - public async Task Workload(DotNetWorkloadOptions? options = default, CancellationToken token = default) + public virtual async Task Workload(DotNetWorkloadOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DotNetWorkloadOptions(), token); } - public async Task Msbuild(DotNetMsbuildOptions options, CancellationToken token = default) + public virtual async Task Msbuild(DotNetMsbuildOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task BuildServer(DotNetBuildServerOptions? options = default, CancellationToken token = default) + public virtual async Task BuildServer(DotNetBuildServerOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DotNetBuildServerOptions(), token); } - public async Task DevCerts(DotNetDevCertsOptions? options = default, CancellationToken token = default) + public virtual async Task DevCerts(DotNetDevCertsOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DotNetDevCertsOptions(), token); } diff --git a/src/ModularPipelines.DotNet/Services/DotNetAdd.cs b/src/ModularPipelines.DotNet/Services/DotNetAdd.cs index 16ec789636..da2c2e7810 100644 --- a/src/ModularPipelines.DotNet/Services/DotNetAdd.cs +++ b/src/ModularPipelines.DotNet/Services/DotNetAdd.cs @@ -17,12 +17,12 @@ ICommand internalCommand private readonly ICommand _command; - public async Task Package(DotNetAddPackageOptions options, CancellationToken token = default) + public virtual async Task Package(DotNetAddPackageOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Reference(DotNetAddReferenceOptions options, CancellationToken token = default) + public virtual async Task Reference(DotNetAddReferenceOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } diff --git a/src/ModularPipelines.DotNet/Services/DotNetList.cs b/src/ModularPipelines.DotNet/Services/DotNetList.cs index 103a6088b8..a57c113081 100644 --- a/src/ModularPipelines.DotNet/Services/DotNetList.cs +++ b/src/ModularPipelines.DotNet/Services/DotNetList.cs @@ -17,12 +17,12 @@ ICommand internalCommand private readonly ICommand _command; - public async Task Package(DotNetListPackageOptions? options = default, CancellationToken token = default) + public virtual async Task Package(DotNetListPackageOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DotNetListPackageOptions(), token); } - public async Task Reference(DotNetListReferenceOptions? options = default, CancellationToken token = default) + public virtual async Task Reference(DotNetListReferenceOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DotNetListReferenceOptions(), token); } diff --git a/src/ModularPipelines.DotNet/Services/DotNetNuget.cs b/src/ModularPipelines.DotNet/Services/DotNetNuget.cs index 9495768e7c..94227eec66 100644 --- a/src/ModularPipelines.DotNet/Services/DotNetNuget.cs +++ b/src/ModularPipelines.DotNet/Services/DotNetNuget.cs @@ -41,32 +41,32 @@ ICommand internalCommand public DotNetNugetList List { get; } - public async Task Delete(DotNetNugetDeleteOptions? options = default, CancellationToken token = default) + public virtual async Task Delete(DotNetNugetDeleteOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DotNetNugetDeleteOptions(), token); } - public async Task Locals(DotNetNugetLocalsOptions options, CancellationToken token = default) + public virtual async Task Locals(DotNetNugetLocalsOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Push(DotNetNugetPushOptions? options = default, CancellationToken token = default) + public virtual async Task Push(DotNetNugetPushOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DotNetNugetPushOptions(), token); } - public async Task Verify(DotNetNugetVerifyOptions? options = default, CancellationToken token = default) + public virtual async Task Verify(DotNetNugetVerifyOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DotNetNugetVerifyOptions(), token); } - public async Task Trust(DotNetNugetTrustOptions? options = default, CancellationToken token = default) + public virtual async Task Trust(DotNetNugetTrustOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DotNetNugetTrustOptions(), token); } - public async Task Sign(DotNetNugetSignOptions? options = default, CancellationToken token = default) + public virtual async Task Sign(DotNetNugetSignOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DotNetNugetSignOptions(), token); } diff --git a/src/ModularPipelines.DotNet/Services/DotNetNugetAdd.cs b/src/ModularPipelines.DotNet/Services/DotNetNugetAdd.cs index a8f9d084dc..7ccf969bff 100644 --- a/src/ModularPipelines.DotNet/Services/DotNetNugetAdd.cs +++ b/src/ModularPipelines.DotNet/Services/DotNetNugetAdd.cs @@ -17,7 +17,7 @@ ICommand internalCommand private readonly ICommand _command; - public async Task Source(DotNetNugetAddSourceOptions options, CancellationToken token = default) + public virtual async Task Source(DotNetNugetAddSourceOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } diff --git a/src/ModularPipelines.DotNet/Services/DotNetNugetDisable.cs b/src/ModularPipelines.DotNet/Services/DotNetNugetDisable.cs index 0ce4c3818d..1b469e3d61 100644 --- a/src/ModularPipelines.DotNet/Services/DotNetNugetDisable.cs +++ b/src/ModularPipelines.DotNet/Services/DotNetNugetDisable.cs @@ -17,7 +17,7 @@ ICommand internalCommand private readonly ICommand _command; - public async Task Source(DotNetNugetDisableSourceOptions options, CancellationToken token = default) + public virtual async Task Source(DotNetNugetDisableSourceOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } diff --git a/src/ModularPipelines.DotNet/Services/DotNetNugetEnable.cs b/src/ModularPipelines.DotNet/Services/DotNetNugetEnable.cs index 86b1f33e0e..6539553882 100644 --- a/src/ModularPipelines.DotNet/Services/DotNetNugetEnable.cs +++ b/src/ModularPipelines.DotNet/Services/DotNetNugetEnable.cs @@ -17,7 +17,7 @@ ICommand internalCommand private readonly ICommand _command; - public async Task Source(DotNetNugetEnableSourceOptions options, CancellationToken token = default) + public virtual async Task Source(DotNetNugetEnableSourceOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } diff --git a/src/ModularPipelines.DotNet/Services/DotNetNugetList.cs b/src/ModularPipelines.DotNet/Services/DotNetNugetList.cs index e600f963b6..666e43d666 100644 --- a/src/ModularPipelines.DotNet/Services/DotNetNugetList.cs +++ b/src/ModularPipelines.DotNet/Services/DotNetNugetList.cs @@ -17,7 +17,7 @@ ICommand internalCommand private readonly ICommand _command; - public async Task Source(DotNetNugetListSourceOptions? options = default, CancellationToken token = default) + public virtual async Task Source(DotNetNugetListSourceOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DotNetNugetListSourceOptions(), token); } diff --git a/src/ModularPipelines.DotNet/Services/DotNetNugetRemove.cs b/src/ModularPipelines.DotNet/Services/DotNetNugetRemove.cs index 2618445195..fa2828dcb4 100644 --- a/src/ModularPipelines.DotNet/Services/DotNetNugetRemove.cs +++ b/src/ModularPipelines.DotNet/Services/DotNetNugetRemove.cs @@ -17,7 +17,7 @@ ICommand internalCommand private readonly ICommand _command; - public async Task Source(DotNetNugetRemoveSourceOptions options, CancellationToken token = default) + public virtual async Task Source(DotNetNugetRemoveSourceOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } diff --git a/src/ModularPipelines.DotNet/Services/DotNetNugetUpdate.cs b/src/ModularPipelines.DotNet/Services/DotNetNugetUpdate.cs index 93128092cf..22711d6aa1 100644 --- a/src/ModularPipelines.DotNet/Services/DotNetNugetUpdate.cs +++ b/src/ModularPipelines.DotNet/Services/DotNetNugetUpdate.cs @@ -17,7 +17,7 @@ ICommand internalCommand private readonly ICommand _command; - public async Task Source(DotNetNugetUpdateSourceOptions options, CancellationToken token = default) + public virtual async Task Source(DotNetNugetUpdateSourceOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } diff --git a/src/ModularPipelines.DotNet/Services/DotNetRemove.cs b/src/ModularPipelines.DotNet/Services/DotNetRemove.cs index cda2163856..4757559e47 100644 --- a/src/ModularPipelines.DotNet/Services/DotNetRemove.cs +++ b/src/ModularPipelines.DotNet/Services/DotNetRemove.cs @@ -17,12 +17,12 @@ ICommand internalCommand private readonly ICommand _command; - public async Task Package(DotNetRemovePackageOptions options, CancellationToken token = default) + public virtual async Task Package(DotNetRemovePackageOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Reference(DotNetRemoveReferenceOptions options, CancellationToken token = default) + public virtual async Task Reference(DotNetRemoveReferenceOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } diff --git a/src/ModularPipelines.DotNet/Services/DotNetSdk.cs b/src/ModularPipelines.DotNet/Services/DotNetSdk.cs index 1bed2ee881..4f7a7de4a1 100644 --- a/src/ModularPipelines.DotNet/Services/DotNetSdk.cs +++ b/src/ModularPipelines.DotNet/Services/DotNetSdk.cs @@ -17,7 +17,7 @@ ICommand internalCommand private readonly ICommand _command; - public async Task Check(DotNetSdkCheckOptions? options = default, CancellationToken token = default) + public virtual async Task Check(DotNetSdkCheckOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DotNetSdkCheckOptions(), token); } diff --git a/src/ModularPipelines.DotNet/Services/DotNetTool.cs b/src/ModularPipelines.DotNet/Services/DotNetTool.cs index b04c0c3e76..4fc1a3e42b 100644 --- a/src/ModularPipelines.DotNet/Services/DotNetTool.cs +++ b/src/ModularPipelines.DotNet/Services/DotNetTool.cs @@ -17,27 +17,27 @@ ICommand internalCommand private readonly ICommand _command; - public async Task Install(DotNetToolInstallOptions options, CancellationToken token = default) + public virtual async Task Install(DotNetToolInstallOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task List(DotNetToolListOptions? options = default, CancellationToken token = default) + public virtual async Task List(DotNetToolListOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DotNetToolListOptions(), token); } - public async Task Update(DotNetToolUpdateOptions options, CancellationToken token = default) + public virtual async Task Update(DotNetToolUpdateOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Uninstall(DotNetToolUninstallOptions options, CancellationToken token = default) + public virtual async Task Uninstall(DotNetToolUninstallOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Search(DotNetToolSearchOptions options, CancellationToken token = default) + public virtual async Task Search(DotNetToolSearchOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } diff --git a/src/ModularPipelines.DotNet/Services/DotNetWorkload.cs b/src/ModularPipelines.DotNet/Services/DotNetWorkload.cs index f4f84c7144..9c94e09720 100644 --- a/src/ModularPipelines.DotNet/Services/DotNetWorkload.cs +++ b/src/ModularPipelines.DotNet/Services/DotNetWorkload.cs @@ -17,37 +17,37 @@ ICommand internalCommand private readonly ICommand _command; - public async Task Install(DotNetWorkloadInstallOptions options, CancellationToken token = default) + public virtual async Task Install(DotNetWorkloadInstallOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task List(DotNetWorkloadListOptions? options = default, CancellationToken token = default) + public virtual async Task List(DotNetWorkloadListOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DotNetWorkloadListOptions(), token); } - public async Task Update(DotNetWorkloadUpdateOptions? options = default, CancellationToken token = default) + public virtual async Task Update(DotNetWorkloadUpdateOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DotNetWorkloadUpdateOptions(), token); } - public async Task Restore(DotNetWorkloadRestoreOptions? options = default, CancellationToken token = default) + public virtual async Task Restore(DotNetWorkloadRestoreOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DotNetWorkloadRestoreOptions(), token); } - public async Task Repair(DotNetWorkloadRepairOptions? options = default, CancellationToken token = default) + public virtual async Task Repair(DotNetWorkloadRepairOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DotNetWorkloadRepairOptions(), token); } - public async Task Uninstall(DotNetWorkloadUninstallOptions options, CancellationToken token = default) + public virtual async Task Uninstall(DotNetWorkloadUninstallOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Search(DotNetWorkloadSearchOptions? options = default, CancellationToken token = default) + public virtual async Task Search(DotNetWorkloadSearchOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new DotNetWorkloadSearchOptions(), token); } diff --git a/src/ModularPipelines.Git/Attributes/RunOnlyOnBranchAttribute.cs b/src/ModularPipelines.Git/Attributes/RunOnlyOnBranchAttribute.cs index 0bd0f9ec3c..7c7fd1e06d 100644 --- a/src/ModularPipelines.Git/Attributes/RunOnlyOnBranchAttribute.cs +++ b/src/ModularPipelines.Git/Attributes/RunOnlyOnBranchAttribute.cs @@ -19,9 +19,9 @@ public RunOnlyOnBranchAttribute(string branchName) public override Task Condition(IPipelineHookContext pipelineContext) { var currentBranchName = pipelineContext.Git().Information.BranchName; - + pipelineContext.Logger.LogDebug("Current Branch: {CurrentBranch} | Can run on: {ExpectedBranch}", currentBranchName, BranchName); - + return Task.FromResult(currentBranchName == BranchName); } } \ No newline at end of file diff --git a/src/ModularPipelines.Git/GitCommands.cs b/src/ModularPipelines.Git/GitCommands.cs index cad278040a..819335fb03 100644 --- a/src/ModularPipelines.Git/GitCommands.cs +++ b/src/ModularPipelines.Git/GitCommands.cs @@ -16,470 +16,470 @@ public GitCommands(ICommand command) } /// - public async Task Add(GitAddOptions options, CancellationToken token = default) + public virtual async Task Add(GitAddOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task Am(GitAmOptions options, CancellationToken token = default) + public virtual async Task Am(GitAmOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task Apply(GitApplyOptions options, CancellationToken token = default) + public virtual async Task Apply(GitApplyOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task Archive(GitArchiveOptions options, CancellationToken token = default) + public virtual async Task Archive(GitArchiveOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task Base(GitBaseOptions options, CancellationToken token = default) + public virtual async Task Base(GitBaseOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task Bisect(GitBisectOptions options, CancellationToken token = default) + public virtual async Task Bisect(GitBisectOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task Blame(GitBlameOptions options, CancellationToken token = default) + public virtual async Task Blame(GitBlameOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task Branch(GitBranchOptions options, CancellationToken token = default) + public virtual async Task Branch(GitBranchOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task Bugreport(GitBugreportOptions options, CancellationToken token = default) + public virtual async Task Bugreport(GitBugreportOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task Bundle(GitBundleOptions options, CancellationToken token = default) + public virtual async Task Bundle(GitBundleOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task CatFile(GitCatFileOptions options, CancellationToken token = default) + public virtual async Task CatFile(GitCatFileOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task CheckIgnore(GitCheckIgnoreOptions options, CancellationToken token = default) + public virtual async Task CheckIgnore(GitCheckIgnoreOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task CheckoutIndex(GitCheckoutIndexOptions options, CancellationToken token = default) + public virtual async Task CheckoutIndex(GitCheckoutIndexOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task Checkout(GitCheckoutOptions options, CancellationToken token = default) + public virtual async Task Checkout(GitCheckoutOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task CherryPick(GitCherryPickOptions options, CancellationToken token = default) + public virtual async Task CherryPick(GitCherryPickOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task Clean(GitCleanOptions options, CancellationToken token = default) + public virtual async Task Clean(GitCleanOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task Clone(GitCloneOptions options, CancellationToken token = default) + public virtual async Task Clone(GitCloneOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task Commit(GitCommitOptions options, CancellationToken token = default) + public virtual async Task Commit(GitCommitOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task CommitTree(GitCommitTreeOptions options, CancellationToken token = default) + public virtual async Task CommitTree(GitCommitTreeOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task Config(GitConfigOptions options, CancellationToken token = default) + public virtual async Task Config(GitConfigOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task CountObjects(GitCountObjectsOptions options, CancellationToken token = default) + public virtual async Task CountObjects(GitCountObjectsOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task Daemon(GitDaemonOptions options, CancellationToken token = default) + public virtual async Task Daemon(GitDaemonOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task Describe(GitDescribeOptions options, CancellationToken token = default) + public virtual async Task Describe(GitDescribeOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task DiffIndex(GitDiffIndexOptions options, CancellationToken token = default) + public virtual async Task DiffIndex(GitDiffIndexOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task Diff(GitDiffOptions options, CancellationToken token = default) + public virtual async Task Diff(GitDiffOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task Difftool(GitDifftoolOptions options, CancellationToken token = default) + public virtual async Task Difftool(GitDifftoolOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task FastImport(GitFastImportOptions options, CancellationToken token = default) + public virtual async Task FastImport(GitFastImportOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task Fetch(GitFetchOptions? options, CancellationToken token = default) + public virtual async Task Fetch(GitFetchOptions? options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new GitFetchOptions(), token); } /// - public async Task FilterBranch(GitFilterBranchOptions options, CancellationToken token = default) + public virtual async Task FilterBranch(GitFilterBranchOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task ForEachRef(GitForEachRefOptions options, CancellationToken token = default) + public virtual async Task ForEachRef(GitForEachRefOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task FormatPatch(GitFormatPatchOptions options, CancellationToken token = default) + public virtual async Task FormatPatch(GitFormatPatchOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task Fsck(GitFsckOptions options, CancellationToken token = default) + public virtual async Task Fsck(GitFsckOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task Gc(GitGcOptions? options, CancellationToken token = default) + public virtual async Task Gc(GitGcOptions? options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new GitGcOptions(), token); } /// - public async Task Grep(GitGrepOptions options, CancellationToken token = default) + public virtual async Task Grep(GitGrepOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task HashObject(GitHashObjectOptions options, CancellationToken token = default) + public virtual async Task HashObject(GitHashObjectOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task Help(GitHelpOptions options, CancellationToken token = default) + public virtual async Task Help(GitHelpOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task Init(GitInitOptions options, CancellationToken token = default) + public virtual async Task Init(GitInitOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task Instaweb(GitInstawebOptions options, CancellationToken token = default) + public virtual async Task Instaweb(GitInstawebOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task Log(GitLogOptions options, CancellationToken token = default) + public virtual async Task Log(GitLogOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task LsFiles(GitLsFilesOptions options, CancellationToken token = default) + public virtual async Task LsFiles(GitLsFilesOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task LsTree(GitLsTreeOptions options, CancellationToken token = default) + public virtual async Task LsTree(GitLsTreeOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task MergeBase(GitMergeBaseOptions options, CancellationToken token = default) + public virtual async Task MergeBase(GitMergeBaseOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task Merge(GitMergeOptions options, CancellationToken token = default) + public virtual async Task Merge(GitMergeOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task Mergetool(GitMergetoolOptions options, CancellationToken token = default) + public virtual async Task Mergetool(GitMergetoolOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task Mv(GitMvOptions options, CancellationToken token = default) + public virtual async Task Mv(GitMvOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task Notes(GitNotesOptions options, CancellationToken token = default) + public virtual async Task Notes(GitNotesOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task Git(GitBaseOptions options, CancellationToken token = default) + public virtual async Task Git(GitBaseOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task Pull(GitPullOptions? options, CancellationToken token = default) + public virtual async Task Pull(GitPullOptions? options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new GitPullOptions(), token); } /// - public async Task Push(GitPushOptions? options, CancellationToken token = default) + public virtual async Task Push(GitPushOptions? options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new GitPushOptions(), token); } /// - public async Task RangeDiff(GitRangeDiffOptions options, CancellationToken token = default) + public virtual async Task RangeDiff(GitRangeDiffOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task ReadTree(GitReadTreeOptions options, CancellationToken token = default) + public virtual async Task ReadTree(GitReadTreeOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task Rebase(GitRebaseOptions options, CancellationToken token = default) + public virtual async Task Rebase(GitRebaseOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task Reflog(GitReflogOptions options, CancellationToken token = default) + public virtual async Task Reflog(GitReflogOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task Remote(GitRemoteOptions options, CancellationToken token = default) + public virtual async Task Remote(GitRemoteOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task RequestPull(GitRequestPullOptions options, CancellationToken token = default) + public virtual async Task RequestPull(GitRequestPullOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task Reset(GitResetOptions options, CancellationToken token = default) + public virtual async Task Reset(GitResetOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task Restore(GitRestoreOptions options, CancellationToken token = default) + public virtual async Task Restore(GitRestoreOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task Revert(GitRevertOptions options, CancellationToken token = default) + public virtual async Task Revert(GitRevertOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task RevList(GitRevListOptions options, CancellationToken token = default) + public virtual async Task RevList(GitRevListOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task RevParse(GitRevParseOptions options, CancellationToken token = default) + public virtual async Task RevParse(GitRevParseOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task Rm(GitRmOptions options, CancellationToken token = default) + public virtual async Task Rm(GitRmOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task SendEmail(GitSendEmailOptions options, CancellationToken token = default) + public virtual async Task SendEmail(GitSendEmailOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task Shortlog(GitShortlogOptions options, CancellationToken token = default) + public virtual async Task Shortlog(GitShortlogOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task Show(GitShowOptions options, CancellationToken token = default) + public virtual async Task Show(GitShowOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task ShowRef(GitShowRefOptions options, CancellationToken token = default) + public virtual async Task ShowRef(GitShowRefOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task Stash(GitStashOptions options, CancellationToken token = default) + public virtual async Task Stash(GitStashOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task Status(GitStatusOptions options, CancellationToken token = default) + public virtual async Task Status(GitStatusOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task Submodule(GitSubmoduleOptions options, CancellationToken token = default) + public virtual async Task Submodule(GitSubmoduleOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task Svn(GitSvnOptions options, CancellationToken token = default) + public virtual async Task Svn(GitSvnOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task Switch(GitSwitchOptions options, CancellationToken token = default) + public virtual async Task Switch(GitSwitchOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task SymbolicRef(GitSymbolicRefOptions options, CancellationToken token = default) + public virtual async Task SymbolicRef(GitSymbolicRefOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task Tag(GitTagOptions options, CancellationToken token = default) + public virtual async Task Tag(GitTagOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task UpdateIndex(GitUpdateIndexOptions options, CancellationToken token = default) + public virtual async Task UpdateIndex(GitUpdateIndexOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task UpdateRef(GitUpdateRefOptions options, CancellationToken token = default) + public virtual async Task UpdateRef(GitUpdateRefOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task UpdateServerInfo(GitUpdateServerInfoOptions options, + public virtual async Task UpdateServerInfo(GitUpdateServerInfoOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task VerifyPack(GitVerifyPackOptions options, CancellationToken token = default) + public virtual async Task VerifyPack(GitVerifyPackOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task Worktree(GitWorktreeOptions options, CancellationToken token = default) + public virtual async Task Worktree(GitWorktreeOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task WriteTree(GitWriteTreeOptions options, CancellationToken token = default) + public virtual async Task WriteTree(GitWriteTreeOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } diff --git a/src/ModularPipelines.Git/GitVersioning.cs b/src/ModularPipelines.Git/GitVersioning.cs index 5c75763f43..21568ef79d 100644 --- a/src/ModularPipelines.Git/GitVersioning.cs +++ b/src/ModularPipelines.Git/GitVersioning.cs @@ -43,10 +43,10 @@ await _command.ExecuteCommandLineTool(new CommandLineToolOptions("dotnet") { Arguments = [ - "tool", - "install", - "--tool-path", _temporaryFolder.Path, - "GitVersion.Tool", + "tool", + "install", + "--tool-path", _temporaryFolder.Path, + "GitVersion.Tool", "--version", "6.*" ], }); @@ -77,7 +77,7 @@ private async Task TryWriteConfigurationFile() try { var file = new File(Path.Combine(_gitInformation.Root.Path, "GitVersion.yml")); - + if (!file.Exists) { await file.WriteAsync( diff --git a/src/ModularPipelines.Git/Models/GitVersionInformation.cs b/src/ModularPipelines.Git/Models/GitVersionInformation.cs index 48196e634b..378401e608 100644 --- a/src/ModularPipelines.Git/Models/GitVersionInformation.cs +++ b/src/ModularPipelines.Git/Models/GitVersionInformation.cs @@ -6,53 +6,53 @@ namespace ModularPipelines.Git.Models; public record GitVersionInformation { public string? AssemblySemFileVer { get; init; } - + public string? AssemblySemVer { get; init; } - + public string? BranchName { get; init; } - + public int? BuildMetaData { get; init; } - + public DateTimeOffset CommitDate { get; init; } - + public int CommitsSinceVersionSource { get; init; } - + public string? EscapedBranchName { get; init; } - + public string? FullBuildMetaData { get; init; } - + public string? FullSemVer { get; init; } - + public string? InformationalVersion { get; init; } - + public int Major { get; init; } - + public string? MajorMinorPatch { get; init; } - + public int Minor { get; init; } - + public int Patch { get; init; } - + public string? PreReleaseLabel { get; init; } - + public string? PreReleaseLabelWithDash { get; init; } - + public int? PreReleaseNumber { get; init; } - + public string? PreReleaseTag { get; init; } - + public string? PreReleaseTagWithDash { get; init; } - + public string? SemVer { get; init; } - + public string? Sha { get; init; } - + public string? ShortSha { get; init; } - + public int UncommittedChanges { get; init; } - + public string? VersionSourceSha { get; init; } - + public int? WeightedPreReleaseNumber { get; init; } public string CommitsSinceVersionSourcePadded => CommitsSinceVersionSource.ToString().PadLeft(4, '0'); diff --git a/src/ModularPipelines.Git/Options/GitAddOptions.cs b/src/ModularPipelines.Git/Options/GitAddOptions.cs index 93222ef6dd..6c303ee394 100644 --- a/src/ModularPipelines.Git/Options/GitAddOptions.cs +++ b/src/ModularPipelines.Git/Options/GitAddOptions.cs @@ -8,65 +8,65 @@ namespace ModularPipelines.Git.Options; public record GitAddOptions : GitOptions { [BooleanCommandSwitch("--dry-run")] - public bool? DryRun { get; set; } + public virtual bool? DryRun { get; set; } [BooleanCommandSwitch("--verbose")] - public bool? Verbose { get; set; } + public virtual bool? Verbose { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [BooleanCommandSwitch("--sparse")] - public bool? Sparse { get; set; } + public virtual bool? Sparse { get; set; } [BooleanCommandSwitch("--interactive")] - public bool? Interactive { get; set; } + public virtual bool? Interactive { get; set; } [BooleanCommandSwitch("--patch")] - public bool? Patch { get; set; } + public virtual bool? Patch { get; set; } [BooleanCommandSwitch("--edit")] - public bool? Edit { get; set; } + public virtual bool? Edit { get; set; } [BooleanCommandSwitch("--update")] - public bool? Update { get; set; } + public virtual bool? Update { get; set; } [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } [BooleanCommandSwitch("--no-ignore-removal")] - public bool? NoIgnoreRemoval { get; set; } + public virtual bool? NoIgnoreRemoval { get; set; } [BooleanCommandSwitch("--no-all")] - public bool? NoAll { get; set; } + public virtual bool? NoAll { get; set; } [BooleanCommandSwitch("--ignore-removal")] - public bool? IgnoreRemoval { get; set; } + public virtual bool? IgnoreRemoval { get; set; } [BooleanCommandSwitch("--intent-to-add")] - public bool? IntentToAdd { get; set; } + public virtual bool? IntentToAdd { get; set; } [BooleanCommandSwitch("--refresh")] - public bool? Refresh { get; set; } + public virtual bool? Refresh { get; set; } [BooleanCommandSwitch("--ignore-errors")] - public bool? IgnoreErrors { get; set; } + public virtual bool? IgnoreErrors { get; set; } [BooleanCommandSwitch("--ignore-missing")] - public bool? IgnoreMissing { get; set; } + public virtual bool? IgnoreMissing { get; set; } [BooleanCommandSwitch("--no-warn-embedded-repo")] - public bool? NoWarnEmbeddedRepo { get; set; } + public virtual bool? NoWarnEmbeddedRepo { get; set; } [BooleanCommandSwitch("--renormalize")] - public bool? Renormalize { get; set; } + public virtual bool? Renormalize { get; set; } [BooleanCommandSwitch("--chmod")] - public bool? Chmod { get; set; } + public virtual bool? Chmod { get; set; } [CommandEqualsSeparatorSwitch("--pathspec-from-file")] public string? PathspecFromFile { get; set; } [BooleanCommandSwitch("--pathspec-file-nul")] - public bool? PathspecFileNul { get; set; } + public virtual bool? PathspecFileNul { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Git/Options/GitAmOptions.cs b/src/ModularPipelines.Git/Options/GitAmOptions.cs index cfc18b721a..fa30c3f819 100644 --- a/src/ModularPipelines.Git/Options/GitAmOptions.cs +++ b/src/ModularPipelines.Git/Options/GitAmOptions.cs @@ -8,67 +8,67 @@ namespace ModularPipelines.Git.Options; public record GitAmOptions : GitOptions { [BooleanCommandSwitch("--signoff")] - public bool? Signoff { get; set; } + public virtual bool? Signoff { get; set; } [BooleanCommandSwitch("--keep")] - public bool? Keep { get; set; } + public virtual bool? Keep { get; set; } [BooleanCommandSwitch("--keep-non-patch")] - public bool? KeepNonPatch { get; set; } + public virtual bool? KeepNonPatch { get; set; } [BooleanCommandSwitch("--no-keep-cr")] - public bool? NoKeepCr { get; set; } + public virtual bool? NoKeepCr { get; set; } [BooleanCommandSwitch("--keep-cr")] - public bool? KeepCr { get; set; } + public virtual bool? KeepCr { get; set; } [BooleanCommandSwitch("--c")] - public bool? C { get; set; } + public virtual bool? C { get; set; } [BooleanCommandSwitch("--scissors")] - public bool? Scissors { get; set; } + public virtual bool? Scissors { get; set; } [BooleanCommandSwitch("--no-scissors")] - public bool? NoScissors { get; set; } + public virtual bool? NoScissors { get; set; } [CommandEqualsSeparatorSwitch("--quoted-cr")] public string? QuotedCr { get; set; } [BooleanCommandSwitch("--empty")] - public bool? Empty { get; set; } + public virtual bool? Empty { get; set; } [BooleanCommandSwitch("--message-id")] - public bool? MessageId { get; set; } + public virtual bool? MessageId { get; set; } [BooleanCommandSwitch("--no-message-id")] - public bool? NoMessageId { get; set; } + public virtual bool? NoMessageId { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } [BooleanCommandSwitch("--utf8")] - public bool? Utf8 { get; set; } + public virtual bool? Utf8 { get; set; } [BooleanCommandSwitch("--no-utf8")] - public bool? NoUtf8 { get; set; } + public virtual bool? NoUtf8 { get; set; } [BooleanCommandSwitch("--3way")] - public bool? ThreeWay { get; set; } + public virtual bool? ThreeWay { get; set; } [BooleanCommandSwitch("--no-3way")] - public bool? NoThreeway { get; set; } + public virtual bool? NoThreeway { get; set; } [BooleanCommandSwitch("--rerere-autoupdate")] - public bool? RerereAutoupdate { get; set; } + public virtual bool? RerereAutoupdate { get; set; } [BooleanCommandSwitch("--no-rerere-autoupdate")] - public bool? NoRerereAutoupdate { get; set; } + public virtual bool? NoRerereAutoupdate { get; set; } [BooleanCommandSwitch("--ignore-space-change")] - public bool? IgnoreSpaceChange { get; set; } + public virtual bool? IgnoreSpaceChange { get; set; } [BooleanCommandSwitch("--ignore-whitespace")] - public bool? IgnoreWhitespace { get; set; } + public virtual bool? IgnoreWhitespace { get; set; } [CommandEqualsSeparatorSwitch("--whitespace")] public string? Whitespace { get; set; } @@ -83,50 +83,50 @@ public record GitAmOptions : GitOptions public string? Include { get; set; } [BooleanCommandSwitch("--reject")] - public bool? Reject { get; set; } + public virtual bool? Reject { get; set; } [BooleanCommandSwitch("--patch-format")] - public bool? PatchFormat { get; set; } + public virtual bool? PatchFormat { get; set; } [BooleanCommandSwitch("--interactive")] - public bool? Interactive { get; set; } + public virtual bool? Interactive { get; set; } [BooleanCommandSwitch("--no-verify")] - public bool? NoVerify { get; set; } + public virtual bool? NoVerify { get; set; } [BooleanCommandSwitch("--committer-date-is-author-date")] - public bool? CommitterDateIsAuthorDate { get; set; } + public virtual bool? CommitterDateIsAuthorDate { get; set; } [BooleanCommandSwitch("--ignore-date")] - public bool? IgnoreDate { get; set; } + public virtual bool? IgnoreDate { get; set; } [BooleanCommandSwitch("--skip")] - public bool? Skip { get; set; } + public virtual bool? Skip { get; set; } [CommandEqualsSeparatorSwitch("--gpg-sign")] public string? GpgSign { get; set; } [BooleanCommandSwitch("--no-gpg-sign")] - public bool? NoGpgSign { get; set; } + public virtual bool? NoGpgSign { get; set; } [BooleanCommandSwitch("--continue")] - public bool? Continue { get; set; } + public virtual bool? Continue { get; set; } [BooleanCommandSwitch("--resolved")] - public bool? Resolved { get; set; } + public virtual bool? Resolved { get; set; } [CommandEqualsSeparatorSwitch("--resolvemsg")] public string? Resolvemsg { get; set; } [BooleanCommandSwitch("--abort")] - public bool? Abort { get; set; } + public virtual bool? Abort { get; set; } [BooleanCommandSwitch("--quit")] - public bool? Quit { get; set; } + public virtual bool? Quit { get; set; } [BooleanCommandSwitch("--show-current-patch")] - public bool? ShowCurrentPatch { get; set; } + public virtual bool? ShowCurrentPatch { get; set; } [BooleanCommandSwitch("--allow-empty")] - public bool? AllowEmpty { get; set; } + public virtual bool? AllowEmpty { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Git/Options/GitApplyOptions.cs b/src/ModularPipelines.Git/Options/GitApplyOptions.cs index ec904da76f..54d2e1aadb 100644 --- a/src/ModularPipelines.Git/Options/GitApplyOptions.cs +++ b/src/ModularPipelines.Git/Options/GitApplyOptions.cs @@ -8,52 +8,52 @@ namespace ModularPipelines.Git.Options; public record GitApplyOptions : GitOptions { [BooleanCommandSwitch("--stat")] - public bool? Stat { get; set; } + public virtual bool? Stat { get; set; } [BooleanCommandSwitch("--numstat")] - public bool? Numstat { get; set; } + public virtual bool? Numstat { get; set; } [BooleanCommandSwitch("--summary")] - public bool? Summary { get; set; } + public virtual bool? Summary { get; set; } [BooleanCommandSwitch("--check")] - public bool? Check { get; set; } + public virtual bool? Check { get; set; } [BooleanCommandSwitch("--index")] - public bool? Index { get; set; } + public virtual bool? Index { get; set; } [BooleanCommandSwitch("--cached")] - public bool? Cached { get; set; } + public virtual bool? Cached { get; set; } [BooleanCommandSwitch("--intent-to-add")] - public bool? IntentToAdd { get; set; } + public virtual bool? IntentToAdd { get; set; } [BooleanCommandSwitch("--3way")] - public bool? ThreeWay { get; set; } + public virtual bool? ThreeWay { get; set; } [CommandEqualsSeparatorSwitch("--build-fake-ancestor")] public string? BuildFakeAncestor { get; set; } [BooleanCommandSwitch("--reverse")] - public bool? Reverse { get; set; } + public virtual bool? Reverse { get; set; } [BooleanCommandSwitch("--reject")] - public bool? Reject { get; set; } + public virtual bool? Reject { get; set; } [BooleanCommandSwitch("--unidiff-zero")] - public bool? UnidiffZero { get; set; } + public virtual bool? UnidiffZero { get; set; } [BooleanCommandSwitch("--apply")] - public bool? Apply { get; set; } + public virtual bool? Apply { get; set; } [BooleanCommandSwitch("--no-add")] - public bool? NoAdd { get; set; } + public virtual bool? NoAdd { get; set; } [BooleanCommandSwitch("--allow-binary-replacement")] - public bool? AllowBinaryReplacement { get; set; } + public virtual bool? AllowBinaryReplacement { get; set; } [BooleanCommandSwitch("--binary")] - public bool? Binary { get; set; } + public virtual bool? Binary { get; set; } [CommandEqualsSeparatorSwitch("--exclude")] public string? Exclude { get; set; } @@ -62,32 +62,32 @@ public record GitApplyOptions : GitOptions public string? Include { get; set; } [BooleanCommandSwitch("--ignore-space-change")] - public bool? IgnoreSpaceChange { get; set; } + public virtual bool? IgnoreSpaceChange { get; set; } [BooleanCommandSwitch("--ignore-whitespace")] - public bool? IgnoreWhitespace { get; set; } + public virtual bool? IgnoreWhitespace { get; set; } [CommandEqualsSeparatorSwitch("--whitespace")] public string? Whitespace { get; set; } [BooleanCommandSwitch("--inaccurate-eof")] - public bool? InaccurateEof { get; set; } + public virtual bool? InaccurateEof { get; set; } [BooleanCommandSwitch("--verbose")] - public bool? Verbose { get; set; } + public virtual bool? Verbose { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } [BooleanCommandSwitch("--recount")] - public bool? Recount { get; set; } + public virtual bool? Recount { get; set; } [CommandEqualsSeparatorSwitch("--directory")] public string? Directory { get; set; } [BooleanCommandSwitch("--unsafe-paths")] - public bool? UnsafePaths { get; set; } + public virtual bool? UnsafePaths { get; set; } [BooleanCommandSwitch("--allow-empty")] - public bool? AllowEmpty { get; set; } + public virtual bool? AllowEmpty { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Git/Options/GitArchiveOptions.cs b/src/ModularPipelines.Git/Options/GitArchiveOptions.cs index 698afa1433..40fae84ab5 100644 --- a/src/ModularPipelines.Git/Options/GitArchiveOptions.cs +++ b/src/ModularPipelines.Git/Options/GitArchiveOptions.cs @@ -11,10 +11,10 @@ public record GitArchiveOptions : GitOptions public string? Format { get; set; } [BooleanCommandSwitch("--list")] - public bool? List { get; set; } + public virtual bool? List { get; set; } [BooleanCommandSwitch("--verbose")] - public bool? Verbose { get; set; } + public virtual bool? Verbose { get; set; } [CommandEqualsSeparatorSwitch("--prefix")] public string? Prefix { get; set; } @@ -29,7 +29,7 @@ public record GitArchiveOptions : GitOptions public string? AddVirtualFile { get; set; } [BooleanCommandSwitch("--worktree-attributes")] - public bool? WorktreeAttributes { get; set; } + public virtual bool? WorktreeAttributes { get; set; } [CommandEqualsSeparatorSwitch("--mtime")] public string? Mtime { get; set; } diff --git a/src/ModularPipelines.Git/Options/GitBaseOptions.cs b/src/ModularPipelines.Git/Options/GitBaseOptions.cs index 133a770e22..248a022b17 100644 --- a/src/ModularPipelines.Git/Options/GitBaseOptions.cs +++ b/src/ModularPipelines.Git/Options/GitBaseOptions.cs @@ -7,7 +7,7 @@ namespace ModularPipelines.Git.Options; public record GitBaseOptions : GitOptions { [BooleanCommandSwitch("--version")] - public bool? Version { get; set; } + public virtual bool? Version { get; set; } [CommandEqualsSeparatorSwitch("--config-env")] public string[]? ConfigEnv { get; set; } @@ -16,19 +16,19 @@ public record GitBaseOptions : GitOptions public string? ExecPath { get; set; } [BooleanCommandSwitch("--html-path")] - public bool? HtmlPath { get; set; } + public virtual bool? HtmlPath { get; set; } [BooleanCommandSwitch("--man-path")] - public bool? ManPath { get; set; } + public virtual bool? ManPath { get; set; } [BooleanCommandSwitch("--info-path")] - public bool? InfoPath { get; set; } + public virtual bool? InfoPath { get; set; } [BooleanCommandSwitch("--paginate")] - public bool? Paginate { get; set; } + public virtual bool? Paginate { get; set; } [BooleanCommandSwitch("--no-pager")] - public bool? NoPager { get; set; } + public virtual bool? NoPager { get; set; } [CommandEqualsSeparatorSwitch("--git-dir")] public string? GitDir { get; set; } @@ -40,28 +40,28 @@ public record GitBaseOptions : GitOptions public string? Namespace { get; set; } [BooleanCommandSwitch("--bare")] - public bool? Bare { get; set; } + public virtual bool? Bare { get; set; } [BooleanCommandSwitch("--no-replace-objects")] - public bool? NoReplaceObjects { get; set; } + public virtual bool? NoReplaceObjects { get; set; } [BooleanCommandSwitch("--literal-pathspecs")] - public bool? LiteralPathspecs { get; set; } + public virtual bool? LiteralPathspecs { get; set; } [BooleanCommandSwitch("--glob-pathspecs")] - public bool? GlobPathspecs { get; set; } + public virtual bool? GlobPathspecs { get; set; } [BooleanCommandSwitch("--noglob-pathspecs")] - public bool? NoglobPathspecs { get; set; } + public virtual bool? NoglobPathspecs { get; set; } [BooleanCommandSwitch("--icase-pathspecs")] - public bool? IcasePathspecs { get; set; } + public virtual bool? IcasePathspecs { get; set; } [BooleanCommandSwitch("--no-optional-locks")] - public bool? NoOptionalLocks { get; set; } + public virtual bool? NoOptionalLocks { get; set; } [BooleanCommandSwitch("--list-cmds")] - public bool? ListCmds { get; set; } + public virtual bool? ListCmds { get; set; } [CommandEqualsSeparatorSwitch("--attr-source")] public string? AttrSource { get; set; } diff --git a/src/ModularPipelines.Git/Options/GitBisectOptions.cs b/src/ModularPipelines.Git/Options/GitBisectOptions.cs index 635c35901f..5876019d3d 100644 --- a/src/ModularPipelines.Git/Options/GitBisectOptions.cs +++ b/src/ModularPipelines.Git/Options/GitBisectOptions.cs @@ -8,8 +8,8 @@ namespace ModularPipelines.Git.Options; public record GitBisectOptions : GitOptions { [BooleanCommandSwitch("--no-checkout")] - public bool? NoCheckout { get; set; } + public virtual bool? NoCheckout { get; set; } [BooleanCommandSwitch("--first-parent")] - public bool? FirstParent { get; set; } + public virtual bool? FirstParent { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Git/Options/GitBlameOptions.cs b/src/ModularPipelines.Git/Options/GitBlameOptions.cs index 2415bea903..ba0e7768b6 100644 --- a/src/ModularPipelines.Git/Options/GitBlameOptions.cs +++ b/src/ModularPipelines.Git/Options/GitBlameOptions.cs @@ -8,25 +8,25 @@ namespace ModularPipelines.Git.Options; public record GitBlameOptions : GitOptions { [BooleanCommandSwitch("--root")] - public bool? Root { get; set; } + public virtual bool? Root { get; set; } [BooleanCommandSwitch("--show-stats")] - public bool? ShowStats { get; set; } + public virtual bool? ShowStats { get; set; } [CommandEqualsSeparatorSwitch("--reverse")] public string? Reverse { get; set; } [BooleanCommandSwitch("--first-parent")] - public bool? FirstParent { get; set; } + public virtual bool? FirstParent { get; set; } [BooleanCommandSwitch("--porcelain")] - public bool? Porcelain { get; set; } + public virtual bool? Porcelain { get; set; } [BooleanCommandSwitch("--line-porcelain")] - public bool? LinePorcelain { get; set; } + public virtual bool? LinePorcelain { get; set; } [BooleanCommandSwitch("--incremental")] - public bool? Incremental { get; set; } + public virtual bool? Incremental { get; set; } [CommandEqualsSeparatorSwitch("--encoding")] public string? Encoding { get; set; } @@ -38,10 +38,10 @@ public record GitBlameOptions : GitOptions public string? Date { get; set; } [BooleanCommandSwitch("--no-progress")] - public bool? NoProgress { get; set; } + public virtual bool? NoProgress { get; set; } [BooleanCommandSwitch("--progress")] - public bool? Progress { get; set; } + public virtual bool? Progress { get; set; } [CommandEqualsSeparatorSwitch("--ignore-rev")] public string? IgnoreRev { get; set; } @@ -50,25 +50,25 @@ public record GitBlameOptions : GitOptions public string? IgnoreRevsFile { get; set; } [BooleanCommandSwitch("--color-lines")] - public bool? ColorLines { get; set; } + public virtual bool? ColorLines { get; set; } [BooleanCommandSwitch("--color-by-age")] - public bool? ColorByAge { get; set; } + public virtual bool? ColorByAge { get; set; } [BooleanCommandSwitch("--c")] - public bool? C { get; set; } + public virtual bool? C { get; set; } [BooleanCommandSwitch("--score-debug")] - public bool? ScoreDebug { get; set; } + public virtual bool? ScoreDebug { get; set; } [BooleanCommandSwitch("--show-name")] - public bool? ShowName { get; set; } + public virtual bool? ShowName { get; set; } [BooleanCommandSwitch("--show-number")] - public bool? ShowNumber { get; set; } + public virtual bool? ShowNumber { get; set; } [BooleanCommandSwitch("--show-email")] - public bool? ShowEmail { get; set; } + public virtual bool? ShowEmail { get; set; } [CommandEqualsSeparatorSwitch("--abbrev")] public string? Abbrev { get; set; } diff --git a/src/ModularPipelines.Git/Options/GitBranchOptions.cs b/src/ModularPipelines.Git/Options/GitBranchOptions.cs index 6e6d165f35..7e81fc80d0 100644 --- a/src/ModularPipelines.Git/Options/GitBranchOptions.cs +++ b/src/ModularPipelines.Git/Options/GitBranchOptions.cs @@ -8,85 +8,85 @@ namespace ModularPipelines.Git.Options; public record GitBranchOptions : GitOptions { [BooleanCommandSwitch("--delete")] - public bool? Delete { get; set; } + public virtual bool? Delete { get; set; } [BooleanCommandSwitch("--create-reflog")] - public bool? CreateReflog { get; set; } + public virtual bool? CreateReflog { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [BooleanCommandSwitch("--move")] - public bool? Move { get; set; } + public virtual bool? Move { get; set; } [BooleanCommandSwitch("--c")] - public bool? C { get; set; } + public virtual bool? C { get; set; } [BooleanCommandSwitch("--copy")] - public bool? Copy { get; set; } + public virtual bool? Copy { get; set; } [CommandEqualsSeparatorSwitch("--color")] public string? Color { get; set; } [BooleanCommandSwitch("--no-color")] - public bool? NoColor { get; set; } + public virtual bool? NoColor { get; set; } [BooleanCommandSwitch("--ignore-case")] - public bool? IgnoreCase { get; set; } + public virtual bool? IgnoreCase { get; set; } [BooleanCommandSwitch("--omit-empty")] - public bool? OmitEmpty { get; set; } + public virtual bool? OmitEmpty { get; set; } [CommandEqualsSeparatorSwitch("--column")] public string? Column { get; set; } [BooleanCommandSwitch("--no-column")] - public bool? NoColumn { get; set; } + public virtual bool? NoColumn { get; set; } [BooleanCommandSwitch("--remotes")] - public bool? Remotes { get; set; } + public virtual bool? Remotes { get; set; } [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } [BooleanCommandSwitch("--list")] - public bool? List { get; set; } + public virtual bool? List { get; set; } [BooleanCommandSwitch("--show-current")] - public bool? ShowCurrent { get; set; } + public virtual bool? ShowCurrent { get; set; } [BooleanCommandSwitch("--verbose")] - public bool? Verbose { get; set; } + public virtual bool? Verbose { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } [CommandEqualsSeparatorSwitch("--abbrev")] public string? Abbrev { get; set; } [BooleanCommandSwitch("--no-abbrev")] - public bool? NoAbbrev { get; set; } + public virtual bool? NoAbbrev { get; set; } [BooleanCommandSwitch("--track")] - public bool? Track { get; set; } + public virtual bool? Track { get; set; } [BooleanCommandSwitch("--no-track")] - public bool? NoTrack { get; set; } + public virtual bool? NoTrack { get; set; } [BooleanCommandSwitch("--recurse-submodules")] - public bool? RecurseSubmodules { get; set; } + public virtual bool? RecurseSubmodules { get; set; } [BooleanCommandSwitch("--set-upstream")] - public bool? SetUpstream { get; set; } + public virtual bool? SetUpstream { get; set; } [CommandEqualsSeparatorSwitch("--set-upstream-to")] public string? SetUpstreamTo { get; set; } [BooleanCommandSwitch("--unset-upstream")] - public bool? UnsetUpstream { get; set; } + public virtual bool? UnsetUpstream { get; set; } [BooleanCommandSwitch("--edit-description")] - public bool? EditDescription { get; set; } + public virtual bool? EditDescription { get; set; } [CommandEqualsSeparatorSwitch("--contains")] public string? Contains { get; set; } diff --git a/src/ModularPipelines.Git/Options/GitBugreportOptions.cs b/src/ModularPipelines.Git/Options/GitBugreportOptions.cs index 66db468063..55d00a6656 100644 --- a/src/ModularPipelines.Git/Options/GitBugreportOptions.cs +++ b/src/ModularPipelines.Git/Options/GitBugreportOptions.cs @@ -14,7 +14,7 @@ public record GitBugreportOptions : GitOptions public string? Suffix { get; set; } [BooleanCommandSwitch("--no-diagnose")] - public bool? NoDiagnose { get; set; } + public virtual bool? NoDiagnose { get; set; } [CommandEqualsSeparatorSwitch("--diagnose")] public string? Diagnose { get; set; } diff --git a/src/ModularPipelines.Git/Options/GitBundleOptions.cs b/src/ModularPipelines.Git/Options/GitBundleOptions.cs index fd9fc59b91..7b3e7d16de 100644 --- a/src/ModularPipelines.Git/Options/GitBundleOptions.cs +++ b/src/ModularPipelines.Git/Options/GitBundleOptions.cs @@ -8,11 +8,11 @@ namespace ModularPipelines.Git.Options; public record GitBundleOptions : GitOptions { [BooleanCommandSwitch("--progress")] - public bool? Progress { get; set; } + public virtual bool? Progress { get; set; } [CommandEqualsSeparatorSwitch("--version")] public string? Version { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Git/Options/GitCatFileOptions.cs b/src/ModularPipelines.Git/Options/GitCatFileOptions.cs index 4b8fcf3659..819076fa7b 100644 --- a/src/ModularPipelines.Git/Options/GitCatFileOptions.cs +++ b/src/ModularPipelines.Git/Options/GitCatFileOptions.cs @@ -8,47 +8,47 @@ namespace ModularPipelines.Git.Options; public record GitCatFileOptions : GitOptions { [BooleanCommandSwitch("--no-mailmap")] - public bool? NoMailmap { get; set; } + public virtual bool? NoMailmap { get; set; } [BooleanCommandSwitch("--mailmap")] - public bool? Mailmap { get; set; } + public virtual bool? Mailmap { get; set; } [BooleanCommandSwitch("--no-use-mailmap")] - public bool? NoUseMailmap { get; set; } + public virtual bool? NoUseMailmap { get; set; } [BooleanCommandSwitch("--use-mailmap")] - public bool? UseMailmap { get; set; } + public virtual bool? UseMailmap { get; set; } [BooleanCommandSwitch("--textconv")] - public bool? Textconv { get; set; } + public virtual bool? Textconv { get; set; } [BooleanCommandSwitch("--filters")] - public bool? Filters { get; set; } + public virtual bool? Filters { get; set; } [CommandEqualsSeparatorSwitch("--path")] public string? Path { get; set; } [BooleanCommandSwitch("--batch")] - public bool? Batch { get; set; } + public virtual bool? Batch { get; set; } [BooleanCommandSwitch("--batch-check")] - public bool? BatchCheck { get; set; } + public virtual bool? BatchCheck { get; set; } [BooleanCommandSwitch("--batch-command")] - public bool? BatchCommand { get; set; } + public virtual bool? BatchCommand { get; set; } [BooleanCommandSwitch("--batch-all-objects")] - public bool? BatchAllObjects { get; set; } + public virtual bool? BatchAllObjects { get; set; } [BooleanCommandSwitch("--buffer")] - public bool? Buffer { get; set; } + public virtual bool? Buffer { get; set; } [BooleanCommandSwitch("--unordered")] - public bool? Unordered { get; set; } + public virtual bool? Unordered { get; set; } [BooleanCommandSwitch("--allow-unknown-type")] - public bool? AllowUnknownType { get; set; } + public virtual bool? AllowUnknownType { get; set; } [BooleanCommandSwitch("--follow-symlinks")] - public bool? FollowSymlinks { get; set; } + public virtual bool? FollowSymlinks { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Git/Options/GitCheckIgnoreOptions.cs b/src/ModularPipelines.Git/Options/GitCheckIgnoreOptions.cs index ba0c40a199..1c2a0599d4 100644 --- a/src/ModularPipelines.Git/Options/GitCheckIgnoreOptions.cs +++ b/src/ModularPipelines.Git/Options/GitCheckIgnoreOptions.cs @@ -8,8 +8,8 @@ namespace ModularPipelines.Git.Options; public record GitCheckIgnoreOptions : GitOptions { [BooleanCommandSwitch("--stdin")] - public bool? Stdin { get; set; } + public virtual bool? Stdin { get; set; } [BooleanCommandSwitch("--no-index")] - public bool? NoIndex { get; set; } + public virtual bool? NoIndex { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Git/Options/GitCheckoutIndexOptions.cs b/src/ModularPipelines.Git/Options/GitCheckoutIndexOptions.cs index bcb9e10298..4258b27205 100644 --- a/src/ModularPipelines.Git/Options/GitCheckoutIndexOptions.cs +++ b/src/ModularPipelines.Git/Options/GitCheckoutIndexOptions.cs @@ -8,19 +8,19 @@ namespace ModularPipelines.Git.Options; public record GitCheckoutIndexOptions : GitOptions { [BooleanCommandSwitch("--index")] - public bool? Index { get; set; } + public virtual bool? Index { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } [BooleanCommandSwitch("--no-create")] - public bool? NoCreate { get; set; } + public virtual bool? NoCreate { get; set; } [CommandEqualsSeparatorSwitch("--prefix")] public string? Prefix { get; set; } @@ -29,11 +29,11 @@ public record GitCheckoutIndexOptions : GitOptions public string? Stage { get; set; } [BooleanCommandSwitch("--temp")] - public bool? Temp { get; set; } + public virtual bool? Temp { get; set; } [BooleanCommandSwitch("--ignore-skip-worktree-bits")] - public bool? IgnoreSkipWorktreeBits { get; set; } + public virtual bool? IgnoreSkipWorktreeBits { get; set; } [BooleanCommandSwitch("--stdin")] - public bool? Stdin { get; set; } + public virtual bool? Stdin { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Git/Options/GitCheckoutOptions.cs b/src/ModularPipelines.Git/Options/GitCheckoutOptions.cs index ba3fed09dd..23a02f132d 100644 --- a/src/ModularPipelines.Git/Options/GitCheckoutOptions.cs +++ b/src/ModularPipelines.Git/Options/GitCheckoutOptions.cs @@ -10,7 +10,7 @@ public record GitCheckoutOptions : GitOptions public GitCheckoutOptions(string branchName) : this(branchName, false) { } - + public GitCheckoutOptions(string branchName, bool create) { if (create) @@ -24,83 +24,83 @@ public GitCheckoutOptions(string branchName, bool create) } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } [BooleanCommandSwitch("--progress")] - public bool? Progress { get; set; } + public virtual bool? Progress { get; set; } [BooleanCommandSwitch("--no-progress")] - public bool? NoProgress { get; set; } + public virtual bool? NoProgress { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [BooleanCommandSwitch("--ours")] - public bool? Ours { get; set; } + public virtual bool? Ours { get; set; } [BooleanCommandSwitch("--theirs")] - public bool? Theirs { get; set; } + public virtual bool? Theirs { get; set; } [BooleanCommandSwitch("--track")] - public bool? Track { get; set; } + public virtual bool? Track { get; set; } [BooleanCommandSwitch("--no-track")] - public bool? NoTrack { get; set; } + public virtual bool? NoTrack { get; set; } [BooleanCommandSwitch("--guess")] - public bool? Guess { get; set; } + public virtual bool? Guess { get; set; } [BooleanCommandSwitch("--no-guess")] - public bool? NoGuess { get; set; } + public virtual bool? NoGuess { get; set; } [BooleanCommandSwitch("--detach")] - public bool? Detach { get; set; } + public virtual bool? Detach { get; set; } [CommandSwitch("--orphan")] - public string? Orphan { get; set; } + public virtual string? Orphan { get; set; } [BooleanCommandSwitch("--ignore-skip-worktree-bits")] - public bool? IgnoreSkipWorktreeBits { get; set; } + public virtual bool? IgnoreSkipWorktreeBits { get; set; } [BooleanCommandSwitch("--merge")] - public bool? Merge { get; set; } + public virtual bool? Merge { get; set; } [CommandEqualsSeparatorSwitch("--conflict")] public string? Conflict { get; set; } [BooleanCommandSwitch("--patch")] - public bool? Patch { get; set; } + public virtual bool? Patch { get; set; } [BooleanCommandSwitch("--ignore-other-worktrees")] - public bool? IgnoreOtherWorktrees { get; set; } + public virtual bool? IgnoreOtherWorktrees { get; set; } [BooleanCommandSwitch("--overwrite-ignore")] - public bool? OverwriteIgnore { get; set; } + public virtual bool? OverwriteIgnore { get; set; } [BooleanCommandSwitch("--no-overwrite-ignore")] - public bool? NoOverwriteIgnore { get; set; } + public virtual bool? NoOverwriteIgnore { get; set; } [BooleanCommandSwitch("--recurse-submodules")] - public bool? RecurseSubmodules { get; set; } + public virtual bool? RecurseSubmodules { get; set; } [BooleanCommandSwitch("--no-recurse-submodules")] - public bool? NoRecurseSubmodules { get; set; } + public virtual bool? NoRecurseSubmodules { get; set; } [BooleanCommandSwitch("--overlay")] - public bool? Overlay { get; set; } + public virtual bool? Overlay { get; set; } [BooleanCommandSwitch("--no-overlay")] - public bool? NoOverlay { get; set; } + public virtual bool? NoOverlay { get; set; } [CommandEqualsSeparatorSwitch("--pathspec-from-file")] public string? PathspecFromFile { get; set; } [BooleanCommandSwitch("--pathspec-file-nul")] - public bool? PathspecFileNul { get; set; } + public virtual bool? PathspecFileNul { get; set; } - [PositionalArgument] + [PositionalArgument] public string? BranchName { get; set; } - - [CommandSwitch("-b")] - public string? NewBranchName { get; set; } + + [CommandSwitch("-b")] + public virtual string? NewBranchName { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Git/Options/GitCherryPickOptions.cs b/src/ModularPipelines.Git/Options/GitCherryPickOptions.cs index 8ac643a77d..e3ae7eb0e1 100644 --- a/src/ModularPipelines.Git/Options/GitCherryPickOptions.cs +++ b/src/ModularPipelines.Git/Options/GitCherryPickOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Git.Options; public record GitCherryPickOptions : GitOptions { [BooleanCommandSwitch("--edit")] - public bool? Edit { get; set; } + public virtual bool? Edit { get; set; } [CommandEqualsSeparatorSwitch("--cleanup")] public string? Cleanup { get; set; } @@ -17,28 +17,28 @@ public record GitCherryPickOptions : GitOptions public string? Mainline { get; set; } [BooleanCommandSwitch("--no-commit")] - public bool? NoCommit { get; set; } + public virtual bool? NoCommit { get; set; } [BooleanCommandSwitch("--signoff")] - public bool? Signoff { get; set; } + public virtual bool? Signoff { get; set; } [CommandEqualsSeparatorSwitch("--gpg-sign")] public string? GpgSign { get; set; } [BooleanCommandSwitch("--no-gpg-sign")] - public bool? NoGpgSign { get; set; } + public virtual bool? NoGpgSign { get; set; } [BooleanCommandSwitch("--ff")] - public bool? Ff { get; set; } + public virtual bool? Ff { get; set; } [BooleanCommandSwitch("--allow-empty")] - public bool? AllowEmpty { get; set; } + public virtual bool? AllowEmpty { get; set; } [BooleanCommandSwitch("--allow-empty-message")] - public bool? AllowEmptyMessage { get; set; } + public virtual bool? AllowEmptyMessage { get; set; } [BooleanCommandSwitch("--keep-redundant-commits")] - public bool? KeepRedundantCommits { get; set; } + public virtual bool? KeepRedundantCommits { get; set; } [CommandEqualsSeparatorSwitch("--strategy")] public string? Strategy { get; set; } @@ -47,20 +47,20 @@ public record GitCherryPickOptions : GitOptions public string? StrategyOption { get; set; } [BooleanCommandSwitch("--rerere-autoupdate")] - public bool? RerereAutoupdate { get; set; } + public virtual bool? RerereAutoupdate { get; set; } [BooleanCommandSwitch("--no-rerere-autoupdate")] - public bool? NoRerereAutoupdate { get; set; } + public virtual bool? NoRerereAutoupdate { get; set; } [BooleanCommandSwitch("--continue")] - public bool? Continue { get; set; } + public virtual bool? Continue { get; set; } [BooleanCommandSwitch("--skip")] - public bool? Skip { get; set; } + public virtual bool? Skip { get; set; } [BooleanCommandSwitch("--quit")] - public bool? Quit { get; set; } + public virtual bool? Quit { get; set; } [BooleanCommandSwitch("--abort")] - public bool? Abort { get; set; } + public virtual bool? Abort { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Git/Options/GitCleanOptions.cs b/src/ModularPipelines.Git/Options/GitCleanOptions.cs index 4297f05e77..be0eed009c 100644 --- a/src/ModularPipelines.Git/Options/GitCleanOptions.cs +++ b/src/ModularPipelines.Git/Options/GitCleanOptions.cs @@ -8,16 +8,16 @@ namespace ModularPipelines.Git.Options; public record GitCleanOptions : GitOptions { [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [BooleanCommandSwitch("--interactive")] - public bool? Interactive { get; set; } + public virtual bool? Interactive { get; set; } [BooleanCommandSwitch("--dry-run")] - public bool? DryRun { get; set; } + public virtual bool? DryRun { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } [CommandEqualsSeparatorSwitch("--exclude")] public string? Exclude { get; set; } diff --git a/src/ModularPipelines.Git/Options/GitCloneOptions.cs b/src/ModularPipelines.Git/Options/GitCloneOptions.cs index d7ce37d6fd..4b4fd52aa5 100644 --- a/src/ModularPipelines.Git/Options/GitCloneOptions.cs +++ b/src/ModularPipelines.Git/Options/GitCloneOptions.cs @@ -8,13 +8,13 @@ namespace ModularPipelines.Git.Options; public record GitCloneOptions : GitOptions { [BooleanCommandSwitch("--local")] - public bool? Local { get; set; } + public virtual bool? Local { get; set; } [BooleanCommandSwitch("--no-hardlinks")] - public bool? NoHardlinks { get; set; } + public virtual bool? NoHardlinks { get; set; } [BooleanCommandSwitch("--shared")] - public bool? Shared { get; set; } + public virtual bool? Shared { get; set; } [CommandEqualsSeparatorSwitch("--reference-if-able")] public string? ReferenceIfAble { get; set; } @@ -23,43 +23,43 @@ public record GitCloneOptions : GitOptions public string? Reference { get; set; } [BooleanCommandSwitch("--dissociate")] - public bool? Dissociate { get; set; } + public virtual bool? Dissociate { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } [BooleanCommandSwitch("--verbose")] - public bool? Verbose { get; set; } + public virtual bool? Verbose { get; set; } [BooleanCommandSwitch("--progress")] - public bool? Progress { get; set; } + public virtual bool? Progress { get; set; } [CommandEqualsSeparatorSwitch("--server-option")] public string? ServerOption { get; set; } [BooleanCommandSwitch("--no-checkout")] - public bool? NoCheckout { get; set; } + public virtual bool? NoCheckout { get; set; } [BooleanCommandSwitch("--no-reject-shallow")] - public bool? NoRejectShallow { get; set; } + public virtual bool? NoRejectShallow { get; set; } [BooleanCommandSwitch("--reject-shallow")] - public bool? RejectShallow { get; set; } + public virtual bool? RejectShallow { get; set; } [BooleanCommandSwitch("--bare")] - public bool? Bare { get; set; } + public virtual bool? Bare { get; set; } [BooleanCommandSwitch("--sparse")] - public bool? Sparse { get; set; } + public virtual bool? Sparse { get; set; } [CommandEqualsSeparatorSwitch("--filter")] public string? Filter { get; set; } [BooleanCommandSwitch("--also-filter-submodules")] - public bool? AlsoFilterSubmodules { get; set; } + public virtual bool? AlsoFilterSubmodules { get; set; } [BooleanCommandSwitch("--mirror")] - public bool? Mirror { get; set; } + public virtual bool? Mirror { get; set; } [CommandEqualsSeparatorSwitch("--origin")] public string? Origin { get; set; } @@ -86,28 +86,28 @@ public record GitCloneOptions : GitOptions public string? ShallowExclude { get; set; } [BooleanCommandSwitch("--no-single-branch")] - public bool? NoSingleBranch { get; set; } + public virtual bool? NoSingleBranch { get; set; } [BooleanCommandSwitch("--single-branch")] - public bool? SingleBranch { get; set; } + public virtual bool? SingleBranch { get; set; } [BooleanCommandSwitch("--no-tags")] - public bool? NoTags { get; set; } + public virtual bool? NoTags { get; set; } [CommandEqualsSeparatorSwitch("--recurse-submodules")] public string? RecurseSubmodules { get; set; } [BooleanCommandSwitch("--no-shallow-submodules")] - public bool? NoShallowSubmodules { get; set; } + public virtual bool? NoShallowSubmodules { get; set; } [BooleanCommandSwitch("--shallow-submodules")] - public bool? ShallowSubmodules { get; set; } + public virtual bool? ShallowSubmodules { get; set; } [BooleanCommandSwitch("--no-remote-submodules")] - public bool? NoRemoteSubmodules { get; set; } + public virtual bool? NoRemoteSubmodules { get; set; } [BooleanCommandSwitch("--remote-submodules")] - public bool? RemoteSubmodules { get; set; } + public virtual bool? RemoteSubmodules { get; set; } [CommandEqualsSeparatorSwitch("--separate-git-dir")] public string? SeparateGitDir { get; set; } diff --git a/src/ModularPipelines.Git/Options/GitCommitOptions.cs b/src/ModularPipelines.Git/Options/GitCommitOptions.cs index aee6e1ba76..81afd9862f 100644 --- a/src/ModularPipelines.Git/Options/GitCommitOptions.cs +++ b/src/ModularPipelines.Git/Options/GitCommitOptions.cs @@ -8,10 +8,10 @@ namespace ModularPipelines.Git.Options; public record GitCommitOptions : GitOptions { [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } [BooleanCommandSwitch("--patch")] - public bool? Patch { get; set; } + public virtual bool? Patch { get; set; } [CommandEqualsSeparatorSwitch("--reuse-message")] public string? ReuseMessage { get; set; } @@ -26,22 +26,22 @@ public record GitCommitOptions : GitOptions public string? Squash { get; set; } [BooleanCommandSwitch("--reset-author")] - public bool? ResetAuthor { get; set; } + public virtual bool? ResetAuthor { get; set; } [BooleanCommandSwitch("--short")] - public bool? Short { get; set; } + public virtual bool? Short { get; set; } [BooleanCommandSwitch("--branch")] - public bool? Branch { get; set; } + public virtual bool? Branch { get; set; } [BooleanCommandSwitch("--porcelain")] - public bool? Porcelain { get; set; } + public virtual bool? Porcelain { get; set; } [BooleanCommandSwitch("--long")] - public bool? Long { get; set; } + public virtual bool? Long { get; set; } [BooleanCommandSwitch("--null")] - public bool? Null { get; set; } + public virtual bool? Null { get; set; } [CommandEqualsSeparatorSwitch("--file")] public string? File { get; set; } @@ -59,74 +59,74 @@ public record GitCommitOptions : GitOptions public string? Template { get; set; } [BooleanCommandSwitch("--signoff")] - public bool? Signoff { get; set; } + public virtual bool? Signoff { get; set; } [BooleanCommandSwitch("--no-signoff")] - public bool? NoSignoff { get; set; } + public virtual bool? NoSignoff { get; set; } [CommandEqualsSeparatorSwitch("--trailer")] public string? Trailer { get; set; } [BooleanCommandSwitch("--no-verify")] - public bool? NoVerify { get; set; } + public virtual bool? NoVerify { get; set; } [BooleanCommandSwitch("--verify")] - public bool? Verify { get; set; } + public virtual bool? Verify { get; set; } [BooleanCommandSwitch("--allow-empty")] - public bool? AllowEmpty { get; set; } + public virtual bool? AllowEmpty { get; set; } [BooleanCommandSwitch("--allow-empty-message")] - public bool? AllowEmptyMessage { get; set; } + public virtual bool? AllowEmptyMessage { get; set; } [CommandEqualsSeparatorSwitch("--cleanup")] public string? Cleanup { get; set; } [BooleanCommandSwitch("--edit")] - public bool? Edit { get; set; } + public virtual bool? Edit { get; set; } [BooleanCommandSwitch("--no-edit")] - public bool? NoEdit { get; set; } + public virtual bool? NoEdit { get; set; } [BooleanCommandSwitch("--amend")] - public bool? Amend { get; set; } + public virtual bool? Amend { get; set; } [BooleanCommandSwitch("--no-post-rewrite")] - public bool? NoPostRewrite { get; set; } + public virtual bool? NoPostRewrite { get; set; } [BooleanCommandSwitch("--include")] - public bool? Include { get; set; } + public virtual bool? Include { get; set; } [BooleanCommandSwitch("--only")] - public bool? Only { get; set; } + public virtual bool? Only { get; set; } [CommandEqualsSeparatorSwitch("--pathspec-from-file")] public string? PathspecFromFile { get; set; } [BooleanCommandSwitch("--pathspec-file-nul")] - public bool? PathspecFileNul { get; set; } + public virtual bool? PathspecFileNul { get; set; } [CommandEqualsSeparatorSwitch("--untracked-files")] public string? UntrackedFiles { get; set; } [BooleanCommandSwitch("--verbose")] - public bool? Verbose { get; set; } + public virtual bool? Verbose { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } [BooleanCommandSwitch("--dry-run")] - public bool? DryRun { get; set; } + public virtual bool? DryRun { get; set; } [BooleanCommandSwitch("--status")] - public bool? Status { get; set; } + public virtual bool? Status { get; set; } [BooleanCommandSwitch("--no-status")] - public bool? NoStatus { get; set; } + public virtual bool? NoStatus { get; set; } [CommandEqualsSeparatorSwitch("--gpg-sign")] public string? GpgSign { get; set; } [BooleanCommandSwitch("--no-gpg-sign")] - public bool? NoGpgSign { get; set; } + public virtual bool? NoGpgSign { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Git/Options/GitCommitTreeOptions.cs b/src/ModularPipelines.Git/Options/GitCommitTreeOptions.cs index 51f57771c4..a80eac08ce 100644 --- a/src/ModularPipelines.Git/Options/GitCommitTreeOptions.cs +++ b/src/ModularPipelines.Git/Options/GitCommitTreeOptions.cs @@ -11,5 +11,5 @@ public record GitCommitTreeOptions : GitOptions public string? GpgSign { get; set; } [BooleanCommandSwitch("--no-gpg-sign")] - public bool? NoGpgSign { get; set; } + public virtual bool? NoGpgSign { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Git/Options/GitConfigOptions.cs b/src/ModularPipelines.Git/Options/GitConfigOptions.cs index f2c1812574..45cac4e2e8 100644 --- a/src/ModularPipelines.Git/Options/GitConfigOptions.cs +++ b/src/ModularPipelines.Git/Options/GitConfigOptions.cs @@ -8,34 +8,34 @@ namespace ModularPipelines.Git.Options; public record GitConfigOptions : GitOptions { [BooleanCommandSwitch("--replace-all")] - public bool? ReplaceAll { get; set; } + public virtual bool? ReplaceAll { get; set; } [BooleanCommandSwitch("--add")] - public bool? Add { get; set; } + public virtual bool? Add { get; set; } [BooleanCommandSwitch("--get")] - public bool? Get { get; set; } + public virtual bool? Get { get; set; } [BooleanCommandSwitch("--get-all")] - public bool? GetAll { get; set; } + public virtual bool? GetAll { get; set; } [BooleanCommandSwitch("--get-regexp")] - public bool? GetRegexp { get; set; } + public virtual bool? GetRegexp { get; set; } [CommandEqualsSeparatorSwitch("--get-urlmatch")] public string? GetUrlmatch { get; set; } [BooleanCommandSwitch("--global")] - public bool? Global { get; set; } + public virtual bool? Global { get; set; } [BooleanCommandSwitch("--system")] - public bool? System { get; set; } + public virtual bool? System { get; set; } [BooleanCommandSwitch("--local")] - public bool? Local { get; set; } + public virtual bool? Local { get; set; } [BooleanCommandSwitch("--worktree")] - public bool? Worktree { get; set; } + public virtual bool? Worktree { get; set; } [CommandEqualsSeparatorSwitch("--file")] public string? File { get; set; } @@ -44,55 +44,55 @@ public record GitConfigOptions : GitOptions public string? Blob { get; set; } [BooleanCommandSwitch("--remove-section")] - public bool? RemoveSection { get; set; } + public virtual bool? RemoveSection { get; set; } [BooleanCommandSwitch("--rename-section")] - public bool? RenameSection { get; set; } + public virtual bool? RenameSection { get; set; } [BooleanCommandSwitch("--unset")] - public bool? Unset { get; set; } + public virtual bool? Unset { get; set; } [BooleanCommandSwitch("--unset-all")] - public bool? UnsetAll { get; set; } + public virtual bool? UnsetAll { get; set; } [BooleanCommandSwitch("--list")] - public bool? List { get; set; } + public virtual bool? List { get; set; } [BooleanCommandSwitch("--fixed-value")] - public bool? FixedValue { get; set; } + public virtual bool? FixedValue { get; set; } [CommandEqualsSeparatorSwitch("--type")] public string? Type { get; set; } [BooleanCommandSwitch("--bool")] - public bool? Bool { get; set; } + public virtual bool? Bool { get; set; } [BooleanCommandSwitch("--int")] - public bool? Int { get; set; } + public virtual bool? Int { get; set; } [BooleanCommandSwitch("--bool-or-int")] - public bool? BoolOrInt { get; set; } + public virtual bool? BoolOrInt { get; set; } [BooleanCommandSwitch("--path")] - public bool? Path { get; set; } + public virtual bool? Path { get; set; } [BooleanCommandSwitch("--expiry-date")] - public bool? ExpiryDate { get; set; } + public virtual bool? ExpiryDate { get; set; } [BooleanCommandSwitch("--no-type")] - public bool? NoType { get; set; } + public virtual bool? NoType { get; set; } [BooleanCommandSwitch("--null")] - public bool? Null { get; set; } + public virtual bool? Null { get; set; } [BooleanCommandSwitch("--name-only")] - public bool? NameOnly { get; set; } + public virtual bool? NameOnly { get; set; } [BooleanCommandSwitch("--show-origin")] - public bool? ShowOrigin { get; set; } + public virtual bool? ShowOrigin { get; set; } [BooleanCommandSwitch("--show-scope")] - public bool? ShowScope { get; set; } + public virtual bool? ShowScope { get; set; } [CommandEqualsSeparatorSwitch("--get-colorbool")] public string? GetColorbool { get; set; } @@ -101,13 +101,13 @@ public record GitConfigOptions : GitOptions public string? GetColor { get; set; } [BooleanCommandSwitch("--edit")] - public bool? Edit { get; set; } + public virtual bool? Edit { get; set; } [BooleanCommandSwitch("--no-includes")] - public bool? NoIncludes { get; set; } + public virtual bool? NoIncludes { get; set; } [BooleanCommandSwitch("--includes")] - public bool? Includes { get; set; } + public virtual bool? Includes { get; set; } [CommandEqualsSeparatorSwitch("--default")] public string? Default { get; set; } diff --git a/src/ModularPipelines.Git/Options/GitCountObjectsOptions.cs b/src/ModularPipelines.Git/Options/GitCountObjectsOptions.cs index a59cc88a05..9de351d1ad 100644 --- a/src/ModularPipelines.Git/Options/GitCountObjectsOptions.cs +++ b/src/ModularPipelines.Git/Options/GitCountObjectsOptions.cs @@ -8,8 +8,8 @@ namespace ModularPipelines.Git.Options; public record GitCountObjectsOptions : GitOptions { [BooleanCommandSwitch("--verbose")] - public bool? Verbose { get; set; } + public virtual bool? Verbose { get; set; } [BooleanCommandSwitch("--human-readable")] - public bool? HumanReadable { get; set; } + public virtual bool? HumanReadable { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Git/Options/GitDaemonOptions.cs b/src/ModularPipelines.Git/Options/GitDaemonOptions.cs index c57d7d1bb2..94d6b867c7 100644 --- a/src/ModularPipelines.Git/Options/GitDaemonOptions.cs +++ b/src/ModularPipelines.Git/Options/GitDaemonOptions.cs @@ -8,22 +8,22 @@ namespace ModularPipelines.Git.Options; public record GitDaemonOptions : GitOptions { [BooleanCommandSwitch("--strict-paths")] - public bool? StrictPaths { get; set; } + public virtual bool? StrictPaths { get; set; } [CommandEqualsSeparatorSwitch("--base-path")] public string? BasePath { get; set; } [BooleanCommandSwitch("--base-path-relaxed")] - public bool? BasePathRelaxed { get; set; } + public virtual bool? BasePathRelaxed { get; set; } [CommandEqualsSeparatorSwitch("--interpolated-path")] public string? InterpolatedPath { get; set; } [BooleanCommandSwitch("--export-all")] - public bool? ExportAll { get; set; } + public virtual bool? ExportAll { get; set; } [BooleanCommandSwitch("--inetd")] - public bool? Inetd { get; set; } + public virtual bool? Inetd { get; set; } [CommandEqualsSeparatorSwitch("--listen")] public string? Listen { get; set; } @@ -41,22 +41,22 @@ public record GitDaemonOptions : GitOptions public string? MaxConnections { get; set; } [BooleanCommandSwitch("--syslog")] - public bool? Syslog { get; set; } + public virtual bool? Syslog { get; set; } [CommandEqualsSeparatorSwitch("--log-destination")] public string? LogDestination { get; set; } [BooleanCommandSwitch("--user-path")] - public bool? UserPath { get; set; } + public virtual bool? UserPath { get; set; } [BooleanCommandSwitch("--verbose")] - public bool? Verbose { get; set; } + public virtual bool? Verbose { get; set; } [BooleanCommandSwitch("--reuseaddr")] - public bool? Reuseaddr { get; set; } + public virtual bool? Reuseaddr { get; set; } [BooleanCommandSwitch("--detach")] - public bool? Detach { get; set; } + public virtual bool? Detach { get; set; } [CommandEqualsSeparatorSwitch("--pid-file")] public string? PidFile { get; set; } @@ -80,10 +80,10 @@ public record GitDaemonOptions : GitOptions public string? ForbidOverride { get; set; } [BooleanCommandSwitch("--no-informative-errors")] - public bool? NoInformativeErrors { get; set; } + public virtual bool? NoInformativeErrors { get; set; } [BooleanCommandSwitch("--informative-errors")] - public bool? InformativeErrors { get; set; } + public virtual bool? InformativeErrors { get; set; } [CommandEqualsSeparatorSwitch("--access-hook")] public string? AccessHook { get; set; } diff --git a/src/ModularPipelines.Git/Options/GitDescribeOptions.cs b/src/ModularPipelines.Git/Options/GitDescribeOptions.cs index 137fe4e447..1b6906cafe 100644 --- a/src/ModularPipelines.Git/Options/GitDescribeOptions.cs +++ b/src/ModularPipelines.Git/Options/GitDescribeOptions.cs @@ -14,13 +14,13 @@ public record GitDescribeOptions : GitOptions public string? Broken { get; set; } [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } [BooleanCommandSwitch("--tags")] - public bool? Tags { get; set; } + public virtual bool? Tags { get; set; } [BooleanCommandSwitch("--contains")] - public bool? Contains { get; set; } + public virtual bool? Contains { get; set; } [CommandEqualsSeparatorSwitch("--abbrev")] public string? Abbrev { get; set; } @@ -29,13 +29,13 @@ public record GitDescribeOptions : GitOptions public string? Candidates { get; set; } [BooleanCommandSwitch("--exact-match")] - public bool? ExactMatch { get; set; } + public virtual bool? ExactMatch { get; set; } [BooleanCommandSwitch("--debug")] - public bool? Debug { get; set; } + public virtual bool? Debug { get; set; } [BooleanCommandSwitch("--long")] - public bool? Long { get; set; } + public virtual bool? Long { get; set; } [CommandEqualsSeparatorSwitch("--match")] public string? Match { get; set; } @@ -44,8 +44,8 @@ public record GitDescribeOptions : GitOptions public string? Exclude { get; set; } [BooleanCommandSwitch("--always")] - public bool? Always { get; set; } + public virtual bool? Always { get; set; } [BooleanCommandSwitch("--first-parent")] - public bool? FirstParent { get; set; } + public virtual bool? FirstParent { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Git/Options/GitDiffIndexOptions.cs b/src/ModularPipelines.Git/Options/GitDiffIndexOptions.cs index 49f39a1abc..4e9bcded53 100644 --- a/src/ModularPipelines.Git/Options/GitDiffIndexOptions.cs +++ b/src/ModularPipelines.Git/Options/GitDiffIndexOptions.cs @@ -8,10 +8,10 @@ namespace ModularPipelines.Git.Options; public record GitDiffIndexOptions : GitOptions { [BooleanCommandSwitch("--patch")] - public bool? Patch { get; set; } + public virtual bool? Patch { get; set; } [BooleanCommandSwitch("--no-patch")] - public bool? NoPatch { get; set; } + public virtual bool? NoPatch { get; set; } [CommandEqualsSeparatorSwitch("--unified")] public string? Unified { get; set; } @@ -29,64 +29,64 @@ public record GitDiffIndexOptions : GitOptions public string? OutputIndicatorContext { get; set; } [BooleanCommandSwitch("--raw")] - public bool? Raw { get; set; } + public virtual bool? Raw { get; set; } [BooleanCommandSwitch("--patch-with-raw")] - public bool? PatchWithRaw { get; set; } + public virtual bool? PatchWithRaw { get; set; } [BooleanCommandSwitch("--indent-heuristic")] - public bool? IndentHeuristic { get; set; } + public virtual bool? IndentHeuristic { get; set; } [BooleanCommandSwitch("--no-indent-heuristic")] - public bool? NoIndentHeuristic { get; set; } + public virtual bool? NoIndentHeuristic { get; set; } [BooleanCommandSwitch("--minimal")] - public bool? Minimal { get; set; } + public virtual bool? Minimal { get; set; } [BooleanCommandSwitch("--patience")] - public bool? Patience { get; set; } + public virtual bool? Patience { get; set; } [BooleanCommandSwitch("--histogram")] - public bool? Histogram { get; set; } + public virtual bool? Histogram { get; set; } [CommandEqualsSeparatorSwitch("--anchored")] public string? Anchored { get; set; } [BooleanCommandSwitch("--diff-algorithm")] - public bool? DiffAlgorithm { get; set; } + public virtual bool? DiffAlgorithm { get; set; } [CommandEqualsSeparatorSwitch("--stat")] public string? Stat { get; set; } [BooleanCommandSwitch("--compact-summary")] - public bool? CompactSummary { get; set; } + public virtual bool? CompactSummary { get; set; } [BooleanCommandSwitch("--numstat")] - public bool? Numstat { get; set; } + public virtual bool? Numstat { get; set; } [BooleanCommandSwitch("--shortstat")] - public bool? Shortstat { get; set; } + public virtual bool? Shortstat { get; set; } [CommandEqualsSeparatorSwitch("--dirstat")] public string? Dirstat { get; set; } [BooleanCommandSwitch("--cumulative")] - public bool? Cumulative { get; set; } + public virtual bool? Cumulative { get; set; } [CommandEqualsSeparatorSwitch("--dirstat-by-file")] public string? DirstatByFile { get; set; } [BooleanCommandSwitch("--summary")] - public bool? Summary { get; set; } + public virtual bool? Summary { get; set; } [BooleanCommandSwitch("--patch-with-stat")] - public bool? PatchWithStat { get; set; } + public virtual bool? PatchWithStat { get; set; } [BooleanCommandSwitch("--name-only")] - public bool? NameOnly { get; set; } + public virtual bool? NameOnly { get; set; } [BooleanCommandSwitch("--name-status")] - public bool? NameStatus { get; set; } + public virtual bool? NameStatus { get; set; } [CommandEqualsSeparatorSwitch("--submodule")] public string? Submodule { get; set; } @@ -95,19 +95,19 @@ public record GitDiffIndexOptions : GitOptions public string? Color { get; set; } [BooleanCommandSwitch("--no-color")] - public bool? NoColor { get; set; } + public virtual bool? NoColor { get; set; } [CommandEqualsSeparatorSwitch("--color-moved")] public string? ColorMoved { get; set; } [BooleanCommandSwitch("--no-color-moved")] - public bool? NoColorMoved { get; set; } + public virtual bool? NoColorMoved { get; set; } [CommandEqualsSeparatorSwitch("--color-moved-ws")] public string? ColorMovedWs { get; set; } [BooleanCommandSwitch("--no-color-moved-ws")] - public bool? NoColorMovedWs { get; set; } + public virtual bool? NoColorMovedWs { get; set; } [CommandEqualsSeparatorSwitch("--word-diff")] public string? WordDiff { get; set; } @@ -119,25 +119,25 @@ public record GitDiffIndexOptions : GitOptions public string? ColorWords { get; set; } [BooleanCommandSwitch("--no-renames")] - public bool? NoRenames { get; set; } + public virtual bool? NoRenames { get; set; } [BooleanCommandSwitch("--no-rename-empty")] - public bool? NoRenameEmpty { get; set; } + public virtual bool? NoRenameEmpty { get; set; } [BooleanCommandSwitch("--rename-empty")] - public bool? RenameEmpty { get; set; } + public virtual bool? RenameEmpty { get; set; } [BooleanCommandSwitch("--check")] - public bool? Check { get; set; } + public virtual bool? Check { get; set; } [CommandEqualsSeparatorSwitch("--ws-error-highlight")] public string? WsErrorHighlight { get; set; } [BooleanCommandSwitch("--full-index")] - public bool? FullIndex { get; set; } + public virtual bool? FullIndex { get; set; } [BooleanCommandSwitch("--binary")] - public bool? Binary { get; set; } + public virtual bool? Binary { get; set; } [CommandEqualsSeparatorSwitch("--abbrev")] public string? Abbrev { get; set; } @@ -152,22 +152,22 @@ public record GitDiffIndexOptions : GitOptions public string? FindCopies { get; set; } [BooleanCommandSwitch("--find-copies-harder")] - public bool? FindCopiesHarder { get; set; } + public virtual bool? FindCopiesHarder { get; set; } [BooleanCommandSwitch("--irreversible-delete")] - public bool? IrreversibleDelete { get; set; } + public virtual bool? IrreversibleDelete { get; set; } [BooleanCommandSwitch("--diff-filter")] - public bool? DiffFilter { get; set; } + public virtual bool? DiffFilter { get; set; } [CommandEqualsSeparatorSwitch("--find-object")] public string? FindObject { get; set; } [BooleanCommandSwitch("--pickaxe-all")] - public bool? PickaxeAll { get; set; } + public virtual bool? PickaxeAll { get; set; } [BooleanCommandSwitch("--pickaxe-regex")] - public bool? PickaxeRegex { get; set; } + public virtual bool? PickaxeRegex { get; set; } [CommandEqualsSeparatorSwitch("--skip-to")] public string? SkipTo { get; set; } @@ -179,25 +179,25 @@ public record GitDiffIndexOptions : GitOptions public string? Relative { get; set; } [BooleanCommandSwitch("--no-relative")] - public bool? NoRelative { get; set; } + public virtual bool? NoRelative { get; set; } [BooleanCommandSwitch("--text")] - public bool? Text { get; set; } + public virtual bool? Text { get; set; } [BooleanCommandSwitch("--ignore-cr-at-eol")] - public bool? IgnoreCrAtEol { get; set; } + public virtual bool? IgnoreCrAtEol { get; set; } [BooleanCommandSwitch("--ignore-space-at-eol")] - public bool? IgnoreSpaceAtEol { get; set; } + public virtual bool? IgnoreSpaceAtEol { get; set; } [BooleanCommandSwitch("--ignore-space-change")] - public bool? IgnoreSpaceChange { get; set; } + public virtual bool? IgnoreSpaceChange { get; set; } [BooleanCommandSwitch("--ignore-all-space")] - public bool? IgnoreAllSpace { get; set; } + public virtual bool? IgnoreAllSpace { get; set; } [BooleanCommandSwitch("--ignore-blank-lines")] - public bool? IgnoreBlankLines { get; set; } + public virtual bool? IgnoreBlankLines { get; set; } [CommandEqualsSeparatorSwitch("--ignore-matching-lines")] public string? IgnoreMatchingLines { get; set; } @@ -206,25 +206,25 @@ public record GitDiffIndexOptions : GitOptions public string? InterHunkContext { get; set; } [BooleanCommandSwitch("--function-context")] - public bool? FunctionContext { get; set; } + public virtual bool? FunctionContext { get; set; } [BooleanCommandSwitch("--exit-code")] - public bool? ExitCode { get; set; } + public virtual bool? ExitCode { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } [BooleanCommandSwitch("--ext-diff")] - public bool? ExtDiff { get; set; } + public virtual bool? ExtDiff { get; set; } [BooleanCommandSwitch("--no-ext-diff")] - public bool? NoExtDiff { get; set; } + public virtual bool? NoExtDiff { get; set; } [BooleanCommandSwitch("--textconv")] - public bool? Textconv { get; set; } + public virtual bool? Textconv { get; set; } [BooleanCommandSwitch("--no-textconv")] - public bool? NoTextconv { get; set; } + public virtual bool? NoTextconv { get; set; } [CommandEqualsSeparatorSwitch("--ignore-submodules")] public string? IgnoreSubmodules { get; set; } @@ -236,20 +236,20 @@ public record GitDiffIndexOptions : GitOptions public string? DstPrefix { get; set; } [BooleanCommandSwitch("--no-prefix")] - public bool? NoPrefix { get; set; } + public virtual bool? NoPrefix { get; set; } [BooleanCommandSwitch("--default-prefix")] - public bool? DefaultPrefix { get; set; } + public virtual bool? DefaultPrefix { get; set; } [CommandEqualsSeparatorSwitch("--line-prefix")] public string? LinePrefix { get; set; } [BooleanCommandSwitch("--ita-invisible-in-index")] - public bool? ItaInvisibleInIndex { get; set; } + public virtual bool? ItaInvisibleInIndex { get; set; } [BooleanCommandSwitch("--cached")] - public bool? Cached { get; set; } + public virtual bool? Cached { get; set; } [BooleanCommandSwitch("--merge-base")] - public bool? MergeBase { get; set; } + public virtual bool? MergeBase { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Git/Options/GitDiffOptions.cs b/src/ModularPipelines.Git/Options/GitDiffOptions.cs index 59eeab6df4..47cbb10a50 100644 --- a/src/ModularPipelines.Git/Options/GitDiffOptions.cs +++ b/src/ModularPipelines.Git/Options/GitDiffOptions.cs @@ -8,10 +8,10 @@ namespace ModularPipelines.Git.Options; public record GitDiffOptions : GitOptions { [BooleanCommandSwitch("--patch")] - public bool? Patch { get; set; } + public virtual bool? Patch { get; set; } [BooleanCommandSwitch("--no-patch")] - public bool? NoPatch { get; set; } + public virtual bool? NoPatch { get; set; } [CommandEqualsSeparatorSwitch("--unified")] public string? Unified { get; set; } @@ -29,64 +29,64 @@ public record GitDiffOptions : GitOptions public string? OutputIndicatorContext { get; set; } [BooleanCommandSwitch("--raw")] - public bool? Raw { get; set; } + public virtual bool? Raw { get; set; } [BooleanCommandSwitch("--patch-with-raw")] - public bool? PatchWithRaw { get; set; } + public virtual bool? PatchWithRaw { get; set; } [BooleanCommandSwitch("--indent-heuristic")] - public bool? IndentHeuristic { get; set; } + public virtual bool? IndentHeuristic { get; set; } [BooleanCommandSwitch("--no-indent-heuristic")] - public bool? NoIndentHeuristic { get; set; } + public virtual bool? NoIndentHeuristic { get; set; } [BooleanCommandSwitch("--minimal")] - public bool? Minimal { get; set; } + public virtual bool? Minimal { get; set; } [BooleanCommandSwitch("--patience")] - public bool? Patience { get; set; } + public virtual bool? Patience { get; set; } [BooleanCommandSwitch("--histogram")] - public bool? Histogram { get; set; } + public virtual bool? Histogram { get; set; } [CommandEqualsSeparatorSwitch("--anchored")] public string? Anchored { get; set; } [BooleanCommandSwitch("--diff-algorithm")] - public bool? DiffAlgorithm { get; set; } + public virtual bool? DiffAlgorithm { get; set; } [CommandEqualsSeparatorSwitch("--stat")] public string? Stat { get; set; } [BooleanCommandSwitch("--compact-summary")] - public bool? CompactSummary { get; set; } + public virtual bool? CompactSummary { get; set; } [BooleanCommandSwitch("--numstat")] - public bool? Numstat { get; set; } + public virtual bool? Numstat { get; set; } [BooleanCommandSwitch("--shortstat")] - public bool? Shortstat { get; set; } + public virtual bool? Shortstat { get; set; } [CommandEqualsSeparatorSwitch("--dirstat")] public string? Dirstat { get; set; } [BooleanCommandSwitch("--cumulative")] - public bool? Cumulative { get; set; } + public virtual bool? Cumulative { get; set; } [CommandEqualsSeparatorSwitch("--dirstat-by-file")] public string? DirstatByFile { get; set; } [BooleanCommandSwitch("--summary")] - public bool? Summary { get; set; } + public virtual bool? Summary { get; set; } [BooleanCommandSwitch("--patch-with-stat")] - public bool? PatchWithStat { get; set; } + public virtual bool? PatchWithStat { get; set; } [BooleanCommandSwitch("--name-only")] - public bool? NameOnly { get; set; } + public virtual bool? NameOnly { get; set; } [BooleanCommandSwitch("--name-status")] - public bool? NameStatus { get; set; } + public virtual bool? NameStatus { get; set; } [CommandEqualsSeparatorSwitch("--submodule")] public string? Submodule { get; set; } @@ -95,19 +95,19 @@ public record GitDiffOptions : GitOptions public string? Color { get; set; } [BooleanCommandSwitch("--no-color")] - public bool? NoColor { get; set; } + public virtual bool? NoColor { get; set; } [CommandEqualsSeparatorSwitch("--color-moved")] public string? ColorMoved { get; set; } [BooleanCommandSwitch("--no-color-moved")] - public bool? NoColorMoved { get; set; } + public virtual bool? NoColorMoved { get; set; } [CommandEqualsSeparatorSwitch("--color-moved-ws")] public string? ColorMovedWs { get; set; } [BooleanCommandSwitch("--no-color-moved-ws")] - public bool? NoColorMovedWs { get; set; } + public virtual bool? NoColorMovedWs { get; set; } [CommandEqualsSeparatorSwitch("--word-diff")] public string? WordDiff { get; set; } @@ -119,25 +119,25 @@ public record GitDiffOptions : GitOptions public string? ColorWords { get; set; } [BooleanCommandSwitch("--no-renames")] - public bool? NoRenames { get; set; } + public virtual bool? NoRenames { get; set; } [BooleanCommandSwitch("--no-rename-empty")] - public bool? NoRenameEmpty { get; set; } + public virtual bool? NoRenameEmpty { get; set; } [BooleanCommandSwitch("--rename-empty")] - public bool? RenameEmpty { get; set; } + public virtual bool? RenameEmpty { get; set; } [BooleanCommandSwitch("--check")] - public bool? Check { get; set; } + public virtual bool? Check { get; set; } [CommandEqualsSeparatorSwitch("--ws-error-highlight")] public string? WsErrorHighlight { get; set; } [BooleanCommandSwitch("--full-index")] - public bool? FullIndex { get; set; } + public virtual bool? FullIndex { get; set; } [BooleanCommandSwitch("--binary")] - public bool? Binary { get; set; } + public virtual bool? Binary { get; set; } [CommandEqualsSeparatorSwitch("--abbrev")] public string? Abbrev { get; set; } @@ -152,22 +152,22 @@ public record GitDiffOptions : GitOptions public string? FindCopies { get; set; } [BooleanCommandSwitch("--find-copies-harder")] - public bool? FindCopiesHarder { get; set; } + public virtual bool? FindCopiesHarder { get; set; } [BooleanCommandSwitch("--irreversible-delete")] - public bool? IrreversibleDelete { get; set; } + public virtual bool? IrreversibleDelete { get; set; } [BooleanCommandSwitch("--diff-filter")] - public bool? DiffFilter { get; set; } + public virtual bool? DiffFilter { get; set; } [CommandEqualsSeparatorSwitch("--find-object")] public string? FindObject { get; set; } [BooleanCommandSwitch("--pickaxe-all")] - public bool? PickaxeAll { get; set; } + public virtual bool? PickaxeAll { get; set; } [BooleanCommandSwitch("--pickaxe-regex")] - public bool? PickaxeRegex { get; set; } + public virtual bool? PickaxeRegex { get; set; } [CommandEqualsSeparatorSwitch("--skip-to")] public string? SkipTo { get; set; } @@ -179,25 +179,25 @@ public record GitDiffOptions : GitOptions public string? Relative { get; set; } [BooleanCommandSwitch("--no-relative")] - public bool? NoRelative { get; set; } + public virtual bool? NoRelative { get; set; } [BooleanCommandSwitch("--text")] - public bool? Text { get; set; } + public virtual bool? Text { get; set; } [BooleanCommandSwitch("--ignore-cr-at-eol")] - public bool? IgnoreCrAtEol { get; set; } + public virtual bool? IgnoreCrAtEol { get; set; } [BooleanCommandSwitch("--ignore-space-at-eol")] - public bool? IgnoreSpaceAtEol { get; set; } + public virtual bool? IgnoreSpaceAtEol { get; set; } [BooleanCommandSwitch("--ignore-space-change")] - public bool? IgnoreSpaceChange { get; set; } + public virtual bool? IgnoreSpaceChange { get; set; } [BooleanCommandSwitch("--ignore-all-space")] - public bool? IgnoreAllSpace { get; set; } + public virtual bool? IgnoreAllSpace { get; set; } [BooleanCommandSwitch("--ignore-blank-lines")] - public bool? IgnoreBlankLines { get; set; } + public virtual bool? IgnoreBlankLines { get; set; } [CommandEqualsSeparatorSwitch("--ignore-matching-lines")] public string? IgnoreMatchingLines { get; set; } @@ -206,25 +206,25 @@ public record GitDiffOptions : GitOptions public string? InterHunkContext { get; set; } [BooleanCommandSwitch("--function-context")] - public bool? FunctionContext { get; set; } + public virtual bool? FunctionContext { get; set; } [BooleanCommandSwitch("--exit-code")] - public bool? ExitCode { get; set; } + public virtual bool? ExitCode { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } [BooleanCommandSwitch("--ext-diff")] - public bool? ExtDiff { get; set; } + public virtual bool? ExtDiff { get; set; } [BooleanCommandSwitch("--no-ext-diff")] - public bool? NoExtDiff { get; set; } + public virtual bool? NoExtDiff { get; set; } [BooleanCommandSwitch("--textconv")] - public bool? Textconv { get; set; } + public virtual bool? Textconv { get; set; } [BooleanCommandSwitch("--no-textconv")] - public bool? NoTextconv { get; set; } + public virtual bool? NoTextconv { get; set; } [CommandEqualsSeparatorSwitch("--ignore-submodules")] public string? IgnoreSubmodules { get; set; } @@ -236,14 +236,14 @@ public record GitDiffOptions : GitOptions public string? DstPrefix { get; set; } [BooleanCommandSwitch("--no-prefix")] - public bool? NoPrefix { get; set; } + public virtual bool? NoPrefix { get; set; } [BooleanCommandSwitch("--default-prefix")] - public bool? DefaultPrefix { get; set; } + public virtual bool? DefaultPrefix { get; set; } [CommandEqualsSeparatorSwitch("--line-prefix")] public string? LinePrefix { get; set; } [BooleanCommandSwitch("--ita-invisible-in-index")] - public bool? ItaInvisibleInIndex { get; set; } + public virtual bool? ItaInvisibleInIndex { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Git/Options/GitDifftoolOptions.cs b/src/ModularPipelines.Git/Options/GitDifftoolOptions.cs index 5152e8fdec..b670b36a51 100644 --- a/src/ModularPipelines.Git/Options/GitDifftoolOptions.cs +++ b/src/ModularPipelines.Git/Options/GitDifftoolOptions.cs @@ -8,13 +8,13 @@ namespace ModularPipelines.Git.Options; public record GitDifftoolOptions : GitOptions { [BooleanCommandSwitch("--dir-diff")] - public bool? DirDiff { get; set; } + public virtual bool? DirDiff { get; set; } [BooleanCommandSwitch("--no-prompt")] - public bool? NoPrompt { get; set; } + public virtual bool? NoPrompt { get; set; } [BooleanCommandSwitch("--prompt")] - public bool? Prompt { get; set; } + public virtual bool? Prompt { get; set; } [CommandEqualsSeparatorSwitch("--rotate-to")] public string? RotateTo { get; set; } @@ -26,26 +26,26 @@ public record GitDifftoolOptions : GitOptions public string? GitTool { get; set; } [BooleanCommandSwitch("--tool-help")] - public bool? ToolHelp { get; set; } + public virtual bool? ToolHelp { get; set; } [BooleanCommandSwitch("--no-symlinks")] - public bool? NoSymlinks { get; set; } + public virtual bool? NoSymlinks { get; set; } [BooleanCommandSwitch("--symlinks")] - public bool? Symlinks { get; set; } + public virtual bool? Symlinks { get; set; } [CommandEqualsSeparatorSwitch("--extcmd")] public string? Extcmd { get; set; } [BooleanCommandSwitch("--no-gui")] - public bool? NoGui { get; set; } + public virtual bool? NoGui { get; set; } [BooleanCommandSwitch("--gui")] - public bool? Gui { get; set; } + public virtual bool? Gui { get; set; } [BooleanCommandSwitch("--no-trust-exit-code")] - public bool? NoTrustExitCode { get; set; } + public virtual bool? NoTrustExitCode { get; set; } [BooleanCommandSwitch("--trust-exit-code")] - public bool? TrustExitCode { get; set; } + public virtual bool? TrustExitCode { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Git/Options/GitFastImportOptions.cs b/src/ModularPipelines.Git/Options/GitFastImportOptions.cs index 26d66031c3..680c312ca8 100644 --- a/src/ModularPipelines.Git/Options/GitFastImportOptions.cs +++ b/src/ModularPipelines.Git/Options/GitFastImportOptions.cs @@ -8,16 +8,16 @@ namespace ModularPipelines.Git.Options; public record GitFastImportOptions : GitOptions { [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } [BooleanCommandSwitch("--stats")] - public bool? Stats { get; set; } + public virtual bool? Stats { get; set; } [BooleanCommandSwitch("--allow-unsafe-features")] - public bool? AllowUnsafeFeatures { get; set; } + public virtual bool? AllowUnsafeFeatures { get; set; } [CommandEqualsSeparatorSwitch("--cat-blob-fd")] public string? CatBlobFd { get; set; } @@ -26,7 +26,7 @@ public record GitFastImportOptions : GitOptions public string? DateFormat { get; set; } [BooleanCommandSwitch("--done")] - public bool? Done { get; set; } + public virtual bool? Done { get; set; } [CommandEqualsSeparatorSwitch("--export-marks")] public string? ExportMarks { get; set; } @@ -38,10 +38,10 @@ public record GitFastImportOptions : GitOptions public string? ImportMarksIfExists { get; set; } [BooleanCommandSwitch("--no-relative-marks")] - public bool? NoRelativeMarks { get; set; } + public virtual bool? NoRelativeMarks { get; set; } [BooleanCommandSwitch("--relative-marks")] - public bool? RelativeMarks { get; set; } + public virtual bool? RelativeMarks { get; set; } [CommandEqualsSeparatorSwitch("--rewrite-submodules-from")] public string? RewriteSubmodulesFrom { get; set; } diff --git a/src/ModularPipelines.Git/Options/GitFetchOptions.cs b/src/ModularPipelines.Git/Options/GitFetchOptions.cs index 5afd636a04..26711e7ca5 100644 --- a/src/ModularPipelines.Git/Options/GitFetchOptions.cs +++ b/src/ModularPipelines.Git/Options/GitFetchOptions.cs @@ -8,13 +8,13 @@ namespace ModularPipelines.Git.Options; public record GitFetchOptions : GitOptions { [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } [BooleanCommandSwitch("--append")] - public bool? Append { get; set; } + public virtual bool? Append { get; set; } [BooleanCommandSwitch("--atomic")] - public bool? Atomic { get; set; } + public virtual bool? Atomic { get; set; } [CommandEqualsSeparatorSwitch("--depth")] public string? Depth { get; set; } @@ -29,125 +29,125 @@ public record GitFetchOptions : GitOptions public string? ShallowExclude { get; set; } [BooleanCommandSwitch("--unshallow")] - public bool? Unshallow { get; set; } + public virtual bool? Unshallow { get; set; } [BooleanCommandSwitch("--update-shallow")] - public bool? UpdateShallow { get; set; } + public virtual bool? UpdateShallow { get; set; } [CommandEqualsSeparatorSwitch("--negotiation-tip")] public string? NegotiationTip { get; set; } [BooleanCommandSwitch("--negotiate-only")] - public bool? NegotiateOnly { get; set; } + public virtual bool? NegotiateOnly { get; set; } [BooleanCommandSwitch("--dry-run")] - public bool? DryRun { get; set; } + public virtual bool? DryRun { get; set; } [BooleanCommandSwitch("--porcelain")] - public bool? Porcelain { get; set; } + public virtual bool? Porcelain { get; set; } [BooleanCommandSwitch("--no-write-fetch-head")] - public bool? NoWriteFetchHead { get; set; } + public virtual bool? NoWriteFetchHead { get; set; } [BooleanCommandSwitch("--write-fetch-head")] - public bool? WriteFetchHead { get; set; } + public virtual bool? WriteFetchHead { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [BooleanCommandSwitch("--keep")] - public bool? Keep { get; set; } + public virtual bool? Keep { get; set; } [BooleanCommandSwitch("--multiple")] - public bool? Multiple { get; set; } + public virtual bool? Multiple { get; set; } [BooleanCommandSwitch("--no-auto-maintenance")] - public bool? NoAutoMaintenance { get; set; } + public virtual bool? NoAutoMaintenance { get; set; } [BooleanCommandSwitch("--auto-maintenance")] - public bool? AutoMaintenance { get; set; } + public virtual bool? AutoMaintenance { get; set; } [BooleanCommandSwitch("--no-auto-gc")] - public bool? NoAutoGc { get; set; } + public virtual bool? NoAutoGc { get; set; } [BooleanCommandSwitch("--auto-gc")] - public bool? AutoGc { get; set; } + public virtual bool? AutoGc { get; set; } [BooleanCommandSwitch("--no-write-commit-graph")] - public bool? NoWriteCommitGraph { get; set; } + public virtual bool? NoWriteCommitGraph { get; set; } [BooleanCommandSwitch("--write-commit-graph")] - public bool? WriteCommitGraph { get; set; } + public virtual bool? WriteCommitGraph { get; set; } [BooleanCommandSwitch("--prefetch")] - public bool? Prefetch { get; set; } + public virtual bool? Prefetch { get; set; } [BooleanCommandSwitch("--prune")] - public bool? Prune { get; set; } + public virtual bool? Prune { get; set; } [BooleanCommandSwitch("--prune-tags")] - public bool? PruneTags { get; set; } + public virtual bool? PruneTags { get; set; } [BooleanCommandSwitch("--no-tags")] - public bool? NoTags { get; set; } + public virtual bool? NoTags { get; set; } [BooleanCommandSwitch("--refetch")] - public bool? Refetch { get; set; } + public virtual bool? Refetch { get; set; } [CommandEqualsSeparatorSwitch("--refmap")] public string? Refmap { get; set; } [BooleanCommandSwitch("--tags")] - public bool? Tags { get; set; } + public virtual bool? Tags { get; set; } [BooleanCommandSwitch("--recurse-submodules")] - public bool? RecurseSubmodules { get; set; } + public virtual bool? RecurseSubmodules { get; set; } [CommandEqualsSeparatorSwitch("--jobs")] public string? Jobs { get; set; } [BooleanCommandSwitch("--no-recurse-submodules")] - public bool? NoRecurseSubmodules { get; set; } + public virtual bool? NoRecurseSubmodules { get; set; } [BooleanCommandSwitch("--set-upstream")] - public bool? SetUpstream { get; set; } + public virtual bool? SetUpstream { get; set; } [CommandEqualsSeparatorSwitch("--submodule-prefix")] public string? SubmodulePrefix { get; set; } [BooleanCommandSwitch("--recurse-submodules-default")] - public bool? RecurseSubmodulesDefault { get; set; } + public virtual bool? RecurseSubmodulesDefault { get; set; } [BooleanCommandSwitch("--update-head-ok")] - public bool? UpdateHeadOk { get; set; } + public virtual bool? UpdateHeadOk { get; set; } [CommandEqualsSeparatorSwitch("--upload-pack")] public string? UploadPack { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } [BooleanCommandSwitch("--verbose")] - public bool? Verbose { get; set; } + public virtual bool? Verbose { get; set; } [BooleanCommandSwitch("--progress")] - public bool? Progress { get; set; } + public virtual bool? Progress { get; set; } [CommandEqualsSeparatorSwitch("--server-option")] public string? ServerOption { get; set; } [BooleanCommandSwitch("--show-forced-updates")] - public bool? ShowForcedUpdates { get; set; } + public virtual bool? ShowForcedUpdates { get; set; } [BooleanCommandSwitch("--no-show-forced-updates")] - public bool? NoShowForcedUpdates { get; set; } + public virtual bool? NoShowForcedUpdates { get; set; } [BooleanCommandSwitch("--ipv4")] - public bool? Ipv4 { get; set; } + public virtual bool? Ipv4 { get; set; } [BooleanCommandSwitch("--ipv6")] - public bool? Ipv6 { get; set; } + public virtual bool? Ipv6 { get; set; } [BooleanCommandSwitch("--stdin")] - public bool? Stdin { get; set; } + public virtual bool? Stdin { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Git/Options/GitFilterBranchOptions.cs b/src/ModularPipelines.Git/Options/GitFilterBranchOptions.cs index d465b2c42b..e703c1ff92 100644 --- a/src/ModularPipelines.Git/Options/GitFilterBranchOptions.cs +++ b/src/ModularPipelines.Git/Options/GitFilterBranchOptions.cs @@ -35,13 +35,13 @@ public record GitFilterBranchOptions : GitOptions public string? TagNameFilter { get; set; } [BooleanCommandSwitch("--prune-empty")] - public bool? PruneEmpty { get; set; } + public virtual bool? PruneEmpty { get; set; } [CommandEqualsSeparatorSwitch("--original")] public string? Original { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [CommandEqualsSeparatorSwitch("--state-branch")] public string? StateBranch { get; set; } diff --git a/src/ModularPipelines.Git/Options/GitForEachRefOptions.cs b/src/ModularPipelines.Git/Options/GitForEachRefOptions.cs index e8be60afc2..934a247e4d 100644 --- a/src/ModularPipelines.Git/Options/GitForEachRefOptions.cs +++ b/src/ModularPipelines.Git/Options/GitForEachRefOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Git.Options; public record GitForEachRefOptions : GitOptions { [BooleanCommandSwitch("--stdin")] - public bool? Stdin { get; set; } + public virtual bool? Stdin { get; set; } [CommandEqualsSeparatorSwitch("--count")] public string? Count { get; set; } @@ -23,16 +23,16 @@ public record GitForEachRefOptions : GitOptions public string? Color { get; set; } [BooleanCommandSwitch("--shell")] - public bool? Shell { get; set; } + public virtual bool? Shell { get; set; } [BooleanCommandSwitch("--perl")] - public bool? Perl { get; set; } + public virtual bool? Perl { get; set; } [BooleanCommandSwitch("--python")] - public bool? Python { get; set; } + public virtual bool? Python { get; set; } [BooleanCommandSwitch("--tcl")] - public bool? Tcl { get; set; } + public virtual bool? Tcl { get; set; } [CommandEqualsSeparatorSwitch("--points-at")] public string? PointsAt { get; set; } @@ -50,8 +50,8 @@ public record GitForEachRefOptions : GitOptions public string? NoContains { get; set; } [BooleanCommandSwitch("--ignore-case")] - public bool? IgnoreCase { get; set; } + public virtual bool? IgnoreCase { get; set; } [BooleanCommandSwitch("--omit-empty")] - public bool? OmitEmpty { get; set; } + public virtual bool? OmitEmpty { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Git/Options/GitFormatPatchOptions.cs b/src/ModularPipelines.Git/Options/GitFormatPatchOptions.cs index dc7ca6dd66..7d9adda520 100644 --- a/src/ModularPipelines.Git/Options/GitFormatPatchOptions.cs +++ b/src/ModularPipelines.Git/Options/GitFormatPatchOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Git.Options; public record GitFormatPatchOptions : GitOptions { [BooleanCommandSwitch("--no-stat")] - public bool? NoStat { get; set; } + public virtual bool? NoStat { get; set; } [CommandEqualsSeparatorSwitch("--unified")] public string? Unified { get; set; } @@ -26,64 +26,64 @@ public record GitFormatPatchOptions : GitOptions public string? OutputIndicatorContext { get; set; } [BooleanCommandSwitch("--indent-heuristic")] - public bool? IndentHeuristic { get; set; } + public virtual bool? IndentHeuristic { get; set; } [BooleanCommandSwitch("--no-indent-heuristic")] - public bool? NoIndentHeuristic { get; set; } + public virtual bool? NoIndentHeuristic { get; set; } [BooleanCommandSwitch("--minimal")] - public bool? Minimal { get; set; } + public virtual bool? Minimal { get; set; } [BooleanCommandSwitch("--patience")] - public bool? Patience { get; set; } + public virtual bool? Patience { get; set; } [BooleanCommandSwitch("--histogram")] - public bool? Histogram { get; set; } + public virtual bool? Histogram { get; set; } [CommandEqualsSeparatorSwitch("--anchored")] public string? Anchored { get; set; } [BooleanCommandSwitch("--diff-algorithm")] - public bool? DiffAlgorithm { get; set; } + public virtual bool? DiffAlgorithm { get; set; } [CommandEqualsSeparatorSwitch("--stat")] public string? Stat { get; set; } [BooleanCommandSwitch("--compact-summary")] - public bool? CompactSummary { get; set; } + public virtual bool? CompactSummary { get; set; } [BooleanCommandSwitch("--numstat")] - public bool? Numstat { get; set; } + public virtual bool? Numstat { get; set; } [BooleanCommandSwitch("--shortstat")] - public bool? Shortstat { get; set; } + public virtual bool? Shortstat { get; set; } [CommandEqualsSeparatorSwitch("--dirstat")] public string? Dirstat { get; set; } [BooleanCommandSwitch("--cumulative")] - public bool? Cumulative { get; set; } + public virtual bool? Cumulative { get; set; } [CommandEqualsSeparatorSwitch("--dirstat-by-file")] public string? DirstatByFile { get; set; } [BooleanCommandSwitch("--summary")] - public bool? Summary { get; set; } + public virtual bool? Summary { get; set; } [BooleanCommandSwitch("--no-renames")] - public bool? NoRenames { get; set; } + public virtual bool? NoRenames { get; set; } [BooleanCommandSwitch("--no-rename-empty")] - public bool? NoRenameEmpty { get; set; } + public virtual bool? NoRenameEmpty { get; set; } [BooleanCommandSwitch("--rename-empty")] - public bool? RenameEmpty { get; set; } + public virtual bool? RenameEmpty { get; set; } [BooleanCommandSwitch("--full-index")] - public bool? FullIndex { get; set; } + public virtual bool? FullIndex { get; set; } [BooleanCommandSwitch("--binary")] - public bool? Binary { get; set; } + public virtual bool? Binary { get; set; } [CommandEqualsSeparatorSwitch("--abbrev")] public string? Abbrev { get; set; } @@ -98,10 +98,10 @@ public record GitFormatPatchOptions : GitOptions public string? FindCopies { get; set; } [BooleanCommandSwitch("--find-copies-harder")] - public bool? FindCopiesHarder { get; set; } + public virtual bool? FindCopiesHarder { get; set; } [BooleanCommandSwitch("--irreversible-delete")] - public bool? IrreversibleDelete { get; set; } + public virtual bool? IrreversibleDelete { get; set; } [CommandEqualsSeparatorSwitch("--skip-to")] public string? SkipTo { get; set; } @@ -113,25 +113,25 @@ public record GitFormatPatchOptions : GitOptions public string? Relative { get; set; } [BooleanCommandSwitch("--no-relative")] - public bool? NoRelative { get; set; } + public virtual bool? NoRelative { get; set; } [BooleanCommandSwitch("--text")] - public bool? Text { get; set; } + public virtual bool? Text { get; set; } [BooleanCommandSwitch("--ignore-cr-at-eol")] - public bool? IgnoreCrAtEol { get; set; } + public virtual bool? IgnoreCrAtEol { get; set; } [BooleanCommandSwitch("--ignore-space-at-eol")] - public bool? IgnoreSpaceAtEol { get; set; } + public virtual bool? IgnoreSpaceAtEol { get; set; } [BooleanCommandSwitch("--ignore-space-change")] - public bool? IgnoreSpaceChange { get; set; } + public virtual bool? IgnoreSpaceChange { get; set; } [BooleanCommandSwitch("--ignore-all-space")] - public bool? IgnoreAllSpace { get; set; } + public virtual bool? IgnoreAllSpace { get; set; } [BooleanCommandSwitch("--ignore-blank-lines")] - public bool? IgnoreBlankLines { get; set; } + public virtual bool? IgnoreBlankLines { get; set; } [CommandEqualsSeparatorSwitch("--ignore-matching-lines")] public string? IgnoreMatchingLines { get; set; } @@ -140,19 +140,19 @@ public record GitFormatPatchOptions : GitOptions public string? InterHunkContext { get; set; } [BooleanCommandSwitch("--function-context")] - public bool? FunctionContext { get; set; } + public virtual bool? FunctionContext { get; set; } [BooleanCommandSwitch("--ext-diff")] - public bool? ExtDiff { get; set; } + public virtual bool? ExtDiff { get; set; } [BooleanCommandSwitch("--no-ext-diff")] - public bool? NoExtDiff { get; set; } + public virtual bool? NoExtDiff { get; set; } [BooleanCommandSwitch("--textconv")] - public bool? Textconv { get; set; } + public virtual bool? Textconv { get; set; } [BooleanCommandSwitch("--no-textconv")] - public bool? NoTextconv { get; set; } + public virtual bool? NoTextconv { get; set; } [CommandEqualsSeparatorSwitch("--ignore-submodules")] public string? IgnoreSubmodules { get; set; } @@ -164,46 +164,46 @@ public record GitFormatPatchOptions : GitOptions public string? DstPrefix { get; set; } [BooleanCommandSwitch("--no-prefix")] - public bool? NoPrefix { get; set; } + public virtual bool? NoPrefix { get; set; } [BooleanCommandSwitch("--default-prefix")] - public bool? DefaultPrefix { get; set; } + public virtual bool? DefaultPrefix { get; set; } [CommandEqualsSeparatorSwitch("--line-prefix")] public string? LinePrefix { get; set; } [BooleanCommandSwitch("--ita-invisible-in-index")] - public bool? ItaInvisibleInIndex { get; set; } + public virtual bool? ItaInvisibleInIndex { get; set; } [CommandEqualsSeparatorSwitch("--output-directory")] public string? OutputDirectory { get; set; } [BooleanCommandSwitch("--numbered")] - public bool? Numbered { get; set; } + public virtual bool? Numbered { get; set; } [BooleanCommandSwitch("--no-numbered")] - public bool? NoNumbered { get; set; } + public virtual bool? NoNumbered { get; set; } [CommandEqualsSeparatorSwitch("--start-number")] public string? StartNumber { get; set; } [BooleanCommandSwitch("--numbered-files")] - public bool? NumberedFiles { get; set; } + public virtual bool? NumberedFiles { get; set; } [BooleanCommandSwitch("--keep-subject")] - public bool? KeepSubject { get; set; } + public virtual bool? KeepSubject { get; set; } [BooleanCommandSwitch("--signoff")] - public bool? Signoff { get; set; } + public virtual bool? Signoff { get; set; } [BooleanCommandSwitch("--stdout")] - public bool? Stdout { get; set; } + public virtual bool? Stdout { get; set; } [CommandEqualsSeparatorSwitch("--attach")] public string? Attach { get; set; } [BooleanCommandSwitch("--no-attach")] - public bool? NoAttach { get; set; } + public virtual bool? NoAttach { get; set; } [CommandEqualsSeparatorSwitch("--inline")] public string? Inline { get; set; } @@ -212,16 +212,16 @@ public record GitFormatPatchOptions : GitOptions public string? Thread { get; set; } [BooleanCommandSwitch("--no-thread")] - public bool? NoThread { get; set; } + public virtual bool? NoThread { get; set; } [CommandEqualsSeparatorSwitch("--in-reply-to")] public string? InReplyTo { get; set; } [BooleanCommandSwitch("--ignore-if-in-upstream")] - public bool? IgnoreIfInUpstream { get; set; } + public virtual bool? IgnoreIfInUpstream { get; set; } [BooleanCommandSwitch("--always")] - public bool? Always { get; set; } + public virtual bool? Always { get; set; } [CommandEqualsSeparatorSwitch("--cover-from-description")] public string? CoverFromDescription { get; set; } @@ -233,7 +233,7 @@ public record GitFormatPatchOptions : GitOptions public string? FilenameMaxLength { get; set; } [BooleanCommandSwitch("--rfc")] - public bool? Rfc { get; set; } + public virtual bool? Rfc { get; set; } [CommandEqualsSeparatorSwitch("--reroll-count")] public string? RerollCount { get; set; } @@ -245,28 +245,28 @@ public record GitFormatPatchOptions : GitOptions public string? Cc { get; set; } [BooleanCommandSwitch("--from")] - public bool? From { get; set; } + public virtual bool? From { get; set; } [BooleanCommandSwitch("--no-force-in-body-from")] - public bool? NoForceInBodyFrom { get; set; } + public virtual bool? NoForceInBodyFrom { get; set; } [BooleanCommandSwitch("--force-in-body-from")] - public bool? ForceInBodyFrom { get; set; } + public virtual bool? ForceInBodyFrom { get; set; } [CommandEqualsSeparatorSwitch("--add-header")] public string? AddHeader { get; set; } [BooleanCommandSwitch("--no-cover-letter")] - public bool? NoCoverLetter { get; set; } + public virtual bool? NoCoverLetter { get; set; } [BooleanCommandSwitch("--cover-letter")] - public bool? CoverLetter { get; set; } + public virtual bool? CoverLetter { get; set; } [BooleanCommandSwitch("--encode-email-headers")] - public bool? EncodeEmailHeaders { get; set; } + public virtual bool? EncodeEmailHeaders { get; set; } [BooleanCommandSwitch("--no-encode-email-headers")] - public bool? NoEncodeEmailHeaders { get; set; } + public virtual bool? NoEncodeEmailHeaders { get; set; } [CommandEqualsSeparatorSwitch("--interdiff")] public string? Interdiff { get; set; } @@ -281,7 +281,7 @@ public record GitFormatPatchOptions : GitOptions public string? Notes { get; set; } [BooleanCommandSwitch("--no-notes")] - public bool? NoNotes { get; set; } + public virtual bool? NoNotes { get; set; } [CommandEqualsSeparatorSwitch("--no-signature")] public string? NoSignature { get; set; } @@ -296,13 +296,13 @@ public record GitFormatPatchOptions : GitOptions public string? Suffix { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } [BooleanCommandSwitch("--no-binary")] - public bool? NoBinary { get; set; } + public virtual bool? NoBinary { get; set; } [BooleanCommandSwitch("--zero-commit")] - public bool? ZeroCommit { get; set; } + public virtual bool? ZeroCommit { get; set; } [CommandEqualsSeparatorSwitch("--no-base")] public string? NoBase { get; set; } @@ -311,8 +311,8 @@ public record GitFormatPatchOptions : GitOptions public string? Base { get; set; } [BooleanCommandSwitch("--root")] - public bool? Root { get; set; } + public virtual bool? Root { get; set; } [BooleanCommandSwitch("--progress")] - public bool? Progress { get; set; } + public virtual bool? Progress { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Git/Options/GitFsckOptions.cs b/src/ModularPipelines.Git/Options/GitFsckOptions.cs index 4dc95f32d6..06f52cfc91 100644 --- a/src/ModularPipelines.Git/Options/GitFsckOptions.cs +++ b/src/ModularPipelines.Git/Options/GitFsckOptions.cs @@ -8,47 +8,47 @@ namespace ModularPipelines.Git.Options; public record GitFsckOptions : GitOptions { [BooleanCommandSwitch("--unreachable")] - public bool? Unreachable { get; set; } + public virtual bool? Unreachable { get; set; } [BooleanCommandSwitch("--no-dangling")] - public bool? NoDangling { get; set; } + public virtual bool? NoDangling { get; set; } [BooleanCommandSwitch("--dangling")] - public bool? Dangling { get; set; } + public virtual bool? Dangling { get; set; } [BooleanCommandSwitch("--root")] - public bool? Root { get; set; } + public virtual bool? Root { get; set; } [BooleanCommandSwitch("--tags")] - public bool? Tags { get; set; } + public virtual bool? Tags { get; set; } [BooleanCommandSwitch("--cache")] - public bool? Cache { get; set; } + public virtual bool? Cache { get; set; } [BooleanCommandSwitch("--no-reflogs")] - public bool? NoReflogs { get; set; } + public virtual bool? NoReflogs { get; set; } [BooleanCommandSwitch("--full")] - public bool? Full { get; set; } + public virtual bool? Full { get; set; } [BooleanCommandSwitch("--connectivity-only")] - public bool? ConnectivityOnly { get; set; } + public virtual bool? ConnectivityOnly { get; set; } [BooleanCommandSwitch("--strict")] - public bool? Strict { get; set; } + public virtual bool? Strict { get; set; } [BooleanCommandSwitch("--verbose")] - public bool? Verbose { get; set; } + public virtual bool? Verbose { get; set; } [BooleanCommandSwitch("--lost-found")] - public bool? LostFound { get; set; } + public virtual bool? LostFound { get; set; } [BooleanCommandSwitch("--name-objects")] - public bool? NameObjects { get; set; } + public virtual bool? NameObjects { get; set; } [BooleanCommandSwitch("--no-progress")] - public bool? NoProgress { get; set; } + public virtual bool? NoProgress { get; set; } [BooleanCommandSwitch("--progress")] - public bool? Progress { get; set; } + public virtual bool? Progress { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Git/Options/GitGcOptions.cs b/src/ModularPipelines.Git/Options/GitGcOptions.cs index 198ec55833..fb22a8a4a7 100644 --- a/src/ModularPipelines.Git/Options/GitGcOptions.cs +++ b/src/ModularPipelines.Git/Options/GitGcOptions.cs @@ -8,29 +8,29 @@ namespace ModularPipelines.Git.Options; public record GitGcOptions : GitOptions { [BooleanCommandSwitch("--aggressive")] - public bool? Aggressive { get; set; } + public virtual bool? Aggressive { get; set; } [BooleanCommandSwitch("--auto")] - public bool? Auto { get; set; } + public virtual bool? Auto { get; set; } [BooleanCommandSwitch("--no-cruft")] - public bool? NoCruft { get; set; } + public virtual bool? NoCruft { get; set; } [BooleanCommandSwitch("--cruft")] - public bool? Cruft { get; set; } + public virtual bool? Cruft { get; set; } [CommandEqualsSeparatorSwitch("--prune")] public string? Prune { get; set; } [BooleanCommandSwitch("--no-prune")] - public bool? NoPrune { get; set; } + public virtual bool? NoPrune { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [BooleanCommandSwitch("--keep-largest-pack")] - public bool? KeepLargestPack { get; set; } + public virtual bool? KeepLargestPack { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Git/Options/GitGrepOptions.cs b/src/ModularPipelines.Git/Options/GitGrepOptions.cs index 422ec15be8..4b89159bd9 100644 --- a/src/ModularPipelines.Git/Options/GitGrepOptions.cs +++ b/src/ModularPipelines.Git/Options/GitGrepOptions.cs @@ -8,109 +8,109 @@ namespace ModularPipelines.Git.Options; public record GitGrepOptions : GitOptions { [BooleanCommandSwitch("--cached")] - public bool? Cached { get; set; } + public virtual bool? Cached { get; set; } [BooleanCommandSwitch("--no-index")] - public bool? NoIndex { get; set; } + public virtual bool? NoIndex { get; set; } [BooleanCommandSwitch("--untracked")] - public bool? Untracked { get; set; } + public virtual bool? Untracked { get; set; } [BooleanCommandSwitch("--no-exclude-standard")] - public bool? NoExcludeStandard { get; set; } + public virtual bool? NoExcludeStandard { get; set; } [BooleanCommandSwitch("--exclude-standard")] - public bool? ExcludeStandard { get; set; } + public virtual bool? ExcludeStandard { get; set; } [BooleanCommandSwitch("--recurse-submodules")] - public bool? RecurseSubmodules { get; set; } + public virtual bool? RecurseSubmodules { get; set; } [BooleanCommandSwitch("--text")] - public bool? Text { get; set; } + public virtual bool? Text { get; set; } [BooleanCommandSwitch("--textconv")] - public bool? Textconv { get; set; } + public virtual bool? Textconv { get; set; } [BooleanCommandSwitch("--no-textconv")] - public bool? NoTextconv { get; set; } + public virtual bool? NoTextconv { get; set; } [BooleanCommandSwitch("--ignore-case")] - public bool? IgnoreCase { get; set; } + public virtual bool? IgnoreCase { get; set; } [CommandEqualsSeparatorSwitch("--max-depth")] public string? MaxDepth { get; set; } [BooleanCommandSwitch("--recursive")] - public bool? Recursive { get; set; } + public virtual bool? Recursive { get; set; } [BooleanCommandSwitch("--no-recursive")] - public bool? NoRecursive { get; set; } + public virtual bool? NoRecursive { get; set; } [BooleanCommandSwitch("--word-regexp")] - public bool? WordRegexp { get; set; } + public virtual bool? WordRegexp { get; set; } [BooleanCommandSwitch("--invert-match")] - public bool? InvertMatch { get; set; } + public virtual bool? InvertMatch { get; set; } [BooleanCommandSwitch("--full-name")] - public bool? FullName { get; set; } + public virtual bool? FullName { get; set; } [BooleanCommandSwitch("--extended-regexp")] - public bool? ExtendedRegexp { get; set; } + public virtual bool? ExtendedRegexp { get; set; } [BooleanCommandSwitch("--basic-regexp")] - public bool? BasicRegexp { get; set; } + public virtual bool? BasicRegexp { get; set; } [BooleanCommandSwitch("--perl-regexp")] - public bool? PerlRegexp { get; set; } + public virtual bool? PerlRegexp { get; set; } [BooleanCommandSwitch("--fixed-strings")] - public bool? FixedStrings { get; set; } + public virtual bool? FixedStrings { get; set; } [BooleanCommandSwitch("--line-number")] - public bool? LineNumber { get; set; } + public virtual bool? LineNumber { get; set; } [BooleanCommandSwitch("--column")] - public bool? Column { get; set; } + public virtual bool? Column { get; set; } [BooleanCommandSwitch("--files-with-matches")] - public bool? FilesWithMatches { get; set; } + public virtual bool? FilesWithMatches { get; set; } [BooleanCommandSwitch("--name-only")] - public bool? NameOnly { get; set; } + public virtual bool? NameOnly { get; set; } [BooleanCommandSwitch("--files-without-match")] - public bool? FilesWithoutMatch { get; set; } + public virtual bool? FilesWithoutMatch { get; set; } [CommandEqualsSeparatorSwitch("--open-files-in-pager")] public string? OpenFilesInPager { get; set; } [BooleanCommandSwitch("--null")] - public bool? Null { get; set; } + public virtual bool? Null { get; set; } [BooleanCommandSwitch("--only-matching")] - public bool? OnlyMatching { get; set; } + public virtual bool? OnlyMatching { get; set; } [BooleanCommandSwitch("--c")] - public bool? C { get; set; } + public virtual bool? C { get; set; } [BooleanCommandSwitch("--count")] - public bool? Count { get; set; } + public virtual bool? Count { get; set; } [CommandEqualsSeparatorSwitch("--color")] public string? Color { get; set; } [BooleanCommandSwitch("--no-color")] - public bool? NoColor { get; set; } + public virtual bool? NoColor { get; set; } [BooleanCommandSwitch("--break")] - public bool? Break { get; set; } + public virtual bool? Break { get; set; } [BooleanCommandSwitch("--heading")] - public bool? Heading { get; set; } + public virtual bool? Heading { get; set; } [BooleanCommandSwitch("--show-function")] - public bool? ShowFunction { get; set; } + public virtual bool? ShowFunction { get; set; } [CommandEqualsSeparatorSwitch("--context")] public string? Context { get; set; } @@ -122,7 +122,7 @@ public record GitGrepOptions : GitOptions public string? BeforeContext { get; set; } [BooleanCommandSwitch("--function-context")] - public bool? FunctionContext { get; set; } + public virtual bool? FunctionContext { get; set; } [CommandEqualsSeparatorSwitch("--max-count")] public string? MaxCount { get; set; } @@ -131,17 +131,17 @@ public record GitGrepOptions : GitOptions public string? Threads { get; set; } [BooleanCommandSwitch("--and")] - public bool? And { get; set; } + public virtual bool? And { get; set; } [BooleanCommandSwitch("--or")] - public bool? Or { get; set; } + public virtual bool? Or { get; set; } [BooleanCommandSwitch("--not")] - public bool? Not { get; set; } + public virtual bool? Not { get; set; } [BooleanCommandSwitch("--all-match")] - public bool? AllMatch { get; set; } + public virtual bool? AllMatch { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Git/Options/GitHashObjectOptions.cs b/src/ModularPipelines.Git/Options/GitHashObjectOptions.cs index 497809b0fe..a609301094 100644 --- a/src/ModularPipelines.Git/Options/GitHashObjectOptions.cs +++ b/src/ModularPipelines.Git/Options/GitHashObjectOptions.cs @@ -8,17 +8,17 @@ namespace ModularPipelines.Git.Options; public record GitHashObjectOptions : GitOptions { [BooleanCommandSwitch("--stdin")] - public bool? Stdin { get; set; } + public virtual bool? Stdin { get; set; } [BooleanCommandSwitch("--stdin-paths")] - public bool? StdinPaths { get; set; } + public virtual bool? StdinPaths { get; set; } [BooleanCommandSwitch("--path")] - public bool? Path { get; set; } + public virtual bool? Path { get; set; } [BooleanCommandSwitch("--no-filters")] - public bool? NoFilters { get; set; } + public virtual bool? NoFilters { get; set; } [BooleanCommandSwitch("--literally")] - public bool? Literally { get; set; } + public virtual bool? Literally { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Git/Options/GitHelpOptions.cs b/src/ModularPipelines.Git/Options/GitHelpOptions.cs index 15f04f4cbc..d947845a1f 100644 --- a/src/ModularPipelines.Git/Options/GitHelpOptions.cs +++ b/src/ModularPipelines.Git/Options/GitHelpOptions.cs @@ -8,38 +8,38 @@ namespace ModularPipelines.Git.Options; public record GitHelpOptions : GitOptions { [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } [BooleanCommandSwitch("--no-external-commands")] - public bool? NoExternalCommands { get; set; } + public virtual bool? NoExternalCommands { get; set; } [BooleanCommandSwitch("--no-aliases")] - public bool? NoAliases { get; set; } + public virtual bool? NoAliases { get; set; } [BooleanCommandSwitch("--verbose")] - public bool? Verbose { get; set; } + public virtual bool? Verbose { get; set; } [BooleanCommandSwitch("--c")] - public bool? C { get; set; } + public virtual bool? C { get; set; } [BooleanCommandSwitch("--config")] - public bool? Config { get; set; } + public virtual bool? Config { get; set; } [BooleanCommandSwitch("--guides")] - public bool? Guides { get; set; } + public virtual bool? Guides { get; set; } [BooleanCommandSwitch("--user-interfaces")] - public bool? UserInterfaces { get; set; } + public virtual bool? UserInterfaces { get; set; } [BooleanCommandSwitch("--developer-interfaces")] - public bool? DeveloperInterfaces { get; set; } + public virtual bool? DeveloperInterfaces { get; set; } [BooleanCommandSwitch("--info")] - public bool? Info { get; set; } + public virtual bool? Info { get; set; } [BooleanCommandSwitch("--man")] - public bool? Man { get; set; } + public virtual bool? Man { get; set; } [BooleanCommandSwitch("--web")] - public bool? Web { get; set; } + public virtual bool? Web { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Git/Options/GitInitOptions.cs b/src/ModularPipelines.Git/Options/GitInitOptions.cs index f8a76a0f38..ba40e83746 100644 --- a/src/ModularPipelines.Git/Options/GitInitOptions.cs +++ b/src/ModularPipelines.Git/Options/GitInitOptions.cs @@ -8,10 +8,10 @@ namespace ModularPipelines.Git.Options; public record GitInitOptions : GitOptions { [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } [BooleanCommandSwitch("--bare")] - public bool? Bare { get; set; } + public virtual bool? Bare { get; set; } [CommandEqualsSeparatorSwitch("--object-format")] public string? ObjectFormat { get; set; } diff --git a/src/ModularPipelines.Git/Options/GitInstawebOptions.cs b/src/ModularPipelines.Git/Options/GitInstawebOptions.cs index ee0fb70c3d..f4494788a8 100644 --- a/src/ModularPipelines.Git/Options/GitInstawebOptions.cs +++ b/src/ModularPipelines.Git/Options/GitInstawebOptions.cs @@ -8,26 +8,26 @@ namespace ModularPipelines.Git.Options; public record GitInstawebOptions : GitOptions { [BooleanCommandSwitch("--local")] - public bool? Local { get; set; } + public virtual bool? Local { get; set; } [BooleanCommandSwitch("--httpd")] - public bool? Httpd { get; set; } + public virtual bool? Httpd { get; set; } [BooleanCommandSwitch("--module-path")] - public bool? ModulePath { get; set; } + public virtual bool? ModulePath { get; set; } [BooleanCommandSwitch("--port")] - public bool? Port { get; set; } + public virtual bool? Port { get; set; } [BooleanCommandSwitch("--browser")] - public bool? Browser { get; set; } + public virtual bool? Browser { get; set; } [BooleanCommandSwitch("--start")] - public bool? Start { get; set; } + public virtual bool? Start { get; set; } [BooleanCommandSwitch("--stop")] - public bool? Stop { get; set; } + public virtual bool? Stop { get; set; } [BooleanCommandSwitch("--restart")] - public bool? Restart { get; set; } + public virtual bool? Restart { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Git/Options/GitLogOptions.cs b/src/ModularPipelines.Git/Options/GitLogOptions.cs index bd9223425a..e8cbb29cb6 100644 --- a/src/ModularPipelines.Git/Options/GitLogOptions.cs +++ b/src/ModularPipelines.Git/Options/GitLogOptions.cs @@ -8,13 +8,13 @@ namespace ModularPipelines.Git.Options; public record GitLogOptions : GitOptions { [BooleanCommandSwitch("--follow")] - public bool? Follow { get; set; } + public virtual bool? Follow { get; set; } [BooleanCommandSwitch("--no-decorate")] - public bool? NoDecorate { get; set; } + public virtual bool? NoDecorate { get; set; } [BooleanCommandSwitch("--decorate")] - public bool? Decorate { get; set; } + public virtual bool? Decorate { get; set; } [CommandEqualsSeparatorSwitch("--decorate-refs")] public string? DecorateRefs { get; set; } @@ -23,28 +23,28 @@ public record GitLogOptions : GitOptions public string? DecorateRefsExclude { get; set; } [BooleanCommandSwitch("--clear-decorations")] - public bool? ClearDecorations { get; set; } + public virtual bool? ClearDecorations { get; set; } [BooleanCommandSwitch("--source")] - public bool? Source { get; set; } + public virtual bool? Source { get; set; } [BooleanCommandSwitch("--no-mailmap")] - public bool? NoMailmap { get; set; } + public virtual bool? NoMailmap { get; set; } [BooleanCommandSwitch("--mailmap")] - public bool? Mailmap { get; set; } + public virtual bool? Mailmap { get; set; } [BooleanCommandSwitch("--no-use-mailmap")] - public bool? NoUseMailmap { get; set; } + public virtual bool? NoUseMailmap { get; set; } [BooleanCommandSwitch("--use-mailmap")] - public bool? UseMailmap { get; set; } + public virtual bool? UseMailmap { get; set; } [BooleanCommandSwitch("--full-diff")] - public bool? FullDiff { get; set; } + public virtual bool? FullDiff { get; set; } [BooleanCommandSwitch("--log-size")] - public bool? LogSize { get; set; } + public virtual bool? LogSize { get; set; } [CommandEqualsSeparatorSwitch("--max-count")] public string? MaxCount { get; set; } @@ -80,34 +80,34 @@ public record GitLogOptions : GitOptions public string? Grep { get; set; } [BooleanCommandSwitch("--all-match")] - public bool? AllMatch { get; set; } + public virtual bool? AllMatch { get; set; } [BooleanCommandSwitch("--invert-grep")] - public bool? InvertGrep { get; set; } + public virtual bool? InvertGrep { get; set; } [BooleanCommandSwitch("--regexp-ignore-case")] - public bool? RegexpIgnoreCase { get; set; } + public virtual bool? RegexpIgnoreCase { get; set; } [BooleanCommandSwitch("--basic-regexp")] - public bool? BasicRegexp { get; set; } + public virtual bool? BasicRegexp { get; set; } [BooleanCommandSwitch("--extended-regexp")] - public bool? ExtendedRegexp { get; set; } + public virtual bool? ExtendedRegexp { get; set; } [BooleanCommandSwitch("--fixed-strings")] - public bool? FixedStrings { get; set; } + public virtual bool? FixedStrings { get; set; } [BooleanCommandSwitch("--perl-regexp")] - public bool? PerlRegexp { get; set; } + public virtual bool? PerlRegexp { get; set; } [BooleanCommandSwitch("--remove-empty")] - public bool? RemoveEmpty { get; set; } + public virtual bool? RemoveEmpty { get; set; } [BooleanCommandSwitch("--merges")] - public bool? Merges { get; set; } + public virtual bool? Merges { get; set; } [BooleanCommandSwitch("--no-merges")] - public bool? NoMerges { get; set; } + public virtual bool? NoMerges { get; set; } [CommandEqualsSeparatorSwitch("--min-parents")] public string? MinParents { get; set; } @@ -116,22 +116,22 @@ public record GitLogOptions : GitOptions public string? MaxParents { get; set; } [BooleanCommandSwitch("--no-min-parents")] - public bool? NoMinParents { get; set; } + public virtual bool? NoMinParents { get; set; } [BooleanCommandSwitch("--no-max-parents")] - public bool? NoMaxParents { get; set; } + public virtual bool? NoMaxParents { get; set; } [BooleanCommandSwitch("--first-parent")] - public bool? FirstParent { get; set; } + public virtual bool? FirstParent { get; set; } [BooleanCommandSwitch("--exclude-first-parent-only")] - public bool? ExcludeFirstParentOnly { get; set; } + public virtual bool? ExcludeFirstParentOnly { get; set; } [BooleanCommandSwitch("--not")] - public bool? Not { get; set; } + public virtual bool? Not { get; set; } [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } [CommandEqualsSeparatorSwitch("--branches")] public string? Branches { get; set; } @@ -149,88 +149,88 @@ public record GitLogOptions : GitOptions public string? Exclude { get; set; } [BooleanCommandSwitch("--exclude-hidden")] - public bool? ExcludeHidden { get; set; } + public virtual bool? ExcludeHidden { get; set; } [BooleanCommandSwitch("--reflog")] - public bool? Reflog { get; set; } + public virtual bool? Reflog { get; set; } [BooleanCommandSwitch("--alternate-refs")] - public bool? AlternateRefs { get; set; } + public virtual bool? AlternateRefs { get; set; } [BooleanCommandSwitch("--single-worktree")] - public bool? SingleWorktree { get; set; } + public virtual bool? SingleWorktree { get; set; } [BooleanCommandSwitch("--ignore-missing")] - public bool? IgnoreMissing { get; set; } + public virtual bool? IgnoreMissing { get; set; } [BooleanCommandSwitch("--bisect")] - public bool? Bisect { get; set; } + public virtual bool? Bisect { get; set; } [BooleanCommandSwitch("--stdin")] - public bool? Stdin { get; set; } + public virtual bool? Stdin { get; set; } [BooleanCommandSwitch("--cherry-mark")] - public bool? CherryMark { get; set; } + public virtual bool? CherryMark { get; set; } [BooleanCommandSwitch("--cherry-pick")] - public bool? CherryPick { get; set; } + public virtual bool? CherryPick { get; set; } [BooleanCommandSwitch("--left-only")] - public bool? LeftOnly { get; set; } + public virtual bool? LeftOnly { get; set; } [BooleanCommandSwitch("--right-only")] - public bool? RightOnly { get; set; } + public virtual bool? RightOnly { get; set; } [BooleanCommandSwitch("--cherry")] - public bool? Cherry { get; set; } + public virtual bool? Cherry { get; set; } [BooleanCommandSwitch("--walk-reflogs")] - public bool? WalkReflogs { get; set; } + public virtual bool? WalkReflogs { get; set; } [BooleanCommandSwitch("--merge")] - public bool? Merge { get; set; } + public virtual bool? Merge { get; set; } [BooleanCommandSwitch("--boundary")] - public bool? Boundary { get; set; } + public virtual bool? Boundary { get; set; } [BooleanCommandSwitch("--simplify-by-decoration")] - public bool? SimplifyByDecoration { get; set; } + public virtual bool? SimplifyByDecoration { get; set; } [BooleanCommandSwitch("--show-pulls")] - public bool? ShowPulls { get; set; } + public virtual bool? ShowPulls { get; set; } [BooleanCommandSwitch("--full-history")] - public bool? FullHistory { get; set; } + public virtual bool? FullHistory { get; set; } [BooleanCommandSwitch("--dense")] - public bool? Dense { get; set; } + public virtual bool? Dense { get; set; } [BooleanCommandSwitch("--sparse")] - public bool? Sparse { get; set; } + public virtual bool? Sparse { get; set; } [BooleanCommandSwitch("--simplify-merges")] - public bool? SimplifyMerges { get; set; } + public virtual bool? SimplifyMerges { get; set; } [CommandEqualsSeparatorSwitch("--ancestry-path")] public string? AncestryPath { get; set; } [BooleanCommandSwitch("--date-order")] - public bool? DateOrder { get; set; } + public virtual bool? DateOrder { get; set; } [BooleanCommandSwitch("--author-date-order")] - public bool? AuthorDateOrder { get; set; } + public virtual bool? AuthorDateOrder { get; set; } [BooleanCommandSwitch("--topo-order")] - public bool? TopoOrder { get; set; } + public virtual bool? TopoOrder { get; set; } [BooleanCommandSwitch("--reverse")] - public bool? Reverse { get; set; } + public virtual bool? Reverse { get; set; } [BooleanCommandSwitch("--no-walk")] - public bool? NoWalk { get; set; } + public virtual bool? NoWalk { get; set; } [BooleanCommandSwitch("--do-walk")] - public bool? DoWalk { get; set; } + public virtual bool? DoWalk { get; set; } [CommandEqualsSeparatorSwitch("--pretty")] public string? Pretty { get; set; } @@ -239,13 +239,13 @@ public record GitLogOptions : GitOptions public string? Format { get; set; } [BooleanCommandSwitch("--abbrev-commit")] - public bool? AbbrevCommit { get; set; } + public virtual bool? AbbrevCommit { get; set; } [BooleanCommandSwitch("--no-abbrev-commit")] - public bool? NoAbbrevCommit { get; set; } + public virtual bool? NoAbbrevCommit { get; set; } [BooleanCommandSwitch("--oneline")] - public bool? Oneline { get; set; } + public virtual bool? Oneline { get; set; } [CommandEqualsSeparatorSwitch("--encoding")] public string? Encoding { get; set; } @@ -254,70 +254,70 @@ public record GitLogOptions : GitOptions public string? ExpandTabs { get; set; } [BooleanCommandSwitch("--no-expand-tabs")] - public bool? NoExpandTabs { get; set; } + public virtual bool? NoExpandTabs { get; set; } [CommandEqualsSeparatorSwitch("--notes")] public string? Notes { get; set; } [BooleanCommandSwitch("--no-notes")] - public bool? NoNotes { get; set; } + public virtual bool? NoNotes { get; set; } [CommandEqualsSeparatorSwitch("--show-notes")] public string? ShowNotes { get; set; } [BooleanCommandSwitch("--no-standard-notes")] - public bool? NoStandardNotes { get; set; } + public virtual bool? NoStandardNotes { get; set; } [BooleanCommandSwitch("--standard-notes")] - public bool? StandardNotes { get; set; } + public virtual bool? StandardNotes { get; set; } [BooleanCommandSwitch("--show-signature")] - public bool? ShowSignature { get; set; } + public virtual bool? ShowSignature { get; set; } [BooleanCommandSwitch("--relative-date")] - public bool? RelativeDate { get; set; } + public virtual bool? RelativeDate { get; set; } [CommandEqualsSeparatorSwitch("--date")] public string? Date { get; set; } [BooleanCommandSwitch("--parents")] - public bool? Parents { get; set; } + public virtual bool? Parents { get; set; } [BooleanCommandSwitch("--children")] - public bool? Children { get; set; } + public virtual bool? Children { get; set; } [BooleanCommandSwitch("--left-right")] - public bool? LeftRight { get; set; } + public virtual bool? LeftRight { get; set; } [BooleanCommandSwitch("--graph")] - public bool? Graph { get; set; } + public virtual bool? Graph { get; set; } [CommandEqualsSeparatorSwitch("--show-linear-break")] public string? ShowLinearBreak { get; set; } [BooleanCommandSwitch("--patch")] - public bool? Patch { get; set; } + public virtual bool? Patch { get; set; } [BooleanCommandSwitch("--no-patch")] - public bool? NoPatch { get; set; } + public virtual bool? NoPatch { get; set; } [BooleanCommandSwitch("--diff-merges")] - public bool? DiffMerges { get; set; } + public virtual bool? DiffMerges { get; set; } [BooleanCommandSwitch("--no-diff-merges")] - public bool? NoDiffMerges { get; set; } + public virtual bool? NoDiffMerges { get; set; } [BooleanCommandSwitch("--remerge-diff")] - public bool? RemergeDiff { get; set; } + public virtual bool? RemergeDiff { get; set; } [BooleanCommandSwitch("--c")] - public bool? C { get; set; } + public virtual bool? C { get; set; } [BooleanCommandSwitch("--cc")] - public bool? Cc { get; set; } + public virtual bool? Cc { get; set; } [BooleanCommandSwitch("--combined-all-paths")] - public bool? CombinedAllPaths { get; set; } + public virtual bool? CombinedAllPaths { get; set; } [CommandEqualsSeparatorSwitch("--unified")] public string? Unified { get; set; } @@ -335,64 +335,64 @@ public record GitLogOptions : GitOptions public string? OutputIndicatorContext { get; set; } [BooleanCommandSwitch("--raw")] - public bool? Raw { get; set; } + public virtual bool? Raw { get; set; } [BooleanCommandSwitch("--patch-with-raw")] - public bool? PatchWithRaw { get; set; } + public virtual bool? PatchWithRaw { get; set; } [BooleanCommandSwitch("--indent-heuristic")] - public bool? IndentHeuristic { get; set; } + public virtual bool? IndentHeuristic { get; set; } [BooleanCommandSwitch("--no-indent-heuristic")] - public bool? NoIndentHeuristic { get; set; } + public virtual bool? NoIndentHeuristic { get; set; } [BooleanCommandSwitch("--minimal")] - public bool? Minimal { get; set; } + public virtual bool? Minimal { get; set; } [BooleanCommandSwitch("--patience")] - public bool? Patience { get; set; } + public virtual bool? Patience { get; set; } [BooleanCommandSwitch("--histogram")] - public bool? Histogram { get; set; } + public virtual bool? Histogram { get; set; } [CommandEqualsSeparatorSwitch("--anchored")] public string? Anchored { get; set; } [BooleanCommandSwitch("--diff-algorithm")] - public bool? DiffAlgorithm { get; set; } + public virtual bool? DiffAlgorithm { get; set; } [CommandEqualsSeparatorSwitch("--stat")] public string? Stat { get; set; } [BooleanCommandSwitch("--compact-summary")] - public bool? CompactSummary { get; set; } + public virtual bool? CompactSummary { get; set; } [BooleanCommandSwitch("--numstat")] - public bool? Numstat { get; set; } + public virtual bool? Numstat { get; set; } [BooleanCommandSwitch("--shortstat")] - public bool? Shortstat { get; set; } + public virtual bool? Shortstat { get; set; } [CommandEqualsSeparatorSwitch("--dirstat")] public string? Dirstat { get; set; } [BooleanCommandSwitch("--cumulative")] - public bool? Cumulative { get; set; } + public virtual bool? Cumulative { get; set; } [CommandEqualsSeparatorSwitch("--dirstat-by-file")] public string? DirstatByFile { get; set; } [BooleanCommandSwitch("--summary")] - public bool? Summary { get; set; } + public virtual bool? Summary { get; set; } [BooleanCommandSwitch("--patch-with-stat")] - public bool? PatchWithStat { get; set; } + public virtual bool? PatchWithStat { get; set; } [BooleanCommandSwitch("--name-only")] - public bool? NameOnly { get; set; } + public virtual bool? NameOnly { get; set; } [BooleanCommandSwitch("--name-status")] - public bool? NameStatus { get; set; } + public virtual bool? NameStatus { get; set; } [CommandEqualsSeparatorSwitch("--submodule")] public string? Submodule { get; set; } @@ -401,19 +401,19 @@ public record GitLogOptions : GitOptions public string? Color { get; set; } [BooleanCommandSwitch("--no-color")] - public bool? NoColor { get; set; } + public virtual bool? NoColor { get; set; } [CommandEqualsSeparatorSwitch("--color-moved")] public string? ColorMoved { get; set; } [BooleanCommandSwitch("--no-color-moved")] - public bool? NoColorMoved { get; set; } + public virtual bool? NoColorMoved { get; set; } [CommandEqualsSeparatorSwitch("--color-moved-ws")] public string? ColorMovedWs { get; set; } [BooleanCommandSwitch("--no-color-moved-ws")] - public bool? NoColorMovedWs { get; set; } + public virtual bool? NoColorMovedWs { get; set; } [CommandEqualsSeparatorSwitch("--word-diff")] public string? WordDiff { get; set; } @@ -425,25 +425,25 @@ public record GitLogOptions : GitOptions public string? ColorWords { get; set; } [BooleanCommandSwitch("--no-renames")] - public bool? NoRenames { get; set; } + public virtual bool? NoRenames { get; set; } [BooleanCommandSwitch("--no-rename-empty")] - public bool? NoRenameEmpty { get; set; } + public virtual bool? NoRenameEmpty { get; set; } [BooleanCommandSwitch("--rename-empty")] - public bool? RenameEmpty { get; set; } + public virtual bool? RenameEmpty { get; set; } [BooleanCommandSwitch("--check")] - public bool? Check { get; set; } + public virtual bool? Check { get; set; } [CommandEqualsSeparatorSwitch("--ws-error-highlight")] public string? WsErrorHighlight { get; set; } [BooleanCommandSwitch("--full-index")] - public bool? FullIndex { get; set; } + public virtual bool? FullIndex { get; set; } [BooleanCommandSwitch("--binary")] - public bool? Binary { get; set; } + public virtual bool? Binary { get; set; } [CommandEqualsSeparatorSwitch("--abbrev")] public string? Abbrev { get; set; } @@ -458,22 +458,22 @@ public record GitLogOptions : GitOptions public string? FindCopies { get; set; } [BooleanCommandSwitch("--find-copies-harder")] - public bool? FindCopiesHarder { get; set; } + public virtual bool? FindCopiesHarder { get; set; } [BooleanCommandSwitch("--irreversible-delete")] - public bool? IrreversibleDelete { get; set; } + public virtual bool? IrreversibleDelete { get; set; } [BooleanCommandSwitch("--diff-filter")] - public bool? DiffFilter { get; set; } + public virtual bool? DiffFilter { get; set; } [CommandEqualsSeparatorSwitch("--find-object")] public string? FindObject { get; set; } [BooleanCommandSwitch("--pickaxe-all")] - public bool? PickaxeAll { get; set; } + public virtual bool? PickaxeAll { get; set; } [BooleanCommandSwitch("--pickaxe-regex")] - public bool? PickaxeRegex { get; set; } + public virtual bool? PickaxeRegex { get; set; } [CommandEqualsSeparatorSwitch("--skip-to")] public string? SkipTo { get; set; } @@ -485,25 +485,25 @@ public record GitLogOptions : GitOptions public string? Relative { get; set; } [BooleanCommandSwitch("--no-relative")] - public bool? NoRelative { get; set; } + public virtual bool? NoRelative { get; set; } [BooleanCommandSwitch("--text")] - public bool? Text { get; set; } + public virtual bool? Text { get; set; } [BooleanCommandSwitch("--ignore-cr-at-eol")] - public bool? IgnoreCrAtEol { get; set; } + public virtual bool? IgnoreCrAtEol { get; set; } [BooleanCommandSwitch("--ignore-space-at-eol")] - public bool? IgnoreSpaceAtEol { get; set; } + public virtual bool? IgnoreSpaceAtEol { get; set; } [BooleanCommandSwitch("--ignore-space-change")] - public bool? IgnoreSpaceChange { get; set; } + public virtual bool? IgnoreSpaceChange { get; set; } [BooleanCommandSwitch("--ignore-all-space")] - public bool? IgnoreAllSpace { get; set; } + public virtual bool? IgnoreAllSpace { get; set; } [BooleanCommandSwitch("--ignore-blank-lines")] - public bool? IgnoreBlankLines { get; set; } + public virtual bool? IgnoreBlankLines { get; set; } [CommandEqualsSeparatorSwitch("--ignore-matching-lines")] public string? IgnoreMatchingLines { get; set; } @@ -512,19 +512,19 @@ public record GitLogOptions : GitOptions public string? InterHunkContext { get; set; } [BooleanCommandSwitch("--function-context")] - public bool? FunctionContext { get; set; } + public virtual bool? FunctionContext { get; set; } [BooleanCommandSwitch("--ext-diff")] - public bool? ExtDiff { get; set; } + public virtual bool? ExtDiff { get; set; } [BooleanCommandSwitch("--no-ext-diff")] - public bool? NoExtDiff { get; set; } + public virtual bool? NoExtDiff { get; set; } [BooleanCommandSwitch("--textconv")] - public bool? Textconv { get; set; } + public virtual bool? Textconv { get; set; } [BooleanCommandSwitch("--no-textconv")] - public bool? NoTextconv { get; set; } + public virtual bool? NoTextconv { get; set; } [CommandEqualsSeparatorSwitch("--ignore-submodules")] public string? IgnoreSubmodules { get; set; } @@ -536,14 +536,14 @@ public record GitLogOptions : GitOptions public string? DstPrefix { get; set; } [BooleanCommandSwitch("--no-prefix")] - public bool? NoPrefix { get; set; } + public virtual bool? NoPrefix { get; set; } [BooleanCommandSwitch("--default-prefix")] - public bool? DefaultPrefix { get; set; } + public virtual bool? DefaultPrefix { get; set; } [CommandEqualsSeparatorSwitch("--line-prefix")] public string? LinePrefix { get; set; } [BooleanCommandSwitch("--ita-invisible-in-index")] - public bool? ItaInvisibleInIndex { get; set; } + public virtual bool? ItaInvisibleInIndex { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Git/Options/GitLsFilesOptions.cs b/src/ModularPipelines.Git/Options/GitLsFilesOptions.cs index 872851318c..d153f875f1 100644 --- a/src/ModularPipelines.Git/Options/GitLsFilesOptions.cs +++ b/src/ModularPipelines.Git/Options/GitLsFilesOptions.cs @@ -8,43 +8,43 @@ namespace ModularPipelines.Git.Options; public record GitLsFilesOptions : GitOptions { [BooleanCommandSwitch("--c")] - public bool? C { get; set; } + public virtual bool? C { get; set; } [BooleanCommandSwitch("--cached")] - public bool? Cached { get; set; } + public virtual bool? Cached { get; set; } [BooleanCommandSwitch("--deleted")] - public bool? Deleted { get; set; } + public virtual bool? Deleted { get; set; } [BooleanCommandSwitch("--modified")] - public bool? Modified { get; set; } + public virtual bool? Modified { get; set; } [BooleanCommandSwitch("--others")] - public bool? Others { get; set; } + public virtual bool? Others { get; set; } [BooleanCommandSwitch("--ignored")] - public bool? Ignored { get; set; } + public virtual bool? Ignored { get; set; } [BooleanCommandSwitch("--stage")] - public bool? Stage { get; set; } + public virtual bool? Stage { get; set; } [BooleanCommandSwitch("--directory")] - public bool? Directory { get; set; } + public virtual bool? Directory { get; set; } [BooleanCommandSwitch("--no-empty-directory")] - public bool? NoEmptyDirectory { get; set; } + public virtual bool? NoEmptyDirectory { get; set; } [BooleanCommandSwitch("--unmerged")] - public bool? Unmerged { get; set; } + public virtual bool? Unmerged { get; set; } [BooleanCommandSwitch("--killed")] - public bool? Killed { get; set; } + public virtual bool? Killed { get; set; } [BooleanCommandSwitch("--resolve-undo")] - public bool? ResolveUndo { get; set; } + public virtual bool? ResolveUndo { get; set; } [BooleanCommandSwitch("--deduplicate")] - public bool? Deduplicate { get; set; } + public virtual bool? Deduplicate { get; set; } [CommandEqualsSeparatorSwitch("--exclude")] public string? Exclude { get; set; } @@ -56,31 +56,31 @@ public record GitLsFilesOptions : GitOptions public string? ExcludePerDirectory { get; set; } [BooleanCommandSwitch("--exclude-standard")] - public bool? ExcludeStandard { get; set; } + public virtual bool? ExcludeStandard { get; set; } [BooleanCommandSwitch("--error-unmatch")] - public bool? ErrorUnmatch { get; set; } + public virtual bool? ErrorUnmatch { get; set; } [CommandEqualsSeparatorSwitch("--with-tree")] public string? WithTree { get; set; } [BooleanCommandSwitch("--full-name")] - public bool? FullName { get; set; } + public virtual bool? FullName { get; set; } [BooleanCommandSwitch("--recurse-submodules")] - public bool? RecurseSubmodules { get; set; } + public virtual bool? RecurseSubmodules { get; set; } [CommandEqualsSeparatorSwitch("--abbrev")] public string? Abbrev { get; set; } [BooleanCommandSwitch("--debug")] - public bool? Debug { get; set; } + public virtual bool? Debug { get; set; } [BooleanCommandSwitch("--eol")] - public bool? Eol { get; set; } + public virtual bool? Eol { get; set; } [BooleanCommandSwitch("--sparse")] - public bool? Sparse { get; set; } + public virtual bool? Sparse { get; set; } [CommandEqualsSeparatorSwitch("--format")] public string? Format { get; set; } diff --git a/src/ModularPipelines.Git/Options/GitLsTreeOptions.cs b/src/ModularPipelines.Git/Options/GitLsTreeOptions.cs index 9d3a171990..1dabee57ed 100644 --- a/src/ModularPipelines.Git/Options/GitLsTreeOptions.cs +++ b/src/ModularPipelines.Git/Options/GitLsTreeOptions.cs @@ -8,25 +8,25 @@ namespace ModularPipelines.Git.Options; public record GitLsTreeOptions : GitOptions { [BooleanCommandSwitch("--long")] - public bool? Long { get; set; } + public virtual bool? Long { get; set; } [BooleanCommandSwitch("--name-only")] - public bool? NameOnly { get; set; } + public virtual bool? NameOnly { get; set; } [BooleanCommandSwitch("--name-status")] - public bool? NameStatus { get; set; } + public virtual bool? NameStatus { get; set; } [BooleanCommandSwitch("--object-only")] - public bool? ObjectOnly { get; set; } + public virtual bool? ObjectOnly { get; set; } [CommandEqualsSeparatorSwitch("--abbrev")] public string? Abbrev { get; set; } [BooleanCommandSwitch("--full-name")] - public bool? FullName { get; set; } + public virtual bool? FullName { get; set; } [BooleanCommandSwitch("--full-tree")] - public bool? FullTree { get; set; } + public virtual bool? FullTree { get; set; } [CommandEqualsSeparatorSwitch("--format")] public string? Format { get; set; } diff --git a/src/ModularPipelines.Git/Options/GitMergeBaseOptions.cs b/src/ModularPipelines.Git/Options/GitMergeBaseOptions.cs index 7c6d1cadc7..6fc9dc11a7 100644 --- a/src/ModularPipelines.Git/Options/GitMergeBaseOptions.cs +++ b/src/ModularPipelines.Git/Options/GitMergeBaseOptions.cs @@ -8,17 +8,17 @@ namespace ModularPipelines.Git.Options; public record GitMergeBaseOptions : GitOptions { [BooleanCommandSwitch("--octopus")] - public bool? Octopus { get; set; } + public virtual bool? Octopus { get; set; } [BooleanCommandSwitch("--independent")] - public bool? Independent { get; set; } + public virtual bool? Independent { get; set; } [BooleanCommandSwitch("--is-ancestor")] - public bool? IsAncestor { get; set; } + public virtual bool? IsAncestor { get; set; } [BooleanCommandSwitch("--fork-point")] - public bool? ForkPoint { get; set; } + public virtual bool? ForkPoint { get; set; } [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Git/Options/GitMergeOptions.cs b/src/ModularPipelines.Git/Options/GitMergeOptions.cs index 10b5e62356..8c1a322583 100644 --- a/src/ModularPipelines.Git/Options/GitMergeOptions.cs +++ b/src/ModularPipelines.Git/Options/GitMergeOptions.cs @@ -8,64 +8,64 @@ namespace ModularPipelines.Git.Options; public record GitMergeOptions : GitOptions { [BooleanCommandSwitch("--commit")] - public bool? Commit { get; set; } + public virtual bool? Commit { get; set; } [BooleanCommandSwitch("--no-commit")] - public bool? NoCommit { get; set; } + public virtual bool? NoCommit { get; set; } [BooleanCommandSwitch("--edit")] - public bool? Edit { get; set; } + public virtual bool? Edit { get; set; } [BooleanCommandSwitch("--no-edit")] - public bool? NoEdit { get; set; } + public virtual bool? NoEdit { get; set; } [CommandEqualsSeparatorSwitch("--cleanup")] public string? Cleanup { get; set; } [BooleanCommandSwitch("--ff")] - public bool? Ff { get; set; } + public virtual bool? Ff { get; set; } [BooleanCommandSwitch("--no-ff")] - public bool? NoFf { get; set; } + public virtual bool? NoFf { get; set; } [BooleanCommandSwitch("--ff-only")] - public bool? FfOnly { get; set; } + public virtual bool? FfOnly { get; set; } [CommandEqualsSeparatorSwitch("--gpg-sign")] public string? GpgSign { get; set; } [BooleanCommandSwitch("--no-gpg-sign")] - public bool? NoGpgSign { get; set; } + public virtual bool? NoGpgSign { get; set; } [CommandEqualsSeparatorSwitch("--log")] public string? Log { get; set; } [BooleanCommandSwitch("--no-log")] - public bool? NoLog { get; set; } + public virtual bool? NoLog { get; set; } [BooleanCommandSwitch("--signoff")] - public bool? Signoff { get; set; } + public virtual bool? Signoff { get; set; } [BooleanCommandSwitch("--no-signoff")] - public bool? NoSignoff { get; set; } + public virtual bool? NoSignoff { get; set; } [BooleanCommandSwitch("--stat")] - public bool? Stat { get; set; } + public virtual bool? Stat { get; set; } [BooleanCommandSwitch("--no-stat")] - public bool? NoStat { get; set; } + public virtual bool? NoStat { get; set; } [BooleanCommandSwitch("--squash")] - public bool? Squash { get; set; } + public virtual bool? Squash { get; set; } [BooleanCommandSwitch("--no-squash")] - public bool? NoSquash { get; set; } + public virtual bool? NoSquash { get; set; } [BooleanCommandSwitch("--no-verify")] - public bool? NoVerify { get; set; } + public virtual bool? NoVerify { get; set; } [BooleanCommandSwitch("--verify")] - public bool? Verify { get; set; } + public virtual bool? Verify { get; set; } [CommandEqualsSeparatorSwitch("--strategy")] public string? Strategy { get; set; } @@ -74,37 +74,37 @@ public record GitMergeOptions : GitOptions public string? StrategyOption { get; set; } [BooleanCommandSwitch("--verify-signatures")] - public bool? VerifySignatures { get; set; } + public virtual bool? VerifySignatures { get; set; } [BooleanCommandSwitch("--no-verify-signatures")] - public bool? NoVerifySignatures { get; set; } + public virtual bool? NoVerifySignatures { get; set; } [BooleanCommandSwitch("--summary")] - public bool? Summary { get; set; } + public virtual bool? Summary { get; set; } [BooleanCommandSwitch("--no-summary")] - public bool? NoSummary { get; set; } + public virtual bool? NoSummary { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } [BooleanCommandSwitch("--verbose")] - public bool? Verbose { get; set; } + public virtual bool? Verbose { get; set; } [BooleanCommandSwitch("--progress")] - public bool? Progress { get; set; } + public virtual bool? Progress { get; set; } [BooleanCommandSwitch("--no-progress")] - public bool? NoProgress { get; set; } + public virtual bool? NoProgress { get; set; } [BooleanCommandSwitch("--autostash")] - public bool? Autostash { get; set; } + public virtual bool? Autostash { get; set; } [BooleanCommandSwitch("--no-autostash")] - public bool? NoAutostash { get; set; } + public virtual bool? NoAutostash { get; set; } [BooleanCommandSwitch("--allow-unrelated-histories")] - public bool? AllowUnrelatedHistories { get; set; } + public virtual bool? AllowUnrelatedHistories { get; set; } [CommandEqualsSeparatorSwitch("--into-name")] public string? IntoName { get; set; } @@ -113,23 +113,23 @@ public record GitMergeOptions : GitOptions public string? File { get; set; } [BooleanCommandSwitch("--rerere-autoupdate")] - public bool? RerereAutoupdate { get; set; } + public virtual bool? RerereAutoupdate { get; set; } [BooleanCommandSwitch("--no-rerere-autoupdate")] - public bool? NoRerereAutoupdate { get; set; } + public virtual bool? NoRerereAutoupdate { get; set; } [BooleanCommandSwitch("--overwrite-ignore")] - public bool? OverwriteIgnore { get; set; } + public virtual bool? OverwriteIgnore { get; set; } [BooleanCommandSwitch("--no-overwrite-ignore")] - public bool? NoOverwriteIgnore { get; set; } + public virtual bool? NoOverwriteIgnore { get; set; } [BooleanCommandSwitch("--abort")] - public bool? Abort { get; set; } + public virtual bool? Abort { get; set; } [BooleanCommandSwitch("--quit")] - public bool? Quit { get; set; } + public virtual bool? Quit { get; set; } [BooleanCommandSwitch("--continue")] - public bool? Continue { get; set; } + public virtual bool? Continue { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Git/Options/GitMergetoolOptions.cs b/src/ModularPipelines.Git/Options/GitMergetoolOptions.cs index 1b6c02fa19..c2ed193af5 100644 --- a/src/ModularPipelines.Git/Options/GitMergetoolOptions.cs +++ b/src/ModularPipelines.Git/Options/GitMergetoolOptions.cs @@ -11,17 +11,17 @@ public record GitMergetoolOptions : GitOptions public string? MergeTool { get; set; } [BooleanCommandSwitch("--tool-help")] - public bool? ToolHelp { get; set; } + public virtual bool? ToolHelp { get; set; } [BooleanCommandSwitch("--no-prompt")] - public bool? NoPrompt { get; set; } + public virtual bool? NoPrompt { get; set; } [BooleanCommandSwitch("--prompt")] - public bool? Prompt { get; set; } + public virtual bool? Prompt { get; set; } [BooleanCommandSwitch("--gui")] - public bool? Gui { get; set; } + public virtual bool? Gui { get; set; } [BooleanCommandSwitch("--no-gui")] - public bool? NoGui { get; set; } + public virtual bool? NoGui { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Git/Options/GitMvOptions.cs b/src/ModularPipelines.Git/Options/GitMvOptions.cs index bb2d74f16c..39986cbd67 100644 --- a/src/ModularPipelines.Git/Options/GitMvOptions.cs +++ b/src/ModularPipelines.Git/Options/GitMvOptions.cs @@ -8,11 +8,11 @@ namespace ModularPipelines.Git.Options; public record GitMvOptions : GitOptions { [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [BooleanCommandSwitch("--dry-run")] - public bool? DryRun { get; set; } + public virtual bool? DryRun { get; set; } [BooleanCommandSwitch("--verbose")] - public bool? Verbose { get; set; } + public virtual bool? Verbose { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Git/Options/GitNotesOptions.cs b/src/ModularPipelines.Git/Options/GitNotesOptions.cs index 9c8c96c2c7..84f01c8d6e 100644 --- a/src/ModularPipelines.Git/Options/GitNotesOptions.cs +++ b/src/ModularPipelines.Git/Options/GitNotesOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Git.Options; public record GitNotesOptions : GitOptions { [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [CommandEqualsSeparatorSwitch("--message")] public string? Message { get; set; } @@ -23,32 +23,32 @@ public record GitNotesOptions : GitOptions public string? ReeditMessage { get; set; } [BooleanCommandSwitch("--allow-empty")] - public bool? AllowEmpty { get; set; } + public virtual bool? AllowEmpty { get; set; } [CommandEqualsSeparatorSwitch("--ref")] public string? Ref { get; set; } [BooleanCommandSwitch("--ignore-missing")] - public bool? IgnoreMissing { get; set; } + public virtual bool? IgnoreMissing { get; set; } [BooleanCommandSwitch("--stdin")] - public bool? Stdin { get; set; } + public virtual bool? Stdin { get; set; } [BooleanCommandSwitch("--dry-run")] - public bool? DryRun { get; set; } + public virtual bool? DryRun { get; set; } [CommandEqualsSeparatorSwitch("--strategy")] public string? Strategy { get; set; } [BooleanCommandSwitch("--commit")] - public bool? Commit { get; set; } + public virtual bool? Commit { get; set; } [BooleanCommandSwitch("--abort")] - public bool? Abort { get; set; } + public virtual bool? Abort { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } [BooleanCommandSwitch("--verbose")] - public bool? Verbose { get; set; } + public virtual bool? Verbose { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Git/Options/GitPullOptions.cs b/src/ModularPipelines.Git/Options/GitPullOptions.cs index f39d99fdd7..2d2fdfa850 100644 --- a/src/ModularPipelines.Git/Options/GitPullOptions.cs +++ b/src/ModularPipelines.Git/Options/GitPullOptions.cs @@ -8,76 +8,76 @@ namespace ModularPipelines.Git.Options; public record GitPullOptions : GitOptions { [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } [BooleanCommandSwitch("--verbose")] - public bool? Verbose { get; set; } + public virtual bool? Verbose { get; set; } [BooleanCommandSwitch("--no-recurse-submodules")] - public bool? NoRecurseSubmodules { get; set; } + public virtual bool? NoRecurseSubmodules { get; set; } [BooleanCommandSwitch("--recurse-submodules")] - public bool? RecurseSubmodules { get; set; } + public virtual bool? RecurseSubmodules { get; set; } [BooleanCommandSwitch("--commit")] - public bool? Commit { get; set; } + public virtual bool? Commit { get; set; } [BooleanCommandSwitch("--no-commit")] - public bool? NoCommit { get; set; } + public virtual bool? NoCommit { get; set; } [BooleanCommandSwitch("--edit")] - public bool? Edit { get; set; } + public virtual bool? Edit { get; set; } [BooleanCommandSwitch("--no-edit")] - public bool? NoEdit { get; set; } + public virtual bool? NoEdit { get; set; } [CommandEqualsSeparatorSwitch("--cleanup")] public string? Cleanup { get; set; } [BooleanCommandSwitch("--ff-only")] - public bool? FfOnly { get; set; } + public virtual bool? FfOnly { get; set; } [BooleanCommandSwitch("--ff")] - public bool? Ff { get; set; } + public virtual bool? Ff { get; set; } [BooleanCommandSwitch("--no-ff")] - public bool? NoFf { get; set; } + public virtual bool? NoFf { get; set; } [CommandEqualsSeparatorSwitch("--gpg-sign")] public string? GpgSign { get; set; } [BooleanCommandSwitch("--no-gpg-sign")] - public bool? NoGpgSign { get; set; } + public virtual bool? NoGpgSign { get; set; } [CommandEqualsSeparatorSwitch("--log")] public string? Log { get; set; } [BooleanCommandSwitch("--no-log")] - public bool? NoLog { get; set; } + public virtual bool? NoLog { get; set; } [BooleanCommandSwitch("--signoff")] - public bool? Signoff { get; set; } + public virtual bool? Signoff { get; set; } [BooleanCommandSwitch("--no-signoff")] - public bool? NoSignoff { get; set; } + public virtual bool? NoSignoff { get; set; } [BooleanCommandSwitch("--stat")] - public bool? Stat { get; set; } + public virtual bool? Stat { get; set; } [BooleanCommandSwitch("--no-stat")] - public bool? NoStat { get; set; } + public virtual bool? NoStat { get; set; } [BooleanCommandSwitch("--squash")] - public bool? Squash { get; set; } + public virtual bool? Squash { get; set; } [BooleanCommandSwitch("--no-squash")] - public bool? NoSquash { get; set; } + public virtual bool? NoSquash { get; set; } [BooleanCommandSwitch("--no-verify")] - public bool? NoVerify { get; set; } + public virtual bool? NoVerify { get; set; } [BooleanCommandSwitch("--verify")] - public bool? Verify { get; set; } + public virtual bool? Verify { get; set; } [CommandEqualsSeparatorSwitch("--strategy")] public string? Strategy { get; set; } @@ -86,40 +86,40 @@ public record GitPullOptions : GitOptions public string? StrategyOption { get; set; } [BooleanCommandSwitch("--verify-signatures")] - public bool? VerifySignatures { get; set; } + public virtual bool? VerifySignatures { get; set; } [BooleanCommandSwitch("--no-verify-signatures")] - public bool? NoVerifySignatures { get; set; } + public virtual bool? NoVerifySignatures { get; set; } [BooleanCommandSwitch("--summary")] - public bool? Summary { get; set; } + public virtual bool? Summary { get; set; } [BooleanCommandSwitch("--no-summary")] - public bool? NoSummary { get; set; } + public virtual bool? NoSummary { get; set; } [BooleanCommandSwitch("--autostash")] - public bool? Autostash { get; set; } + public virtual bool? Autostash { get; set; } [BooleanCommandSwitch("--no-autostash")] - public bool? NoAutostash { get; set; } + public virtual bool? NoAutostash { get; set; } [BooleanCommandSwitch("--allow-unrelated-histories")] - public bool? AllowUnrelatedHistories { get; set; } + public virtual bool? AllowUnrelatedHistories { get; set; } [BooleanCommandSwitch("--rebase")] - public bool? Rebase { get; set; } + public virtual bool? Rebase { get; set; } [BooleanCommandSwitch("--no-rebase")] - public bool? NoRebase { get; set; } + public virtual bool? NoRebase { get; set; } [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } [BooleanCommandSwitch("--append")] - public bool? Append { get; set; } + public virtual bool? Append { get; set; } [BooleanCommandSwitch("--atomic")] - public bool? Atomic { get; set; } + public virtual bool? Atomic { get; set; } [CommandEqualsSeparatorSwitch("--depth")] public string? Depth { get; set; } @@ -134,68 +134,68 @@ public record GitPullOptions : GitOptions public string? ShallowExclude { get; set; } [BooleanCommandSwitch("--unshallow")] - public bool? Unshallow { get; set; } + public virtual bool? Unshallow { get; set; } [BooleanCommandSwitch("--update-shallow")] - public bool? UpdateShallow { get; set; } + public virtual bool? UpdateShallow { get; set; } [CommandEqualsSeparatorSwitch("--negotiation-tip")] public string? NegotiationTip { get; set; } [BooleanCommandSwitch("--negotiate-only")] - public bool? NegotiateOnly { get; set; } + public virtual bool? NegotiateOnly { get; set; } [BooleanCommandSwitch("--dry-run")] - public bool? DryRun { get; set; } + public virtual bool? DryRun { get; set; } [BooleanCommandSwitch("--porcelain")] - public bool? Porcelain { get; set; } + public virtual bool? Porcelain { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [BooleanCommandSwitch("--keep")] - public bool? Keep { get; set; } + public virtual bool? Keep { get; set; } [BooleanCommandSwitch("--prefetch")] - public bool? Prefetch { get; set; } + public virtual bool? Prefetch { get; set; } [BooleanCommandSwitch("--prune")] - public bool? Prune { get; set; } + public virtual bool? Prune { get; set; } [BooleanCommandSwitch("--no-tags")] - public bool? NoTags { get; set; } + public virtual bool? NoTags { get; set; } [CommandEqualsSeparatorSwitch("--refmap")] public string? Refmap { get; set; } [BooleanCommandSwitch("--tags")] - public bool? Tags { get; set; } + public virtual bool? Tags { get; set; } [CommandEqualsSeparatorSwitch("--jobs")] public string? Jobs { get; set; } [BooleanCommandSwitch("--set-upstream")] - public bool? SetUpstream { get; set; } + public virtual bool? SetUpstream { get; set; } [CommandEqualsSeparatorSwitch("--upload-pack")] public string? UploadPack { get; set; } [BooleanCommandSwitch("--progress")] - public bool? Progress { get; set; } + public virtual bool? Progress { get; set; } [CommandEqualsSeparatorSwitch("--server-option")] public string? ServerOption { get; set; } [BooleanCommandSwitch("--show-forced-updates")] - public bool? ShowForcedUpdates { get; set; } + public virtual bool? ShowForcedUpdates { get; set; } [BooleanCommandSwitch("--no-show-forced-updates")] - public bool? NoShowForcedUpdates { get; set; } + public virtual bool? NoShowForcedUpdates { get; set; } [BooleanCommandSwitch("--ipv4")] - public bool? Ipv4 { get; set; } + public virtual bool? Ipv4 { get; set; } [BooleanCommandSwitch("--ipv6")] - public bool? Ipv6 { get; set; } + public virtual bool? Ipv6 { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Git/Options/GitPushOptions.cs b/src/ModularPipelines.Git/Options/GitPushOptions.cs index 79cfa31b52..6ec79e442e 100644 --- a/src/ModularPipelines.Git/Options/GitPushOptions.cs +++ b/src/ModularPipelines.Git/Options/GitPushOptions.cs @@ -8,43 +8,43 @@ namespace ModularPipelines.Git.Options; public record GitPushOptions : GitOptions { [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } [BooleanCommandSwitch("--branches")] - public bool? Branches { get; set; } + public virtual bool? Branches { get; set; } [BooleanCommandSwitch("--prune")] - public bool? Prune { get; set; } + public virtual bool? Prune { get; set; } [BooleanCommandSwitch("--mirror")] - public bool? Mirror { get; set; } + public virtual bool? Mirror { get; set; } [BooleanCommandSwitch("--dry-run")] - public bool? DryRun { get; set; } + public virtual bool? DryRun { get; set; } [BooleanCommandSwitch("--porcelain")] - public bool? Porcelain { get; set; } + public virtual bool? Porcelain { get; set; } [BooleanCommandSwitch("--delete")] - public bool? Delete { get; set; } + public virtual bool? Delete { get; set; } [BooleanCommandSwitch("--tags")] - public bool? Tags { get; set; } + public virtual bool? Tags { get; set; } [BooleanCommandSwitch("--follow-tags")] - public bool? FollowTags { get; set; } + public virtual bool? FollowTags { get; set; } [BooleanCommandSwitch("--no-signed")] - public bool? NoSigned { get; set; } + public virtual bool? NoSigned { get; set; } [BooleanCommandSwitch("--signed")] - public bool? Signed { get; set; } + public virtual bool? Signed { get; set; } [BooleanCommandSwitch("--no-atomic")] - public bool? NoAtomic { get; set; } + public virtual bool? NoAtomic { get; set; } [BooleanCommandSwitch("--atomic")] - public bool? Atomic { get; set; } + public virtual bool? Atomic { get; set; } [CommandEqualsSeparatorSwitch("--push-option")] public string? PushOption { get; set; } @@ -56,56 +56,56 @@ public record GitPushOptions : GitOptions public string? Exec { get; set; } [BooleanCommandSwitch("--no-force-with-lease")] - public bool? NoForceWithLease { get; set; } + public virtual bool? NoForceWithLease { get; set; } [BooleanCommandSwitch("--force-with-lease")] - public bool? ForceWithLease { get; set; } + public virtual bool? ForceWithLease { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [BooleanCommandSwitch("--no-force-if-includes")] - public bool? NoForceIfIncludes { get; set; } + public virtual bool? NoForceIfIncludes { get; set; } [BooleanCommandSwitch("--force-if-includes")] - public bool? ForceIfIncludes { get; set; } + public virtual bool? ForceIfIncludes { get; set; } [CommandEqualsSeparatorSwitch("--repo")] public string? Repo { get; set; } [BooleanCommandSwitch("--set-upstream")] - public bool? SetUpstream { get; set; } + public virtual bool? SetUpstream { get; set; } [BooleanCommandSwitch("--no-thin")] - public bool? NoThin { get; set; } + public virtual bool? NoThin { get; set; } [BooleanCommandSwitch("--thin")] - public bool? Thin { get; set; } + public virtual bool? Thin { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } [BooleanCommandSwitch("--verbose")] - public bool? Verbose { get; set; } + public virtual bool? Verbose { get; set; } [BooleanCommandSwitch("--progress")] - public bool? Progress { get; set; } + public virtual bool? Progress { get; set; } [BooleanCommandSwitch("--no-recurse-submodules")] - public bool? NoRecurseSubmodules { get; set; } + public virtual bool? NoRecurseSubmodules { get; set; } [BooleanCommandSwitch("--recurse-submodules")] - public bool? RecurseSubmodules { get; set; } + public virtual bool? RecurseSubmodules { get; set; } [BooleanCommandSwitch("--no-verify")] - public bool? NoVerify { get; set; } + public virtual bool? NoVerify { get; set; } [BooleanCommandSwitch("--verify")] - public bool? Verify { get; set; } + public virtual bool? Verify { get; set; } [BooleanCommandSwitch("--ipv4")] - public bool? Ipv4 { get; set; } + public virtual bool? Ipv4 { get; set; } [BooleanCommandSwitch("--ipv6")] - public bool? Ipv6 { get; set; } + public virtual bool? Ipv6 { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Git/Options/GitRangeDiffOptions.cs b/src/ModularPipelines.Git/Options/GitRangeDiffOptions.cs index 0d5c934a72..2b18e4bdec 100644 --- a/src/ModularPipelines.Git/Options/GitRangeDiffOptions.cs +++ b/src/ModularPipelines.Git/Options/GitRangeDiffOptions.cs @@ -8,16 +8,16 @@ namespace ModularPipelines.Git.Options; public record GitRangeDiffOptions : GitOptions { [BooleanCommandSwitch("--no-dual-color")] - public bool? NoDualColor { get; set; } + public virtual bool? NoDualColor { get; set; } [CommandEqualsSeparatorSwitch("--creation-factor")] public string? CreationFactor { get; set; } [BooleanCommandSwitch("--left-only")] - public bool? LeftOnly { get; set; } + public virtual bool? LeftOnly { get; set; } [BooleanCommandSwitch("--right-only")] - public bool? RightOnly { get; set; } + public virtual bool? RightOnly { get; set; } [CommandEqualsSeparatorSwitch("--no-notes")] public string? NoNotes { get; set; } diff --git a/src/ModularPipelines.Git/Options/GitReadTreeOptions.cs b/src/ModularPipelines.Git/Options/GitReadTreeOptions.cs index b13e7fb02d..0c4199db21 100644 --- a/src/ModularPipelines.Git/Options/GitReadTreeOptions.cs +++ b/src/ModularPipelines.Git/Options/GitReadTreeOptions.cs @@ -8,16 +8,16 @@ namespace ModularPipelines.Git.Options; public record GitReadTreeOptions : GitOptions { [BooleanCommandSwitch("--reset")] - public bool? Reset { get; set; } + public virtual bool? Reset { get; set; } [BooleanCommandSwitch("--dry-run")] - public bool? DryRun { get; set; } + public virtual bool? DryRun { get; set; } [BooleanCommandSwitch("--trivial")] - public bool? Trivial { get; set; } + public virtual bool? Trivial { get; set; } [BooleanCommandSwitch("--aggressive")] - public bool? Aggressive { get; set; } + public virtual bool? Aggressive { get; set; } [CommandEqualsSeparatorSwitch("--prefix")] public string? Prefix { get; set; } @@ -26,17 +26,17 @@ public record GitReadTreeOptions : GitOptions public string? IndexOutput { get; set; } [BooleanCommandSwitch("--no-recurse-submodules")] - public bool? NoRecurseSubmodules { get; set; } + public virtual bool? NoRecurseSubmodules { get; set; } [BooleanCommandSwitch("--recurse-submodules")] - public bool? RecurseSubmodules { get; set; } + public virtual bool? RecurseSubmodules { get; set; } [BooleanCommandSwitch("--no-sparse-checkout")] - public bool? NoSparseCheckout { get; set; } + public virtual bool? NoSparseCheckout { get; set; } [BooleanCommandSwitch("--empty")] - public bool? Empty { get; set; } + public virtual bool? Empty { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Git/Options/GitRebaseOptions.cs b/src/ModularPipelines.Git/Options/GitRebaseOptions.cs index f1fbbe3c45..5cc1cab2b1 100644 --- a/src/ModularPipelines.Git/Options/GitRebaseOptions.cs +++ b/src/ModularPipelines.Git/Options/GitRebaseOptions.cs @@ -8,52 +8,52 @@ namespace ModularPipelines.Git.Options; public record GitRebaseOptions : GitOptions { [BooleanCommandSwitch("--continue")] - public bool? Continue { get; set; } + public virtual bool? Continue { get; set; } [BooleanCommandSwitch("--skip")] - public bool? Skip { get; set; } + public virtual bool? Skip { get; set; } [BooleanCommandSwitch("--abort")] - public bool? Abort { get; set; } + public virtual bool? Abort { get; set; } [BooleanCommandSwitch("--quit")] - public bool? Quit { get; set; } + public virtual bool? Quit { get; set; } [BooleanCommandSwitch("--edit-todo")] - public bool? EditTodo { get; set; } + public virtual bool? EditTodo { get; set; } [BooleanCommandSwitch("--show-current-patch")] - public bool? ShowCurrentPatch { get; set; } + public virtual bool? ShowCurrentPatch { get; set; } [CommandEqualsSeparatorSwitch("--onto")] public string? Onto { get; set; } [BooleanCommandSwitch("--keep-base")] - public bool? KeepBase { get; set; } + public virtual bool? KeepBase { get; set; } [BooleanCommandSwitch("--apply")] - public bool? Apply { get; set; } + public virtual bool? Apply { get; set; } [BooleanCommandSwitch("--empty")] - public bool? Empty { get; set; } + public virtual bool? Empty { get; set; } [BooleanCommandSwitch("--no-keep-empty")] - public bool? NoKeepEmpty { get; set; } + public virtual bool? NoKeepEmpty { get; set; } [BooleanCommandSwitch("--keep-empty")] - public bool? KeepEmpty { get; set; } + public virtual bool? KeepEmpty { get; set; } [BooleanCommandSwitch("--reapply-cherry-picks")] - public bool? ReapplyCherryPicks { get; set; } + public virtual bool? ReapplyCherryPicks { get; set; } [BooleanCommandSwitch("--no-reapply-cherry-picks")] - public bool? NoReapplyCherryPicks { get; set; } + public virtual bool? NoReapplyCherryPicks { get; set; } [BooleanCommandSwitch("--allow-empty-message")] - public bool? AllowEmptyMessage { get; set; } + public virtual bool? AllowEmptyMessage { get; set; } [BooleanCommandSwitch("--merge")] - public bool? Merge { get; set; } + public virtual bool? Merge { get; set; } [CommandEqualsSeparatorSwitch("--strategy")] public string? Strategy { get; set; } @@ -62,101 +62,101 @@ public record GitRebaseOptions : GitOptions public string? StrategyOption { get; set; } [BooleanCommandSwitch("--rerere-autoupdate")] - public bool? RerereAutoupdate { get; set; } + public virtual bool? RerereAutoupdate { get; set; } [BooleanCommandSwitch("--no-rerere-autoupdate")] - public bool? NoRerereAutoupdate { get; set; } + public virtual bool? NoRerereAutoupdate { get; set; } [CommandEqualsSeparatorSwitch("--gpg-sign")] public string? GpgSign { get; set; } [BooleanCommandSwitch("--no-gpg-sign")] - public bool? NoGpgSign { get; set; } + public virtual bool? NoGpgSign { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } [BooleanCommandSwitch("--verbose")] - public bool? Verbose { get; set; } + public virtual bool? Verbose { get; set; } [BooleanCommandSwitch("--stat")] - public bool? Stat { get; set; } + public virtual bool? Stat { get; set; } [BooleanCommandSwitch("--no-stat")] - public bool? NoStat { get; set; } + public virtual bool? NoStat { get; set; } [BooleanCommandSwitch("--no-verify")] - public bool? NoVerify { get; set; } + public virtual bool? NoVerify { get; set; } [BooleanCommandSwitch("--verify")] - public bool? Verify { get; set; } + public virtual bool? Verify { get; set; } [BooleanCommandSwitch("--no-ff")] - public bool? NoFf { get; set; } + public virtual bool? NoFf { get; set; } [BooleanCommandSwitch("--force-rebase")] - public bool? ForceRebase { get; set; } + public virtual bool? ForceRebase { get; set; } [BooleanCommandSwitch("--fork-point")] - public bool? ForkPoint { get; set; } + public virtual bool? ForkPoint { get; set; } [BooleanCommandSwitch("--no-fork-point")] - public bool? NoForkPoint { get; set; } + public virtual bool? NoForkPoint { get; set; } [BooleanCommandSwitch("--ignore-whitespace")] - public bool? IgnoreWhitespace { get; set; } + public virtual bool? IgnoreWhitespace { get; set; } [CommandEqualsSeparatorSwitch("--whitespace")] public string? Whitespace { get; set; } [BooleanCommandSwitch("--committer-date-is-author-date")] - public bool? CommitterDateIsAuthorDate { get; set; } + public virtual bool? CommitterDateIsAuthorDate { get; set; } [BooleanCommandSwitch("--ignore-date")] - public bool? IgnoreDate { get; set; } + public virtual bool? IgnoreDate { get; set; } [BooleanCommandSwitch("--reset-author-date")] - public bool? ResetAuthorDate { get; set; } + public virtual bool? ResetAuthorDate { get; set; } [BooleanCommandSwitch("--signoff")] - public bool? Signoff { get; set; } + public virtual bool? Signoff { get; set; } [BooleanCommandSwitch("--interactive")] - public bool? Interactive { get; set; } + public virtual bool? Interactive { get; set; } [BooleanCommandSwitch("--rebase-merges")] - public bool? RebaseMerges { get; set; } + public virtual bool? RebaseMerges { get; set; } [BooleanCommandSwitch("--no-rebase-merges")] - public bool? NoRebaseMerges { get; set; } + public virtual bool? NoRebaseMerges { get; set; } [CommandEqualsSeparatorSwitch("--exec")] public string? Exec { get; set; } [BooleanCommandSwitch("--root")] - public bool? Root { get; set; } + public virtual bool? Root { get; set; } [BooleanCommandSwitch("--autosquash")] - public bool? Autosquash { get; set; } + public virtual bool? Autosquash { get; set; } [BooleanCommandSwitch("--no-autosquash")] - public bool? NoAutosquash { get; set; } + public virtual bool? NoAutosquash { get; set; } [BooleanCommandSwitch("--autostash")] - public bool? Autostash { get; set; } + public virtual bool? Autostash { get; set; } [BooleanCommandSwitch("--no-autostash")] - public bool? NoAutostash { get; set; } + public virtual bool? NoAutostash { get; set; } [BooleanCommandSwitch("--reschedule-failed-exec")] - public bool? RescheduleFailedExec { get; set; } + public virtual bool? RescheduleFailedExec { get; set; } [BooleanCommandSwitch("--no-reschedule-failed-exec")] - public bool? NoRescheduleFailedExec { get; set; } + public virtual bool? NoRescheduleFailedExec { get; set; } [BooleanCommandSwitch("--update-refs")] - public bool? UpdateRefs { get; set; } + public virtual bool? UpdateRefs { get; set; } [BooleanCommandSwitch("--no-update-refs")] - public bool? NoUpdateRefs { get; set; } + public virtual bool? NoUpdateRefs { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Git/Options/GitReflogOptions.cs b/src/ModularPipelines.Git/Options/GitReflogOptions.cs index 9b60843233..40f9729c99 100644 --- a/src/ModularPipelines.Git/Options/GitReflogOptions.cs +++ b/src/ModularPipelines.Git/Options/GitReflogOptions.cs @@ -8,10 +8,10 @@ namespace ModularPipelines.Git.Options; public record GitReflogOptions : GitOptions { [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } [BooleanCommandSwitch("--single-worktree")] - public bool? SingleWorktree { get; set; } + public virtual bool? SingleWorktree { get; set; } [CommandEqualsSeparatorSwitch("--expire")] public string? Expire { get; set; } @@ -20,17 +20,17 @@ public record GitReflogOptions : GitOptions public string? ExpireUnreachable { get; set; } [BooleanCommandSwitch("--updateref")] - public bool? Updateref { get; set; } + public virtual bool? Updateref { get; set; } [BooleanCommandSwitch("--rewrite")] - public bool? Rewrite { get; set; } + public virtual bool? Rewrite { get; set; } [BooleanCommandSwitch("--stale-fix")] - public bool? StaleFix { get; set; } + public virtual bool? StaleFix { get; set; } [BooleanCommandSwitch("--dry-run")] - public bool? DryRun { get; set; } + public virtual bool? DryRun { get; set; } [BooleanCommandSwitch("--verbose")] - public bool? Verbose { get; set; } + public virtual bool? Verbose { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Git/Options/GitRemoteOptions.cs b/src/ModularPipelines.Git/Options/GitRemoteOptions.cs index 3659e718c0..61038578e3 100644 --- a/src/ModularPipelines.Git/Options/GitRemoteOptions.cs +++ b/src/ModularPipelines.Git/Options/GitRemoteOptions.cs @@ -8,5 +8,5 @@ namespace ModularPipelines.Git.Options; public record GitRemoteOptions : GitOptions { [BooleanCommandSwitch("--verbose")] - public bool? Verbose { get; set; } + public virtual bool? Verbose { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Git/Options/GitResetOptions.cs b/src/ModularPipelines.Git/Options/GitResetOptions.cs index 9b2215f3d9..0d55fba97e 100644 --- a/src/ModularPipelines.Git/Options/GitResetOptions.cs +++ b/src/ModularPipelines.Git/Options/GitResetOptions.cs @@ -8,38 +8,38 @@ namespace ModularPipelines.Git.Options; public record GitResetOptions : GitOptions { [BooleanCommandSwitch("--soft")] - public bool? Soft { get; set; } + public virtual bool? Soft { get; set; } [BooleanCommandSwitch("--mixed")] - public bool? Mixed { get; set; } + public virtual bool? Mixed { get; set; } [BooleanCommandSwitch("--hard")] - public bool? Hard { get; set; } + public virtual bool? Hard { get; set; } [BooleanCommandSwitch("--merge")] - public bool? Merge { get; set; } + public virtual bool? Merge { get; set; } [BooleanCommandSwitch("--keep")] - public bool? Keep { get; set; } + public virtual bool? Keep { get; set; } [BooleanCommandSwitch("--no-recurse-submodules")] - public bool? NoRecurseSubmodules { get; set; } + public virtual bool? NoRecurseSubmodules { get; set; } [BooleanCommandSwitch("--recurse-submodules")] - public bool? RecurseSubmodules { get; set; } + public virtual bool? RecurseSubmodules { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } [BooleanCommandSwitch("--refresh")] - public bool? Refresh { get; set; } + public virtual bool? Refresh { get; set; } [BooleanCommandSwitch("--no-refresh")] - public bool? NoRefresh { get; set; } + public virtual bool? NoRefresh { get; set; } [CommandEqualsSeparatorSwitch("--pathspec-from-file")] public string? PathspecFromFile { get; set; } [BooleanCommandSwitch("--pathspec-file-nul")] - public bool? PathspecFileNul { get; set; } + public virtual bool? PathspecFileNul { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Git/Options/GitRestoreOptions.cs b/src/ModularPipelines.Git/Options/GitRestoreOptions.cs index 7180171d62..c06484989f 100644 --- a/src/ModularPipelines.Git/Options/GitRestoreOptions.cs +++ b/src/ModularPipelines.Git/Options/GitRestoreOptions.cs @@ -11,56 +11,56 @@ public record GitRestoreOptions : GitOptions public string? Source { get; set; } [BooleanCommandSwitch("--patch")] - public bool? Patch { get; set; } + public virtual bool? Patch { get; set; } [BooleanCommandSwitch("--worktree")] - public bool? Worktree { get; set; } + public virtual bool? Worktree { get; set; } [BooleanCommandSwitch("--staged")] - public bool? Staged { get; set; } + public virtual bool? Staged { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } [BooleanCommandSwitch("--progress")] - public bool? Progress { get; set; } + public virtual bool? Progress { get; set; } [BooleanCommandSwitch("--no-progress")] - public bool? NoProgress { get; set; } + public virtual bool? NoProgress { get; set; } [BooleanCommandSwitch("--ours")] - public bool? Ours { get; set; } + public virtual bool? Ours { get; set; } [BooleanCommandSwitch("--theirs")] - public bool? Theirs { get; set; } + public virtual bool? Theirs { get; set; } [BooleanCommandSwitch("--merge")] - public bool? Merge { get; set; } + public virtual bool? Merge { get; set; } [CommandEqualsSeparatorSwitch("--conflict")] public string? Conflict { get; set; } [BooleanCommandSwitch("--ignore-unmerged")] - public bool? IgnoreUnmerged { get; set; } + public virtual bool? IgnoreUnmerged { get; set; } [BooleanCommandSwitch("--ignore-skip-worktree-bits")] - public bool? IgnoreSkipWorktreeBits { get; set; } + public virtual bool? IgnoreSkipWorktreeBits { get; set; } [BooleanCommandSwitch("--recurse-submodules")] - public bool? RecurseSubmodules { get; set; } + public virtual bool? RecurseSubmodules { get; set; } [BooleanCommandSwitch("--no-recurse-submodules")] - public bool? NoRecurseSubmodules { get; set; } + public virtual bool? NoRecurseSubmodules { get; set; } [BooleanCommandSwitch("--overlay")] - public bool? Overlay { get; set; } + public virtual bool? Overlay { get; set; } [BooleanCommandSwitch("--no-overlay")] - public bool? NoOverlay { get; set; } + public virtual bool? NoOverlay { get; set; } [CommandEqualsSeparatorSwitch("--pathspec-from-file")] public string? PathspecFromFile { get; set; } [BooleanCommandSwitch("--pathspec-file-nul")] - public bool? PathspecFileNul { get; set; } + public virtual bool? PathspecFileNul { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Git/Options/GitRevListOptions.cs b/src/ModularPipelines.Git/Options/GitRevListOptions.cs index c274243cae..87c5f86ba5 100644 --- a/src/ModularPipelines.Git/Options/GitRevListOptions.cs +++ b/src/ModularPipelines.Git/Options/GitRevListOptions.cs @@ -47,34 +47,34 @@ public record GitRevListOptions : GitOptions public string? Grep { get; set; } [BooleanCommandSwitch("--all-match")] - public bool? AllMatch { get; set; } + public virtual bool? AllMatch { get; set; } [BooleanCommandSwitch("--invert-grep")] - public bool? InvertGrep { get; set; } + public virtual bool? InvertGrep { get; set; } [BooleanCommandSwitch("--regexp-ignore-case")] - public bool? RegexpIgnoreCase { get; set; } + public virtual bool? RegexpIgnoreCase { get; set; } [BooleanCommandSwitch("--basic-regexp")] - public bool? BasicRegexp { get; set; } + public virtual bool? BasicRegexp { get; set; } [BooleanCommandSwitch("--extended-regexp")] - public bool? ExtendedRegexp { get; set; } + public virtual bool? ExtendedRegexp { get; set; } [BooleanCommandSwitch("--fixed-strings")] - public bool? FixedStrings { get; set; } + public virtual bool? FixedStrings { get; set; } [BooleanCommandSwitch("--perl-regexp")] - public bool? PerlRegexp { get; set; } + public virtual bool? PerlRegexp { get; set; } [BooleanCommandSwitch("--remove-empty")] - public bool? RemoveEmpty { get; set; } + public virtual bool? RemoveEmpty { get; set; } [BooleanCommandSwitch("--merges")] - public bool? Merges { get; set; } + public virtual bool? Merges { get; set; } [BooleanCommandSwitch("--no-merges")] - public bool? NoMerges { get; set; } + public virtual bool? NoMerges { get; set; } [CommandEqualsSeparatorSwitch("--min-parents")] public string? MinParents { get; set; } @@ -83,22 +83,22 @@ public record GitRevListOptions : GitOptions public string? MaxParents { get; set; } [BooleanCommandSwitch("--no-min-parents")] - public bool? NoMinParents { get; set; } + public virtual bool? NoMinParents { get; set; } [BooleanCommandSwitch("--no-max-parents")] - public bool? NoMaxParents { get; set; } + public virtual bool? NoMaxParents { get; set; } [BooleanCommandSwitch("--first-parent")] - public bool? FirstParent { get; set; } + public virtual bool? FirstParent { get; set; } [BooleanCommandSwitch("--exclude-first-parent-only")] - public bool? ExcludeFirstParentOnly { get; set; } + public virtual bool? ExcludeFirstParentOnly { get; set; } [BooleanCommandSwitch("--not")] - public bool? Not { get; set; } + public virtual bool? Not { get; set; } [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } [CommandEqualsSeparatorSwitch("--branches")] public string? Branches { get; set; } @@ -116,148 +116,148 @@ public record GitRevListOptions : GitOptions public string? Exclude { get; set; } [BooleanCommandSwitch("--exclude-hidden")] - public bool? ExcludeHidden { get; set; } + public virtual bool? ExcludeHidden { get; set; } [BooleanCommandSwitch("--reflog")] - public bool? Reflog { get; set; } + public virtual bool? Reflog { get; set; } [BooleanCommandSwitch("--alternate-refs")] - public bool? AlternateRefs { get; set; } + public virtual bool? AlternateRefs { get; set; } [BooleanCommandSwitch("--single-worktree")] - public bool? SingleWorktree { get; set; } + public virtual bool? SingleWorktree { get; set; } [BooleanCommandSwitch("--ignore-missing")] - public bool? IgnoreMissing { get; set; } + public virtual bool? IgnoreMissing { get; set; } [BooleanCommandSwitch("--stdin")] - public bool? Stdin { get; set; } + public virtual bool? Stdin { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } [BooleanCommandSwitch("--disk-usage")] - public bool? DiskUsage { get; set; } + public virtual bool? DiskUsage { get; set; } [BooleanCommandSwitch("--cherry-mark")] - public bool? CherryMark { get; set; } + public virtual bool? CherryMark { get; set; } [BooleanCommandSwitch("--cherry-pick")] - public bool? CherryPick { get; set; } + public virtual bool? CherryPick { get; set; } [BooleanCommandSwitch("--left-only")] - public bool? LeftOnly { get; set; } + public virtual bool? LeftOnly { get; set; } [BooleanCommandSwitch("--right-only")] - public bool? RightOnly { get; set; } + public virtual bool? RightOnly { get; set; } [BooleanCommandSwitch("--cherry")] - public bool? Cherry { get; set; } + public virtual bool? Cherry { get; set; } [BooleanCommandSwitch("--walk-reflogs")] - public bool? WalkReflogs { get; set; } + public virtual bool? WalkReflogs { get; set; } [BooleanCommandSwitch("--merge")] - public bool? Merge { get; set; } + public virtual bool? Merge { get; set; } [BooleanCommandSwitch("--boundary")] - public bool? Boundary { get; set; } + public virtual bool? Boundary { get; set; } [BooleanCommandSwitch("--use-bitmap-index")] - public bool? UseBitmapIndex { get; set; } + public virtual bool? UseBitmapIndex { get; set; } [CommandEqualsSeparatorSwitch("--progress")] public string? Progress { get; set; } [BooleanCommandSwitch("--simplify-by-decoration")] - public bool? SimplifyByDecoration { get; set; } + public virtual bool? SimplifyByDecoration { get; set; } [BooleanCommandSwitch("--show-pulls")] - public bool? ShowPulls { get; set; } + public virtual bool? ShowPulls { get; set; } [BooleanCommandSwitch("--full-history")] - public bool? FullHistory { get; set; } + public virtual bool? FullHistory { get; set; } [BooleanCommandSwitch("--dense")] - public bool? Dense { get; set; } + public virtual bool? Dense { get; set; } [BooleanCommandSwitch("--sparse")] - public bool? Sparse { get; set; } + public virtual bool? Sparse { get; set; } [BooleanCommandSwitch("--simplify-merges")] - public bool? SimplifyMerges { get; set; } + public virtual bool? SimplifyMerges { get; set; } [CommandEqualsSeparatorSwitch("--ancestry-path")] public string? AncestryPath { get; set; } [BooleanCommandSwitch("--bisect")] - public bool? Bisect { get; set; } + public virtual bool? Bisect { get; set; } [BooleanCommandSwitch("--bisect-vars")] - public bool? BisectVars { get; set; } + public virtual bool? BisectVars { get; set; } [BooleanCommandSwitch("--bisect-all")] - public bool? BisectAll { get; set; } + public virtual bool? BisectAll { get; set; } [BooleanCommandSwitch("--date-order")] - public bool? DateOrder { get; set; } + public virtual bool? DateOrder { get; set; } [BooleanCommandSwitch("--author-date-order")] - public bool? AuthorDateOrder { get; set; } + public virtual bool? AuthorDateOrder { get; set; } [BooleanCommandSwitch("--topo-order")] - public bool? TopoOrder { get; set; } + public virtual bool? TopoOrder { get; set; } [BooleanCommandSwitch("--reverse")] - public bool? Reverse { get; set; } + public virtual bool? Reverse { get; set; } [BooleanCommandSwitch("--objects")] - public bool? Objects { get; set; } + public virtual bool? Objects { get; set; } [BooleanCommandSwitch("--in-commit-order")] - public bool? InCommitOrder { get; set; } + public virtual bool? InCommitOrder { get; set; } [BooleanCommandSwitch("--objects-edge")] - public bool? ObjectsEdge { get; set; } + public virtual bool? ObjectsEdge { get; set; } [BooleanCommandSwitch("--objects-edge-aggressive")] - public bool? ObjectsEdgeAggressive { get; set; } + public virtual bool? ObjectsEdgeAggressive { get; set; } [BooleanCommandSwitch("--indexed-objects")] - public bool? IndexedObjects { get; set; } + public virtual bool? IndexedObjects { get; set; } [BooleanCommandSwitch("--unpacked")] - public bool? Unpacked { get; set; } + public virtual bool? Unpacked { get; set; } [BooleanCommandSwitch("--object-names")] - public bool? ObjectNames { get; set; } + public virtual bool? ObjectNames { get; set; } [BooleanCommandSwitch("--no-object-names")] - public bool? NoObjectNames { get; set; } + public virtual bool? NoObjectNames { get; set; } [CommandEqualsSeparatorSwitch("--filter")] public string? Filter { get; set; } [BooleanCommandSwitch("--no-filter")] - public bool? NoFilter { get; set; } + public virtual bool? NoFilter { get; set; } [BooleanCommandSwitch("--filter-provided-objects")] - public bool? FilterProvidedObjects { get; set; } + public virtual bool? FilterProvidedObjects { get; set; } [BooleanCommandSwitch("--filter-print-omitted")] - public bool? FilterPrintOmitted { get; set; } + public virtual bool? FilterPrintOmitted { get; set; } [CommandEqualsSeparatorSwitch("--missing")] public string? Missing { get; set; } [BooleanCommandSwitch("--exclude-promisor-objects")] - public bool? ExcludePromisorObjects { get; set; } + public virtual bool? ExcludePromisorObjects { get; set; } [BooleanCommandSwitch("--no-walk")] - public bool? NoWalk { get; set; } + public virtual bool? NoWalk { get; set; } [BooleanCommandSwitch("--do-walk")] - public bool? DoWalk { get; set; } + public virtual bool? DoWalk { get; set; } [CommandEqualsSeparatorSwitch("--pretty")] public string? Pretty { get; set; } @@ -266,13 +266,13 @@ public record GitRevListOptions : GitOptions public string? Format { get; set; } [BooleanCommandSwitch("--abbrev-commit")] - public bool? AbbrevCommit { get; set; } + public virtual bool? AbbrevCommit { get; set; } [BooleanCommandSwitch("--no-abbrev-commit")] - public bool? NoAbbrevCommit { get; set; } + public virtual bool? NoAbbrevCommit { get; set; } [BooleanCommandSwitch("--oneline")] - public bool? Oneline { get; set; } + public virtual bool? Oneline { get; set; } [CommandEqualsSeparatorSwitch("--encoding")] public string? Encoding { get; set; } @@ -281,44 +281,44 @@ public record GitRevListOptions : GitOptions public string? ExpandTabs { get; set; } [BooleanCommandSwitch("--no-expand-tabs")] - public bool? NoExpandTabs { get; set; } + public virtual bool? NoExpandTabs { get; set; } [BooleanCommandSwitch("--show-signature")] - public bool? ShowSignature { get; set; } + public virtual bool? ShowSignature { get; set; } [BooleanCommandSwitch("--relative-date")] - public bool? RelativeDate { get; set; } + public virtual bool? RelativeDate { get; set; } [CommandEqualsSeparatorSwitch("--date")] public string? Date { get; set; } [BooleanCommandSwitch("--header")] - public bool? Header { get; set; } + public virtual bool? Header { get; set; } [BooleanCommandSwitch("--no-commit-header")] - public bool? NoCommitHeader { get; set; } + public virtual bool? NoCommitHeader { get; set; } [BooleanCommandSwitch("--commit-header")] - public bool? CommitHeader { get; set; } + public virtual bool? CommitHeader { get; set; } [BooleanCommandSwitch("--parents")] - public bool? Parents { get; set; } + public virtual bool? Parents { get; set; } [BooleanCommandSwitch("--children")] - public bool? Children { get; set; } + public virtual bool? Children { get; set; } [BooleanCommandSwitch("--timestamp")] - public bool? Timestamp { get; set; } + public virtual bool? Timestamp { get; set; } [BooleanCommandSwitch("--left-right")] - public bool? LeftRight { get; set; } + public virtual bool? LeftRight { get; set; } [BooleanCommandSwitch("--graph")] - public bool? Graph { get; set; } + public virtual bool? Graph { get; set; } [CommandEqualsSeparatorSwitch("--show-linear-break")] public string? ShowLinearBreak { get; set; } [BooleanCommandSwitch("--count")] - public bool? Count { get; set; } + public virtual bool? Count { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Git/Options/GitRevParseOptions.cs b/src/ModularPipelines.Git/Options/GitRevParseOptions.cs index 7bff26f479..ee7d58f127 100644 --- a/src/ModularPipelines.Git/Options/GitRevParseOptions.cs +++ b/src/ModularPipelines.Git/Options/GitRevParseOptions.cs @@ -8,31 +8,31 @@ namespace ModularPipelines.Git.Options; public record GitRevParseOptions : GitOptions { [BooleanCommandSwitch("--parseopt")] - public bool? Parseopt { get; set; } + public virtual bool? Parseopt { get; set; } [BooleanCommandSwitch("--sq-quote")] - public bool? SqQuote { get; set; } + public virtual bool? SqQuote { get; set; } [BooleanCommandSwitch("--keep-dashdash")] - public bool? KeepDashdash { get; set; } + public virtual bool? KeepDashdash { get; set; } [BooleanCommandSwitch("--stop-at-non-option")] - public bool? StopAtNonOption { get; set; } + public virtual bool? StopAtNonOption { get; set; } [BooleanCommandSwitch("--stuck-long")] - public bool? StuckLong { get; set; } + public virtual bool? StuckLong { get; set; } [BooleanCommandSwitch("--revs-only")] - public bool? RevsOnly { get; set; } + public virtual bool? RevsOnly { get; set; } [BooleanCommandSwitch("--no-revs")] - public bool? NoRevs { get; set; } + public virtual bool? NoRevs { get; set; } [BooleanCommandSwitch("--flags")] - public bool? Flags { get; set; } + public virtual bool? Flags { get; set; } [BooleanCommandSwitch("--no-flags")] - public bool? NoFlags { get; set; } + public virtual bool? NoFlags { get; set; } [CommandEqualsSeparatorSwitch("--default")] public string? Default { get; set; } @@ -41,64 +41,64 @@ public record GitRevParseOptions : GitOptions public string? Prefix { get; set; } [BooleanCommandSwitch("--verify")] - public bool? Verify { get; set; } + public virtual bool? Verify { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } [BooleanCommandSwitch("--sq")] - public bool? Sq { get; set; } + public virtual bool? Sq { get; set; } [BooleanCommandSwitch("--short")] - public bool? Short { get; set; } + public virtual bool? Short { get; set; } [BooleanCommandSwitch("--not")] - public bool? Not { get; set; } + public virtual bool? Not { get; set; } [BooleanCommandSwitch("--abbrev-ref")] - public bool? AbbrevRef { get; set; } + public virtual bool? AbbrevRef { get; set; } [BooleanCommandSwitch("--symbolic")] - public bool? Symbolic { get; set; } + public virtual bool? Symbolic { get; set; } [BooleanCommandSwitch("--symbolic-full-name")] - public bool? SymbolicFullName { get; set; } + public virtual bool? SymbolicFullName { get; set; } [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } [BooleanCommandSwitch("--branches")] - public bool? Branches { get; set; } + public virtual bool? Branches { get; set; } [BooleanCommandSwitch("--tags")] - public bool? Tags { get; set; } + public virtual bool? Tags { get; set; } [BooleanCommandSwitch("--remotes")] - public bool? Remotes { get; set; } + public virtual bool? Remotes { get; set; } [BooleanCommandSwitch("--glob")] - public bool? Glob { get; set; } + public virtual bool? Glob { get; set; } [CommandEqualsSeparatorSwitch("--exclude")] public string? Exclude { get; set; } [BooleanCommandSwitch("--exclude-hidden")] - public bool? ExcludeHidden { get; set; } + public virtual bool? ExcludeHidden { get; set; } [CommandEqualsSeparatorSwitch("--disambiguate")] public string? Disambiguate { get; set; } [BooleanCommandSwitch("--local-env-vars")] - public bool? LocalEnvVars { get; set; } + public virtual bool? LocalEnvVars { get; set; } [BooleanCommandSwitch("--path-format")] - public bool? PathFormat { get; set; } + public virtual bool? PathFormat { get; set; } [BooleanCommandSwitch("--git-dir")] - public bool? GitDir { get; set; } + public virtual bool? GitDir { get; set; } [BooleanCommandSwitch("--git-common-dir")] - public bool? GitCommonDir { get; set; } + public virtual bool? GitCommonDir { get; set; } [CommandEqualsSeparatorSwitch("--resolve-git-dir")] public string? ResolveGitDir { get; set; } @@ -107,47 +107,47 @@ public record GitRevParseOptions : GitOptions public string? GitPath { get; set; } [BooleanCommandSwitch("--show-toplevel")] - public bool? ShowToplevel { get; set; } + public virtual bool? ShowToplevel { get; set; } [BooleanCommandSwitch("--show-superproject-working-tree")] - public bool? ShowSuperprojectWorkingTree { get; set; } + public virtual bool? ShowSuperprojectWorkingTree { get; set; } [BooleanCommandSwitch("--shared-index-path")] - public bool? SharedIndexPath { get; set; } + public virtual bool? SharedIndexPath { get; set; } [BooleanCommandSwitch("--absolute-git-dir")] - public bool? AbsoluteGitDir { get; set; } + public virtual bool? AbsoluteGitDir { get; set; } [BooleanCommandSwitch("--is-inside-git-dir")] - public bool? IsInsideGitDir { get; set; } + public virtual bool? IsInsideGitDir { get; set; } [BooleanCommandSwitch("--is-inside-work-tree")] - public bool? IsInsideWorkTree { get; set; } + public virtual bool? IsInsideWorkTree { get; set; } [BooleanCommandSwitch("--is-bare-repository")] - public bool? IsBareRepository { get; set; } + public virtual bool? IsBareRepository { get; set; } [BooleanCommandSwitch("--is-shallow-repository")] - public bool? IsShallowRepository { get; set; } + public virtual bool? IsShallowRepository { get; set; } [BooleanCommandSwitch("--show-cdup")] - public bool? ShowCdup { get; set; } + public virtual bool? ShowCdup { get; set; } [BooleanCommandSwitch("--show-prefix")] - public bool? ShowPrefix { get; set; } + public virtual bool? ShowPrefix { get; set; } [BooleanCommandSwitch("--show-object-format")] - public bool? ShowObjectFormat { get; set; } + public virtual bool? ShowObjectFormat { get; set; } [BooleanCommandSwitch("--since")] - public bool? Since { get; set; } + public virtual bool? Since { get; set; } [BooleanCommandSwitch("--after")] - public bool? After { get; set; } + public virtual bool? After { get; set; } [BooleanCommandSwitch("--until")] - public bool? Until { get; set; } + public virtual bool? Until { get; set; } [BooleanCommandSwitch("--before")] - public bool? Before { get; set; } + public virtual bool? Before { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Git/Options/GitRevertOptions.cs b/src/ModularPipelines.Git/Options/GitRevertOptions.cs index 1a08763a64..a5681ab57c 100644 --- a/src/ModularPipelines.Git/Options/GitRevertOptions.cs +++ b/src/ModularPipelines.Git/Options/GitRevertOptions.cs @@ -8,28 +8,28 @@ namespace ModularPipelines.Git.Options; public record GitRevertOptions : GitOptions { [BooleanCommandSwitch("--edit")] - public bool? Edit { get; set; } + public virtual bool? Edit { get; set; } [BooleanCommandSwitch("--mainline")] - public bool? Mainline { get; set; } + public virtual bool? Mainline { get; set; } [BooleanCommandSwitch("--no-edit")] - public bool? NoEdit { get; set; } + public virtual bool? NoEdit { get; set; } [CommandEqualsSeparatorSwitch("--cleanup")] public string? Cleanup { get; set; } [BooleanCommandSwitch("--no-commit")] - public bool? NoCommit { get; set; } + public virtual bool? NoCommit { get; set; } [CommandEqualsSeparatorSwitch("--gpg-sign")] public string? GpgSign { get; set; } [BooleanCommandSwitch("--no-gpg-sign")] - public bool? NoGpgSign { get; set; } + public virtual bool? NoGpgSign { get; set; } [BooleanCommandSwitch("--signoff")] - public bool? Signoff { get; set; } + public virtual bool? Signoff { get; set; } [CommandEqualsSeparatorSwitch("--strategy")] public string? Strategy { get; set; } @@ -38,23 +38,23 @@ public record GitRevertOptions : GitOptions public string? StrategyOption { get; set; } [BooleanCommandSwitch("--rerere-autoupdate")] - public bool? RerereAutoupdate { get; set; } + public virtual bool? RerereAutoupdate { get; set; } [BooleanCommandSwitch("--no-rerere-autoupdate")] - public bool? NoRerereAutoupdate { get; set; } + public virtual bool? NoRerereAutoupdate { get; set; } [BooleanCommandSwitch("--reference")] - public bool? Reference { get; set; } + public virtual bool? Reference { get; set; } [BooleanCommandSwitch("--continue")] - public bool? Continue { get; set; } + public virtual bool? Continue { get; set; } [BooleanCommandSwitch("--skip")] - public bool? Skip { get; set; } + public virtual bool? Skip { get; set; } [BooleanCommandSwitch("--quit")] - public bool? Quit { get; set; } + public virtual bool? Quit { get; set; } [BooleanCommandSwitch("--abort")] - public bool? Abort { get; set; } + public virtual bool? Abort { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Git/Options/GitRmOptions.cs b/src/ModularPipelines.Git/Options/GitRmOptions.cs index 13eb1a6a4a..8126e43701 100644 --- a/src/ModularPipelines.Git/Options/GitRmOptions.cs +++ b/src/ModularPipelines.Git/Options/GitRmOptions.cs @@ -8,26 +8,26 @@ namespace ModularPipelines.Git.Options; public record GitRmOptions : GitOptions { [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [BooleanCommandSwitch("--dry-run")] - public bool? DryRun { get; set; } + public virtual bool? DryRun { get; set; } [BooleanCommandSwitch("--cached")] - public bool? Cached { get; set; } + public virtual bool? Cached { get; set; } [BooleanCommandSwitch("--ignore-unmatch")] - public bool? IgnoreUnmatch { get; set; } + public virtual bool? IgnoreUnmatch { get; set; } [BooleanCommandSwitch("--sparse")] - public bool? Sparse { get; set; } + public virtual bool? Sparse { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } [CommandEqualsSeparatorSwitch("--pathspec-from-file")] public string? PathspecFromFile { get; set; } [BooleanCommandSwitch("--pathspec-file-nul")] - public bool? PathspecFileNul { get; set; } + public virtual bool? PathspecFileNul { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Git/Options/GitSendEmailOptions.cs b/src/ModularPipelines.Git/Options/GitSendEmailOptions.cs index f012c2850e..38ed9467a9 100644 --- a/src/ModularPipelines.Git/Options/GitSendEmailOptions.cs +++ b/src/ModularPipelines.Git/Options/GitSendEmailOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Git.Options; public record GitSendEmailOptions : GitOptions { [BooleanCommandSwitch("--annotate")] - public bool? Annotate { get; set; } + public virtual bool? Annotate { get; set; } [CommandEqualsSeparatorSwitch("--bcc")] public string? Bcc { get; set; } @@ -17,7 +17,7 @@ public record GitSendEmailOptions : GitOptions public string? Cc { get; set; } [BooleanCommandSwitch("--compose")] - public bool? Compose { get; set; } + public virtual bool? Compose { get; set; } [CommandEqualsSeparatorSwitch("--from")] public string? From { get; set; } @@ -41,13 +41,13 @@ public record GitSendEmailOptions : GitOptions public string? ComposeEncoding { get; set; } [BooleanCommandSwitch("--transfer-encoding")] - public bool? TransferEncoding { get; set; } + public virtual bool? TransferEncoding { get; set; } [BooleanCommandSwitch("--xmailer")] - public bool? Xmailer { get; set; } + public virtual bool? Xmailer { get; set; } [BooleanCommandSwitch("--no-xmailer")] - public bool? NoXmailer { get; set; } + public virtual bool? NoXmailer { get; set; } [CommandEqualsSeparatorSwitch("--envelope-sender")] public string? EnvelopeSender { get; set; } @@ -68,7 +68,7 @@ public record GitSendEmailOptions : GitOptions public string? SmtpPass { get; set; } [BooleanCommandSwitch("--no-smtp-auth")] - public bool? NoSmtpAuth { get; set; } + public virtual bool? NoSmtpAuth { get; set; } [CommandEqualsSeparatorSwitch("--smtp-server")] public string? SmtpServer { get; set; } @@ -80,16 +80,16 @@ public record GitSendEmailOptions : GitOptions public string? SmtpServerOption { get; set; } [BooleanCommandSwitch("--smtp-ssl")] - public bool? SmtpSsl { get; set; } + public virtual bool? SmtpSsl { get; set; } [BooleanCommandSwitch("--smtp-ssl-cert-path")] - public bool? SmtpSslCertPath { get; set; } + public virtual bool? SmtpSslCertPath { get; set; } [CommandEqualsSeparatorSwitch("--smtp-user")] public string? SmtpUser { get; set; } [BooleanCommandSwitch("--smtp-debug")] - public bool? SmtpDebug { get; set; } + public virtual bool? SmtpDebug { get; set; } [CommandEqualsSeparatorSwitch("--batch-size")] public string? BatchSize { get; set; } @@ -98,16 +98,16 @@ public record GitSendEmailOptions : GitOptions public string? ReloginDelay { get; set; } [BooleanCommandSwitch("--no-to")] - public bool? NoTo { get; set; } + public virtual bool? NoTo { get; set; } [BooleanCommandSwitch("--no-cc")] - public bool? NoCc { get; set; } + public virtual bool? NoCc { get; set; } [BooleanCommandSwitch("--no-bcc")] - public bool? NoBcc { get; set; } + public virtual bool? NoBcc { get; set; } [BooleanCommandSwitch("--no-identity")] - public bool? NoIdentity { get; set; } + public virtual bool? NoIdentity { get; set; } [CommandEqualsSeparatorSwitch("--to-cmd")] public string? ToCmd { get; set; } @@ -119,74 +119,74 @@ public record GitSendEmailOptions : GitOptions public string? HeaderCmd { get; set; } [BooleanCommandSwitch("--no-header-cmd")] - public bool? NoHeaderCmd { get; set; } + public virtual bool? NoHeaderCmd { get; set; } [BooleanCommandSwitch("--no-chain-reply-to")] - public bool? NoChainReplyTo { get; set; } + public virtual bool? NoChainReplyTo { get; set; } [BooleanCommandSwitch("--chain-reply-to")] - public bool? ChainReplyTo { get; set; } + public virtual bool? ChainReplyTo { get; set; } [CommandEqualsSeparatorSwitch("--identity")] public string? Identity { get; set; } [BooleanCommandSwitch("--no-signed-off-by-cc")] - public bool? NoSignedOffByCc { get; set; } + public virtual bool? NoSignedOffByCc { get; set; } [BooleanCommandSwitch("--signed-off-by-cc")] - public bool? SignedOffByCc { get; set; } + public virtual bool? SignedOffByCc { get; set; } [BooleanCommandSwitch("--no-cc-cover")] - public bool? NoCcCover { get; set; } + public virtual bool? NoCcCover { get; set; } [BooleanCommandSwitch("--cc-cover")] - public bool? CcCover { get; set; } + public virtual bool? CcCover { get; set; } [BooleanCommandSwitch("--no-to-cover")] - public bool? NoToCover { get; set; } + public virtual bool? NoToCover { get; set; } [BooleanCommandSwitch("--to-cover")] - public bool? ToCover { get; set; } + public virtual bool? ToCover { get; set; } [CommandEqualsSeparatorSwitch("--suppress-cc")] public string? SuppressCc { get; set; } [BooleanCommandSwitch("--no-suppress-from")] - public bool? NoSuppressFrom { get; set; } + public virtual bool? NoSuppressFrom { get; set; } [BooleanCommandSwitch("--suppress-from")] - public bool? SuppressFrom { get; set; } + public virtual bool? SuppressFrom { get; set; } [BooleanCommandSwitch("--no-thread")] - public bool? NoThread { get; set; } + public virtual bool? NoThread { get; set; } [BooleanCommandSwitch("--thread")] - public bool? Thread { get; set; } + public virtual bool? Thread { get; set; } [CommandEqualsSeparatorSwitch("--confirm")] public string? Confirm { get; set; } [BooleanCommandSwitch("--dry-run")] - public bool? DryRun { get; set; } + public virtual bool? DryRun { get; set; } [BooleanCommandSwitch("--no-format-patch")] - public bool? NoFormatPatch { get; set; } + public virtual bool? NoFormatPatch { get; set; } [BooleanCommandSwitch("--format-patch")] - public bool? FormatPatch { get; set; } + public virtual bool? FormatPatch { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } [BooleanCommandSwitch("--no-validate")] - public bool? NoValidate { get; set; } + public virtual bool? NoValidate { get; set; } [BooleanCommandSwitch("--validate")] - public bool? Validate { get; set; } + public virtual bool? Validate { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [BooleanCommandSwitch("--dump-aliases")] - public bool? DumpAliases { get; set; } + public virtual bool? DumpAliases { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Git/Options/GitShortlogOptions.cs b/src/ModularPipelines.Git/Options/GitShortlogOptions.cs index 003b62535e..68328e6337 100644 --- a/src/ModularPipelines.Git/Options/GitShortlogOptions.cs +++ b/src/ModularPipelines.Git/Options/GitShortlogOptions.cs @@ -8,13 +8,13 @@ namespace ModularPipelines.Git.Options; public record GitShortlogOptions : GitOptions { [BooleanCommandSwitch("--numbered")] - public bool? Numbered { get; set; } + public virtual bool? Numbered { get; set; } [BooleanCommandSwitch("--summary")] - public bool? Summary { get; set; } + public virtual bool? Summary { get; set; } [BooleanCommandSwitch("--email")] - public bool? Email { get; set; } + public virtual bool? Email { get; set; } [CommandEqualsSeparatorSwitch("--format")] public string? Format { get; set; } @@ -26,10 +26,10 @@ public record GitShortlogOptions : GitOptions public string? Group { get; set; } [BooleanCommandSwitch("--c")] - public bool? C { get; set; } + public virtual bool? C { get; set; } [BooleanCommandSwitch("--committer")] - public bool? Committer { get; set; } + public virtual bool? Committer { get; set; } [CommandEqualsSeparatorSwitch("--max-count")] public string? MaxCount { get; set; } @@ -62,34 +62,34 @@ public record GitShortlogOptions : GitOptions public string? Grep { get; set; } [BooleanCommandSwitch("--all-match")] - public bool? AllMatch { get; set; } + public virtual bool? AllMatch { get; set; } [BooleanCommandSwitch("--invert-grep")] - public bool? InvertGrep { get; set; } + public virtual bool? InvertGrep { get; set; } [BooleanCommandSwitch("--regexp-ignore-case")] - public bool? RegexpIgnoreCase { get; set; } + public virtual bool? RegexpIgnoreCase { get; set; } [BooleanCommandSwitch("--basic-regexp")] - public bool? BasicRegexp { get; set; } + public virtual bool? BasicRegexp { get; set; } [BooleanCommandSwitch("--extended-regexp")] - public bool? ExtendedRegexp { get; set; } + public virtual bool? ExtendedRegexp { get; set; } [BooleanCommandSwitch("--fixed-strings")] - public bool? FixedStrings { get; set; } + public virtual bool? FixedStrings { get; set; } [BooleanCommandSwitch("--perl-regexp")] - public bool? PerlRegexp { get; set; } + public virtual bool? PerlRegexp { get; set; } [BooleanCommandSwitch("--remove-empty")] - public bool? RemoveEmpty { get; set; } + public virtual bool? RemoveEmpty { get; set; } [BooleanCommandSwitch("--merges")] - public bool? Merges { get; set; } + public virtual bool? Merges { get; set; } [BooleanCommandSwitch("--no-merges")] - public bool? NoMerges { get; set; } + public virtual bool? NoMerges { get; set; } [CommandEqualsSeparatorSwitch("--min-parents")] public string? MinParents { get; set; } @@ -98,22 +98,22 @@ public record GitShortlogOptions : GitOptions public string? MaxParents { get; set; } [BooleanCommandSwitch("--no-min-parents")] - public bool? NoMinParents { get; set; } + public virtual bool? NoMinParents { get; set; } [BooleanCommandSwitch("--no-max-parents")] - public bool? NoMaxParents { get; set; } + public virtual bool? NoMaxParents { get; set; } [BooleanCommandSwitch("--first-parent")] - public bool? FirstParent { get; set; } + public virtual bool? FirstParent { get; set; } [BooleanCommandSwitch("--exclude-first-parent-only")] - public bool? ExcludeFirstParentOnly { get; set; } + public virtual bool? ExcludeFirstParentOnly { get; set; } [BooleanCommandSwitch("--not")] - public bool? Not { get; set; } + public virtual bool? Not { get; set; } [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } [CommandEqualsSeparatorSwitch("--branches")] public string? Branches { get; set; } @@ -131,67 +131,67 @@ public record GitShortlogOptions : GitOptions public string? Exclude { get; set; } [BooleanCommandSwitch("--exclude-hidden")] - public bool? ExcludeHidden { get; set; } + public virtual bool? ExcludeHidden { get; set; } [BooleanCommandSwitch("--reflog")] - public bool? Reflog { get; set; } + public virtual bool? Reflog { get; set; } [BooleanCommandSwitch("--alternate-refs")] - public bool? AlternateRefs { get; set; } + public virtual bool? AlternateRefs { get; set; } [BooleanCommandSwitch("--single-worktree")] - public bool? SingleWorktree { get; set; } + public virtual bool? SingleWorktree { get; set; } [BooleanCommandSwitch("--ignore-missing")] - public bool? IgnoreMissing { get; set; } + public virtual bool? IgnoreMissing { get; set; } [BooleanCommandSwitch("--bisect")] - public bool? Bisect { get; set; } + public virtual bool? Bisect { get; set; } [BooleanCommandSwitch("--stdin")] - public bool? Stdin { get; set; } + public virtual bool? Stdin { get; set; } [BooleanCommandSwitch("--cherry-mark")] - public bool? CherryMark { get; set; } + public virtual bool? CherryMark { get; set; } [BooleanCommandSwitch("--cherry-pick")] - public bool? CherryPick { get; set; } + public virtual bool? CherryPick { get; set; } [BooleanCommandSwitch("--left-only")] - public bool? LeftOnly { get; set; } + public virtual bool? LeftOnly { get; set; } [BooleanCommandSwitch("--right-only")] - public bool? RightOnly { get; set; } + public virtual bool? RightOnly { get; set; } [BooleanCommandSwitch("--cherry")] - public bool? Cherry { get; set; } + public virtual bool? Cherry { get; set; } [BooleanCommandSwitch("--walk-reflogs")] - public bool? WalkReflogs { get; set; } + public virtual bool? WalkReflogs { get; set; } [BooleanCommandSwitch("--merge")] - public bool? Merge { get; set; } + public virtual bool? Merge { get; set; } [BooleanCommandSwitch("--boundary")] - public bool? Boundary { get; set; } + public virtual bool? Boundary { get; set; } [BooleanCommandSwitch("--simplify-by-decoration")] - public bool? SimplifyByDecoration { get; set; } + public virtual bool? SimplifyByDecoration { get; set; } [BooleanCommandSwitch("--show-pulls")] - public bool? ShowPulls { get; set; } + public virtual bool? ShowPulls { get; set; } [BooleanCommandSwitch("--full-history")] - public bool? FullHistory { get; set; } + public virtual bool? FullHistory { get; set; } [BooleanCommandSwitch("--dense")] - public bool? Dense { get; set; } + public virtual bool? Dense { get; set; } [BooleanCommandSwitch("--sparse")] - public bool? Sparse { get; set; } + public virtual bool? Sparse { get; set; } [BooleanCommandSwitch("--simplify-merges")] - public bool? SimplifyMerges { get; set; } + public virtual bool? SimplifyMerges { get; set; } [CommandEqualsSeparatorSwitch("--ancestry-path")] public string? AncestryPath { get; set; } diff --git a/src/ModularPipelines.Git/Options/GitShowOptions.cs b/src/ModularPipelines.Git/Options/GitShowOptions.cs index 7cf4500152..1262bd27c1 100644 --- a/src/ModularPipelines.Git/Options/GitShowOptions.cs +++ b/src/ModularPipelines.Git/Options/GitShowOptions.cs @@ -14,13 +14,13 @@ public record GitShowOptions : GitOptions public string? Format { get; set; } [BooleanCommandSwitch("--abbrev-commit")] - public bool? AbbrevCommit { get; set; } + public virtual bool? AbbrevCommit { get; set; } [BooleanCommandSwitch("--no-abbrev-commit")] - public bool? NoAbbrevCommit { get; set; } + public virtual bool? NoAbbrevCommit { get; set; } [BooleanCommandSwitch("--oneline")] - public bool? Oneline { get; set; } + public virtual bool? Oneline { get; set; } [CommandEqualsSeparatorSwitch("--encoding")] public string? Encoding { get; set; } @@ -29,49 +29,49 @@ public record GitShowOptions : GitOptions public string? ExpandTabs { get; set; } [BooleanCommandSwitch("--no-expand-tabs")] - public bool? NoExpandTabs { get; set; } + public virtual bool? NoExpandTabs { get; set; } [CommandEqualsSeparatorSwitch("--notes")] public string? Notes { get; set; } [BooleanCommandSwitch("--no-notes")] - public bool? NoNotes { get; set; } + public virtual bool? NoNotes { get; set; } [CommandEqualsSeparatorSwitch("--show-notes")] public string? ShowNotes { get; set; } [BooleanCommandSwitch("--no-standard-notes")] - public bool? NoStandardNotes { get; set; } + public virtual bool? NoStandardNotes { get; set; } [BooleanCommandSwitch("--standard-notes")] - public bool? StandardNotes { get; set; } + public virtual bool? StandardNotes { get; set; } [BooleanCommandSwitch("--show-signature")] - public bool? ShowSignature { get; set; } + public virtual bool? ShowSignature { get; set; } [BooleanCommandSwitch("--patch")] - public bool? Patch { get; set; } + public virtual bool? Patch { get; set; } [BooleanCommandSwitch("--no-patch")] - public bool? NoPatch { get; set; } + public virtual bool? NoPatch { get; set; } [BooleanCommandSwitch("--diff-merges")] - public bool? DiffMerges { get; set; } + public virtual bool? DiffMerges { get; set; } [BooleanCommandSwitch("--no-diff-merges")] - public bool? NoDiffMerges { get; set; } + public virtual bool? NoDiffMerges { get; set; } [BooleanCommandSwitch("--remerge-diff")] - public bool? RemergeDiff { get; set; } + public virtual bool? RemergeDiff { get; set; } [BooleanCommandSwitch("--c")] - public bool? C { get; set; } + public virtual bool? C { get; set; } [BooleanCommandSwitch("--cc")] - public bool? Cc { get; set; } + public virtual bool? Cc { get; set; } [BooleanCommandSwitch("--combined-all-paths")] - public bool? CombinedAllPaths { get; set; } + public virtual bool? CombinedAllPaths { get; set; } [CommandEqualsSeparatorSwitch("--unified")] public string? Unified { get; set; } @@ -89,64 +89,64 @@ public record GitShowOptions : GitOptions public string? OutputIndicatorContext { get; set; } [BooleanCommandSwitch("--raw")] - public bool? Raw { get; set; } + public virtual bool? Raw { get; set; } [BooleanCommandSwitch("--patch-with-raw")] - public bool? PatchWithRaw { get; set; } + public virtual bool? PatchWithRaw { get; set; } [BooleanCommandSwitch("--indent-heuristic")] - public bool? IndentHeuristic { get; set; } + public virtual bool? IndentHeuristic { get; set; } [BooleanCommandSwitch("--no-indent-heuristic")] - public bool? NoIndentHeuristic { get; set; } + public virtual bool? NoIndentHeuristic { get; set; } [BooleanCommandSwitch("--minimal")] - public bool? Minimal { get; set; } + public virtual bool? Minimal { get; set; } [BooleanCommandSwitch("--patience")] - public bool? Patience { get; set; } + public virtual bool? Patience { get; set; } [BooleanCommandSwitch("--histogram")] - public bool? Histogram { get; set; } + public virtual bool? Histogram { get; set; } [CommandEqualsSeparatorSwitch("--anchored")] public string? Anchored { get; set; } [BooleanCommandSwitch("--diff-algorithm")] - public bool? DiffAlgorithm { get; set; } + public virtual bool? DiffAlgorithm { get; set; } [CommandEqualsSeparatorSwitch("--stat")] public string? Stat { get; set; } [BooleanCommandSwitch("--compact-summary")] - public bool? CompactSummary { get; set; } + public virtual bool? CompactSummary { get; set; } [BooleanCommandSwitch("--numstat")] - public bool? Numstat { get; set; } + public virtual bool? Numstat { get; set; } [BooleanCommandSwitch("--shortstat")] - public bool? Shortstat { get; set; } + public virtual bool? Shortstat { get; set; } [CommandEqualsSeparatorSwitch("--dirstat")] public string? Dirstat { get; set; } [BooleanCommandSwitch("--cumulative")] - public bool? Cumulative { get; set; } + public virtual bool? Cumulative { get; set; } [CommandEqualsSeparatorSwitch("--dirstat-by-file")] public string? DirstatByFile { get; set; } [BooleanCommandSwitch("--summary")] - public bool? Summary { get; set; } + public virtual bool? Summary { get; set; } [BooleanCommandSwitch("--patch-with-stat")] - public bool? PatchWithStat { get; set; } + public virtual bool? PatchWithStat { get; set; } [BooleanCommandSwitch("--name-only")] - public bool? NameOnly { get; set; } + public virtual bool? NameOnly { get; set; } [BooleanCommandSwitch("--name-status")] - public bool? NameStatus { get; set; } + public virtual bool? NameStatus { get; set; } [CommandEqualsSeparatorSwitch("--submodule")] public string? Submodule { get; set; } @@ -155,19 +155,19 @@ public record GitShowOptions : GitOptions public string? Color { get; set; } [BooleanCommandSwitch("--no-color")] - public bool? NoColor { get; set; } + public virtual bool? NoColor { get; set; } [CommandEqualsSeparatorSwitch("--color-moved")] public string? ColorMoved { get; set; } [BooleanCommandSwitch("--no-color-moved")] - public bool? NoColorMoved { get; set; } + public virtual bool? NoColorMoved { get; set; } [CommandEqualsSeparatorSwitch("--color-moved-ws")] public string? ColorMovedWs { get; set; } [BooleanCommandSwitch("--no-color-moved-ws")] - public bool? NoColorMovedWs { get; set; } + public virtual bool? NoColorMovedWs { get; set; } [CommandEqualsSeparatorSwitch("--word-diff")] public string? WordDiff { get; set; } @@ -179,25 +179,25 @@ public record GitShowOptions : GitOptions public string? ColorWords { get; set; } [BooleanCommandSwitch("--no-renames")] - public bool? NoRenames { get; set; } + public virtual bool? NoRenames { get; set; } [BooleanCommandSwitch("--no-rename-empty")] - public bool? NoRenameEmpty { get; set; } + public virtual bool? NoRenameEmpty { get; set; } [BooleanCommandSwitch("--rename-empty")] - public bool? RenameEmpty { get; set; } + public virtual bool? RenameEmpty { get; set; } [BooleanCommandSwitch("--check")] - public bool? Check { get; set; } + public virtual bool? Check { get; set; } [CommandEqualsSeparatorSwitch("--ws-error-highlight")] public string? WsErrorHighlight { get; set; } [BooleanCommandSwitch("--full-index")] - public bool? FullIndex { get; set; } + public virtual bool? FullIndex { get; set; } [BooleanCommandSwitch("--binary")] - public bool? Binary { get; set; } + public virtual bool? Binary { get; set; } [CommandEqualsSeparatorSwitch("--abbrev")] public string? Abbrev { get; set; } @@ -212,22 +212,22 @@ public record GitShowOptions : GitOptions public string? FindCopies { get; set; } [BooleanCommandSwitch("--find-copies-harder")] - public bool? FindCopiesHarder { get; set; } + public virtual bool? FindCopiesHarder { get; set; } [BooleanCommandSwitch("--irreversible-delete")] - public bool? IrreversibleDelete { get; set; } + public virtual bool? IrreversibleDelete { get; set; } [BooleanCommandSwitch("--diff-filter")] - public bool? DiffFilter { get; set; } + public virtual bool? DiffFilter { get; set; } [CommandEqualsSeparatorSwitch("--find-object")] public string? FindObject { get; set; } [BooleanCommandSwitch("--pickaxe-all")] - public bool? PickaxeAll { get; set; } + public virtual bool? PickaxeAll { get; set; } [BooleanCommandSwitch("--pickaxe-regex")] - public bool? PickaxeRegex { get; set; } + public virtual bool? PickaxeRegex { get; set; } [CommandEqualsSeparatorSwitch("--skip-to")] public string? SkipTo { get; set; } @@ -239,25 +239,25 @@ public record GitShowOptions : GitOptions public string? Relative { get; set; } [BooleanCommandSwitch("--no-relative")] - public bool? NoRelative { get; set; } + public virtual bool? NoRelative { get; set; } [BooleanCommandSwitch("--text")] - public bool? Text { get; set; } + public virtual bool? Text { get; set; } [BooleanCommandSwitch("--ignore-cr-at-eol")] - public bool? IgnoreCrAtEol { get; set; } + public virtual bool? IgnoreCrAtEol { get; set; } [BooleanCommandSwitch("--ignore-space-at-eol")] - public bool? IgnoreSpaceAtEol { get; set; } + public virtual bool? IgnoreSpaceAtEol { get; set; } [BooleanCommandSwitch("--ignore-space-change")] - public bool? IgnoreSpaceChange { get; set; } + public virtual bool? IgnoreSpaceChange { get; set; } [BooleanCommandSwitch("--ignore-all-space")] - public bool? IgnoreAllSpace { get; set; } + public virtual bool? IgnoreAllSpace { get; set; } [BooleanCommandSwitch("--ignore-blank-lines")] - public bool? IgnoreBlankLines { get; set; } + public virtual bool? IgnoreBlankLines { get; set; } [CommandEqualsSeparatorSwitch("--ignore-matching-lines")] public string? IgnoreMatchingLines { get; set; } @@ -266,19 +266,19 @@ public record GitShowOptions : GitOptions public string? InterHunkContext { get; set; } [BooleanCommandSwitch("--function-context")] - public bool? FunctionContext { get; set; } + public virtual bool? FunctionContext { get; set; } [BooleanCommandSwitch("--ext-diff")] - public bool? ExtDiff { get; set; } + public virtual bool? ExtDiff { get; set; } [BooleanCommandSwitch("--no-ext-diff")] - public bool? NoExtDiff { get; set; } + public virtual bool? NoExtDiff { get; set; } [BooleanCommandSwitch("--textconv")] - public bool? Textconv { get; set; } + public virtual bool? Textconv { get; set; } [BooleanCommandSwitch("--no-textconv")] - public bool? NoTextconv { get; set; } + public virtual bool? NoTextconv { get; set; } [CommandEqualsSeparatorSwitch("--ignore-submodules")] public string? IgnoreSubmodules { get; set; } @@ -290,14 +290,14 @@ public record GitShowOptions : GitOptions public string? DstPrefix { get; set; } [BooleanCommandSwitch("--no-prefix")] - public bool? NoPrefix { get; set; } + public virtual bool? NoPrefix { get; set; } [BooleanCommandSwitch("--default-prefix")] - public bool? DefaultPrefix { get; set; } + public virtual bool? DefaultPrefix { get; set; } [CommandEqualsSeparatorSwitch("--line-prefix")] public string? LinePrefix { get; set; } [BooleanCommandSwitch("--ita-invisible-in-index")] - public bool? ItaInvisibleInIndex { get; set; } + public virtual bool? ItaInvisibleInIndex { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Git/Options/GitShowRefOptions.cs b/src/ModularPipelines.Git/Options/GitShowRefOptions.cs index 0737e0b5aa..3f34892ac6 100644 --- a/src/ModularPipelines.Git/Options/GitShowRefOptions.cs +++ b/src/ModularPipelines.Git/Options/GitShowRefOptions.cs @@ -8,28 +8,28 @@ namespace ModularPipelines.Git.Options; public record GitShowRefOptions : GitOptions { [BooleanCommandSwitch("--head")] - public bool? Head { get; set; } + public virtual bool? Head { get; set; } [BooleanCommandSwitch("--heads")] - public bool? Heads { get; set; } + public virtual bool? Heads { get; set; } [BooleanCommandSwitch("--tags")] - public bool? Tags { get; set; } + public virtual bool? Tags { get; set; } [BooleanCommandSwitch("--dereference")] - public bool? Dereference { get; set; } + public virtual bool? Dereference { get; set; } [CommandEqualsSeparatorSwitch("--hash")] public string? Hash { get; set; } [BooleanCommandSwitch("--verify")] - public bool? Verify { get; set; } + public virtual bool? Verify { get; set; } [CommandEqualsSeparatorSwitch("--abbrev")] public string? Abbrev { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } [CommandEqualsSeparatorSwitch("--exclude-existing")] public string? ExcludeExisting { get; set; } diff --git a/src/ModularPipelines.Git/Options/GitStashOptions.cs b/src/ModularPipelines.Git/Options/GitStashOptions.cs index efc9e66fc4..36260336a4 100644 --- a/src/ModularPipelines.Git/Options/GitStashOptions.cs +++ b/src/ModularPipelines.Git/Options/GitStashOptions.cs @@ -8,38 +8,38 @@ namespace ModularPipelines.Git.Options; public record GitStashOptions : GitOptions { [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } [BooleanCommandSwitch("--include-untracked")] - public bool? IncludeUntracked { get; set; } + public virtual bool? IncludeUntracked { get; set; } [BooleanCommandSwitch("--no-include-untracked")] - public bool? NoIncludeUntracked { get; set; } + public virtual bool? NoIncludeUntracked { get; set; } [BooleanCommandSwitch("--only-untracked")] - public bool? OnlyUntracked { get; set; } + public virtual bool? OnlyUntracked { get; set; } [BooleanCommandSwitch("--index")] - public bool? Index { get; set; } + public virtual bool? Index { get; set; } [BooleanCommandSwitch("--keep-index")] - public bool? KeepIndex { get; set; } + public virtual bool? KeepIndex { get; set; } [BooleanCommandSwitch("--no-keep-index")] - public bool? NoKeepIndex { get; set; } + public virtual bool? NoKeepIndex { get; set; } [BooleanCommandSwitch("--patch")] - public bool? Patch { get; set; } + public virtual bool? Patch { get; set; } [BooleanCommandSwitch("--staged")] - public bool? Staged { get; set; } + public virtual bool? Staged { get; set; } [CommandEqualsSeparatorSwitch("--pathspec-from-file")] public string? PathspecFromFile { get; set; } [BooleanCommandSwitch("--pathspec-file-nul")] - public bool? PathspecFileNul { get; set; } + public virtual bool? PathspecFileNul { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Git/Options/GitStatusOptions.cs b/src/ModularPipelines.Git/Options/GitStatusOptions.cs index a098f50eae..542db2d01b 100644 --- a/src/ModularPipelines.Git/Options/GitStatusOptions.cs +++ b/src/ModularPipelines.Git/Options/GitStatusOptions.cs @@ -8,22 +8,22 @@ namespace ModularPipelines.Git.Options; public record GitStatusOptions : GitOptions { [BooleanCommandSwitch("--short")] - public bool? Short { get; set; } + public virtual bool? Short { get; set; } [BooleanCommandSwitch("--branch")] - public bool? Branch { get; set; } + public virtual bool? Branch { get; set; } [BooleanCommandSwitch("--show-stash")] - public bool? ShowStash { get; set; } + public virtual bool? ShowStash { get; set; } [CommandEqualsSeparatorSwitch("--porcelain")] public string? Porcelain { get; set; } [BooleanCommandSwitch("--long")] - public bool? Long { get; set; } + public virtual bool? Long { get; set; } [BooleanCommandSwitch("--verbose")] - public bool? Verbose { get; set; } + public virtual bool? Verbose { get; set; } [CommandEqualsSeparatorSwitch("--untracked-files")] public string? UntrackedFiles { get; set; } @@ -38,19 +38,19 @@ public record GitStatusOptions : GitOptions public string? Column { get; set; } [BooleanCommandSwitch("--no-column")] - public bool? NoColumn { get; set; } + public virtual bool? NoColumn { get; set; } [BooleanCommandSwitch("--ahead-behind")] - public bool? AheadBehind { get; set; } + public virtual bool? AheadBehind { get; set; } [BooleanCommandSwitch("--no-ahead-behind")] - public bool? NoAheadBehind { get; set; } + public virtual bool? NoAheadBehind { get; set; } [BooleanCommandSwitch("--renames")] - public bool? Renames { get; set; } + public virtual bool? Renames { get; set; } [BooleanCommandSwitch("--no-renames")] - public bool? NoRenames { get; set; } + public virtual bool? NoRenames { get; set; } [CommandEqualsSeparatorSwitch("--find-renames")] public string? FindRenames { get; set; } diff --git a/src/ModularPipelines.Git/Options/GitSubmoduleOptions.cs b/src/ModularPipelines.Git/Options/GitSubmoduleOptions.cs index 0f514e43fb..aee62e43ca 100644 --- a/src/ModularPipelines.Git/Options/GitSubmoduleOptions.cs +++ b/src/ModularPipelines.Git/Options/GitSubmoduleOptions.cs @@ -8,74 +8,74 @@ namespace ModularPipelines.Git.Options; public record GitSubmoduleOptions : GitOptions { [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } [BooleanCommandSwitch("--progress")] - public bool? Progress { get; set; } + public virtual bool? Progress { get; set; } [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } [CommandEqualsSeparatorSwitch("--branch")] public string? Branch { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [BooleanCommandSwitch("--cached")] - public bool? Cached { get; set; } + public virtual bool? Cached { get; set; } [BooleanCommandSwitch("--files")] - public bool? Files { get; set; } + public virtual bool? Files { get; set; } [BooleanCommandSwitch("--summary-limit")] - public bool? SummaryLimit { get; set; } + public virtual bool? SummaryLimit { get; set; } [BooleanCommandSwitch("--remote")] - public bool? Remote { get; set; } + public virtual bool? Remote { get; set; } [BooleanCommandSwitch("--no-fetch")] - public bool? NoFetch { get; set; } + public virtual bool? NoFetch { get; set; } [BooleanCommandSwitch("--checkout")] - public bool? Checkout { get; set; } + public virtual bool? Checkout { get; set; } [BooleanCommandSwitch("--merge")] - public bool? Merge { get; set; } + public virtual bool? Merge { get; set; } [BooleanCommandSwitch("--rebase")] - public bool? Rebase { get; set; } + public virtual bool? Rebase { get; set; } [BooleanCommandSwitch("--init")] - public bool? Init { get; set; } + public virtual bool? Init { get; set; } [BooleanCommandSwitch("--name")] - public bool? Name { get; set; } + public virtual bool? Name { get; set; } [CommandEqualsSeparatorSwitch("--reference")] public string? Reference { get; set; } [BooleanCommandSwitch("--dissociate")] - public bool? Dissociate { get; set; } + public virtual bool? Dissociate { get; set; } [BooleanCommandSwitch("--recursive")] - public bool? Recursive { get; set; } + public virtual bool? Recursive { get; set; } [BooleanCommandSwitch("--depth")] - public bool? Depth { get; set; } + public virtual bool? Depth { get; set; } [BooleanCommandSwitch("--no-recommend-shallow")] - public bool? NoRecommendShallow { get; set; } + public virtual bool? NoRecommendShallow { get; set; } [BooleanCommandSwitch("--recommend-shallow")] - public bool? RecommendShallow { get; set; } + public virtual bool? RecommendShallow { get; set; } [CommandEqualsSeparatorSwitch("--jobs")] public string? Jobs { get; set; } [BooleanCommandSwitch("--no-single-branch")] - public bool? NoSingleBranch { get; set; } + public virtual bool? NoSingleBranch { get; set; } [BooleanCommandSwitch("--single-branch")] - public bool? SingleBranch { get; set; } + public virtual bool? SingleBranch { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Git/Options/GitSvnOptions.cs b/src/ModularPipelines.Git/Options/GitSvnOptions.cs index 76107e7e94..94b6354ea7 100644 --- a/src/ModularPipelines.Git/Options/GitSvnOptions.cs +++ b/src/ModularPipelines.Git/Options/GitSvnOptions.cs @@ -17,16 +17,16 @@ public record GitSvnOptions : GitOptions public string? Branches { get; set; } [BooleanCommandSwitch("--stdlayout")] - public bool? Stdlayout { get; set; } + public virtual bool? Stdlayout { get; set; } [BooleanCommandSwitch("--no-metadata")] - public bool? NoMetadata { get; set; } + public virtual bool? NoMetadata { get; set; } [BooleanCommandSwitch("--use-svm-props")] - public bool? UseSvmProps { get; set; } + public virtual bool? UseSvmProps { get; set; } [BooleanCommandSwitch("--use-svnsync-props")] - public bool? UseSvnsyncProps { get; set; } + public virtual bool? UseSvnsyncProps { get; set; } [CommandEqualsSeparatorSwitch("--rewrite-root")] public string? RewriteRoot { get; set; } @@ -50,28 +50,28 @@ public record GitSvnOptions : GitOptions public string? IncludePaths { get; set; } [BooleanCommandSwitch("--no-minimize-url")] - public bool? NoMinimizeUrl { get; set; } + public virtual bool? NoMinimizeUrl { get; set; } [BooleanCommandSwitch("--localtime")] - public bool? Localtime { get; set; } + public virtual bool? Localtime { get; set; } [BooleanCommandSwitch("--parent")] - public bool? Parent { get; set; } + public virtual bool? Parent { get; set; } [CommandEqualsSeparatorSwitch("--log-window-size")] public string? LogWindowSize { get; set; } [BooleanCommandSwitch("--preserve-empty-dirs")] - public bool? PreserveEmptyDirs { get; set; } + public virtual bool? PreserveEmptyDirs { get; set; } [CommandEqualsSeparatorSwitch("--placeholder-filename")] public string? PlaceholderFilename { get; set; } [BooleanCommandSwitch("--local")] - public bool? Local { get; set; } + public virtual bool? Local { get; set; } [BooleanCommandSwitch("--no-rebase")] - public bool? NoRebase { get; set; } + public virtual bool? NoRebase { get; set; } [CommandEqualsSeparatorSwitch("--commit-url")] public string? CommitUrl { get; set; } @@ -80,67 +80,67 @@ public record GitSvnOptions : GitOptions public string? Mergeinfo { get; set; } [BooleanCommandSwitch("--interactive")] - public bool? Interactive { get; set; } + public virtual bool? Interactive { get; set; } [BooleanCommandSwitch("--message")] - public bool? Message { get; set; } + public virtual bool? Message { get; set; } [BooleanCommandSwitch("--tag")] - public bool? Tag { get; set; } + public virtual bool? Tag { get; set; } [CommandEqualsSeparatorSwitch("--destination")] public string? Destination { get; set; } [BooleanCommandSwitch("--parents")] - public bool? Parents { get; set; } + public virtual bool? Parents { get; set; } [CommandEqualsSeparatorSwitch("--revision")] public string? Revision { get; set; } [BooleanCommandSwitch("--verbose")] - public bool? Verbose { get; set; } + public virtual bool? Verbose { get; set; } [CommandEqualsSeparatorSwitch("--limit")] public string? Limit { get; set; } [BooleanCommandSwitch("--incremental")] - public bool? Incremental { get; set; } + public virtual bool? Incremental { get; set; } [BooleanCommandSwitch("--show-commit")] - public bool? ShowCommit { get; set; } + public virtual bool? ShowCommit { get; set; } [BooleanCommandSwitch("--oneline")] - public bool? Oneline { get; set; } + public virtual bool? Oneline { get; set; } [BooleanCommandSwitch("--git-format")] - public bool? GitFormat { get; set; } + public virtual bool? GitFormat { get; set; } [BooleanCommandSwitch("--before")] - public bool? Before { get; set; } + public virtual bool? Before { get; set; } [BooleanCommandSwitch("--after")] - public bool? After { get; set; } + public virtual bool? After { get; set; } [CommandEqualsSeparatorSwitch("--file")] public string? File { get; set; } [BooleanCommandSwitch("--shared")] - public bool? Shared { get; set; } + public virtual bool? Shared { get; set; } [CommandEqualsSeparatorSwitch("--template")] public string? Template { get; set; } [BooleanCommandSwitch("--stdin")] - public bool? Stdin { get; set; } + public virtual bool? Stdin { get; set; } [BooleanCommandSwitch("--rmdir")] - public bool? Rmdir { get; set; } + public virtual bool? Rmdir { get; set; } [BooleanCommandSwitch("--edit")] - public bool? Edit { get; set; } + public virtual bool? Edit { get; set; } [BooleanCommandSwitch("--find-copies-harder")] - public bool? FindCopiesHarder { get; set; } + public virtual bool? FindCopiesHarder { get; set; } [CommandEqualsSeparatorSwitch("--authors-file")] public string? AuthorsFile { get; set; } @@ -149,25 +149,25 @@ public record GitSvnOptions : GitOptions public string? AuthorsProg { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } [BooleanCommandSwitch("--merge")] - public bool? Merge { get; set; } + public virtual bool? Merge { get; set; } [CommandEqualsSeparatorSwitch("--strategy")] public string? Strategy { get; set; } [BooleanCommandSwitch("--rebase-merges")] - public bool? RebaseMerges { get; set; } + public virtual bool? RebaseMerges { get; set; } [BooleanCommandSwitch("--dry-run")] - public bool? DryRun { get; set; } + public virtual bool? DryRun { get; set; } [BooleanCommandSwitch("--use-log-author")] - public bool? UseLogAuthor { get; set; } + public virtual bool? UseLogAuthor { get; set; } [BooleanCommandSwitch("--add-author-from")] - public bool? AddAuthorFrom { get; set; } + public virtual bool? AddAuthorFrom { get; set; } [CommandEqualsSeparatorSwitch("--id")] public string? Id { get; set; } @@ -176,5 +176,5 @@ public record GitSvnOptions : GitOptions public string? SvnRemote { get; set; } [BooleanCommandSwitch("--follow-parent")] - public bool? FollowParent { get; set; } + public virtual bool? FollowParent { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Git/Options/GitSwitchOptions.cs b/src/ModularPipelines.Git/Options/GitSwitchOptions.cs index d133a76f55..52ca9dc71d 100644 --- a/src/ModularPipelines.Git/Options/GitSwitchOptions.cs +++ b/src/ModularPipelines.Git/Options/GitSwitchOptions.cs @@ -14,50 +14,50 @@ public record GitSwitchOptions : GitOptions public string? ForceCreate { get; set; } [BooleanCommandSwitch("--detach")] - public bool? Detach { get; set; } + public virtual bool? Detach { get; set; } [BooleanCommandSwitch("--guess")] - public bool? Guess { get; set; } + public virtual bool? Guess { get; set; } [BooleanCommandSwitch("--no-guess")] - public bool? NoGuess { get; set; } + public virtual bool? NoGuess { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [BooleanCommandSwitch("--discard-changes")] - public bool? DiscardChanges { get; set; } + public virtual bool? DiscardChanges { get; set; } [BooleanCommandSwitch("--merge")] - public bool? Merge { get; set; } + public virtual bool? Merge { get; set; } [CommandEqualsSeparatorSwitch("--conflict")] public string? Conflict { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } [BooleanCommandSwitch("--progress")] - public bool? Progress { get; set; } + public virtual bool? Progress { get; set; } [BooleanCommandSwitch("--no-progress")] - public bool? NoProgress { get; set; } + public virtual bool? NoProgress { get; set; } [BooleanCommandSwitch("--track")] - public bool? Track { get; set; } + public virtual bool? Track { get; set; } [BooleanCommandSwitch("--no-track")] - public bool? NoTrack { get; set; } + public virtual bool? NoTrack { get; set; } [CommandEqualsSeparatorSwitch("--orphan")] public string? Orphan { get; set; } [BooleanCommandSwitch("--ignore-other-worktrees")] - public bool? IgnoreOtherWorktrees { get; set; } + public virtual bool? IgnoreOtherWorktrees { get; set; } [BooleanCommandSwitch("--recurse-submodules")] - public bool? RecurseSubmodules { get; set; } + public virtual bool? RecurseSubmodules { get; set; } [BooleanCommandSwitch("--no-recurse-submodules")] - public bool? NoRecurseSubmodules { get; set; } + public virtual bool? NoRecurseSubmodules { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Git/Options/GitSymbolicRefOptions.cs b/src/ModularPipelines.Git/Options/GitSymbolicRefOptions.cs index a26eb7bacc..4f09c2a85d 100644 --- a/src/ModularPipelines.Git/Options/GitSymbolicRefOptions.cs +++ b/src/ModularPipelines.Git/Options/GitSymbolicRefOptions.cs @@ -8,17 +8,17 @@ namespace ModularPipelines.Git.Options; public record GitSymbolicRefOptions : GitOptions { [BooleanCommandSwitch("--delete")] - public bool? Delete { get; set; } + public virtual bool? Delete { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } [BooleanCommandSwitch("--short")] - public bool? Short { get; set; } + public virtual bool? Short { get; set; } [BooleanCommandSwitch("--recurse")] - public bool? Recurse { get; set; } + public virtual bool? Recurse { get; set; } [BooleanCommandSwitch("--no-recurse")] - public bool? NoRecurse { get; set; } + public virtual bool? NoRecurse { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Git/Options/GitTagOptions.cs b/src/ModularPipelines.Git/Options/GitTagOptions.cs index a81a40863d..9a330d33c9 100644 --- a/src/ModularPipelines.Git/Options/GitTagOptions.cs +++ b/src/ModularPipelines.Git/Options/GitTagOptions.cs @@ -8,28 +8,28 @@ namespace ModularPipelines.Git.Options; public record GitTagOptions : GitOptions { [BooleanCommandSwitch("--annotate")] - public bool? Annotate { get; set; } + public virtual bool? Annotate { get; set; } [BooleanCommandSwitch("--sign")] - public bool? Sign { get; set; } + public virtual bool? Sign { get; set; } [BooleanCommandSwitch("--no-sign")] - public bool? NoSign { get; set; } + public virtual bool? NoSign { get; set; } [CommandEqualsSeparatorSwitch("--local-user")] public string? LocalUser { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [BooleanCommandSwitch("--delete")] - public bool? Delete { get; set; } + public virtual bool? Delete { get; set; } [BooleanCommandSwitch("--verify")] - public bool? Verify { get; set; } + public virtual bool? Verify { get; set; } [BooleanCommandSwitch("--list")] - public bool? List { get; set; } + public virtual bool? List { get; set; } [CommandEqualsSeparatorSwitch("--sort")] public string? Sort { get; set; } @@ -38,16 +38,16 @@ public record GitTagOptions : GitOptions public string? Color { get; set; } [BooleanCommandSwitch("--ignore-case")] - public bool? IgnoreCase { get; set; } + public virtual bool? IgnoreCase { get; set; } [BooleanCommandSwitch("--omit-empty")] - public bool? OmitEmpty { get; set; } + public virtual bool? OmitEmpty { get; set; } [CommandEqualsSeparatorSwitch("--column")] public string? Column { get; set; } [BooleanCommandSwitch("--no-column")] - public bool? NoColumn { get; set; } + public virtual bool? NoColumn { get; set; } [CommandEqualsSeparatorSwitch("--contains")] public string? Contains { get; set; } @@ -71,13 +71,13 @@ public record GitTagOptions : GitOptions public string? File { get; set; } [BooleanCommandSwitch("--edit")] - public bool? Edit { get; set; } + public virtual bool? Edit { get; set; } [CommandEqualsSeparatorSwitch("--cleanup")] public string? Cleanup { get; set; } [BooleanCommandSwitch("--create-reflog")] - public bool? CreateReflog { get; set; } + public virtual bool? CreateReflog { get; set; } [CommandEqualsSeparatorSwitch("--format")] public string? Format { get; set; } diff --git a/src/ModularPipelines.Git/Options/GitUpdateIndexOptions.cs b/src/ModularPipelines.Git/Options/GitUpdateIndexOptions.cs index 42c9d9563f..bb1d4f7fcd 100644 --- a/src/ModularPipelines.Git/Options/GitUpdateIndexOptions.cs +++ b/src/ModularPipelines.Git/Options/GitUpdateIndexOptions.cs @@ -8,104 +8,104 @@ namespace ModularPipelines.Git.Options; public record GitUpdateIndexOptions : GitOptions { [BooleanCommandSwitch("--add")] - public bool? Add { get; set; } + public virtual bool? Add { get; set; } [BooleanCommandSwitch("--remove")] - public bool? Remove { get; set; } + public virtual bool? Remove { get; set; } [BooleanCommandSwitch("--refresh")] - public bool? Refresh { get; set; } + public virtual bool? Refresh { get; set; } [BooleanCommandSwitch("--ignore-submodules")] - public bool? IgnoreSubmodules { get; set; } + public virtual bool? IgnoreSubmodules { get; set; } [BooleanCommandSwitch("--unmerged")] - public bool? Unmerged { get; set; } + public virtual bool? Unmerged { get; set; } [BooleanCommandSwitch("--ignore-missing")] - public bool? IgnoreMissing { get; set; } + public virtual bool? IgnoreMissing { get; set; } [CommandEqualsSeparatorSwitch("--cacheinfo")] public string? Cacheinfo { get; set; } [BooleanCommandSwitch("--index-info")] - public bool? IndexInfo { get; set; } + public virtual bool? IndexInfo { get; set; } [BooleanCommandSwitch("--chmod")] - public bool? Chmod { get; set; } + public virtual bool? Chmod { get; set; } [BooleanCommandSwitch("--no-assume-unchanged")] - public bool? NoAssumeUnchanged { get; set; } + public virtual bool? NoAssumeUnchanged { get; set; } [BooleanCommandSwitch("--assume-unchanged")] - public bool? AssumeUnchanged { get; set; } + public virtual bool? AssumeUnchanged { get; set; } [BooleanCommandSwitch("--really-refresh")] - public bool? ReallyRefresh { get; set; } + public virtual bool? ReallyRefresh { get; set; } [BooleanCommandSwitch("--no-skip-worktree")] - public bool? NoSkipWorktree { get; set; } + public virtual bool? NoSkipWorktree { get; set; } [BooleanCommandSwitch("--skip-worktree")] - public bool? SkipWorktree { get; set; } + public virtual bool? SkipWorktree { get; set; } [BooleanCommandSwitch("--no-ignore-skip-worktree-entries")] - public bool? NoIgnoreSkipWorktreeEntries { get; set; } + public virtual bool? NoIgnoreSkipWorktreeEntries { get; set; } [BooleanCommandSwitch("--ignore-skip-worktree-entries")] - public bool? IgnoreSkipWorktreeEntries { get; set; } + public virtual bool? IgnoreSkipWorktreeEntries { get; set; } [BooleanCommandSwitch("--no-fsmonitor-valid")] - public bool? NoFsmonitorValid { get; set; } + public virtual bool? NoFsmonitorValid { get; set; } [BooleanCommandSwitch("--fsmonitor-valid")] - public bool? FsmonitorValid { get; set; } + public virtual bool? FsmonitorValid { get; set; } [BooleanCommandSwitch("--again")] - public bool? Again { get; set; } + public virtual bool? Again { get; set; } [BooleanCommandSwitch("--unresolve")] - public bool? Unresolve { get; set; } + public virtual bool? Unresolve { get; set; } [BooleanCommandSwitch("--info-only")] - public bool? InfoOnly { get; set; } + public virtual bool? InfoOnly { get; set; } [BooleanCommandSwitch("--force-remove")] - public bool? ForceRemove { get; set; } + public virtual bool? ForceRemove { get; set; } [BooleanCommandSwitch("--replace")] - public bool? Replace { get; set; } + public virtual bool? Replace { get; set; } [BooleanCommandSwitch("--stdin")] - public bool? Stdin { get; set; } + public virtual bool? Stdin { get; set; } [BooleanCommandSwitch("--verbose")] - public bool? Verbose { get; set; } + public virtual bool? Verbose { get; set; } [CommandEqualsSeparatorSwitch("--index-version")] public string? IndexVersion { get; set; } [BooleanCommandSwitch("--split-index")] - public bool? SplitIndex { get; set; } + public virtual bool? SplitIndex { get; set; } [BooleanCommandSwitch("--no-split-index")] - public bool? NoSplitIndex { get; set; } + public virtual bool? NoSplitIndex { get; set; } [BooleanCommandSwitch("--untracked-cache")] - public bool? UntrackedCache { get; set; } + public virtual bool? UntrackedCache { get; set; } [BooleanCommandSwitch("--no-untracked-cache")] - public bool? NoUntrackedCache { get; set; } + public virtual bool? NoUntrackedCache { get; set; } [BooleanCommandSwitch("--test-untracked-cache")] - public bool? TestUntrackedCache { get; set; } + public virtual bool? TestUntrackedCache { get; set; } [BooleanCommandSwitch("--force-untracked-cache")] - public bool? ForceUntrackedCache { get; set; } + public virtual bool? ForceUntrackedCache { get; set; } [BooleanCommandSwitch("--fsmonitor")] - public bool? Fsmonitor { get; set; } + public virtual bool? Fsmonitor { get; set; } [BooleanCommandSwitch("--no-fsmonitor")] - public bool? NoFsmonitor { get; set; } + public virtual bool? NoFsmonitor { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Git/Options/GitUpdateServerInfoOptions.cs b/src/ModularPipelines.Git/Options/GitUpdateServerInfoOptions.cs index 150fd6d16b..c1c18aee64 100644 --- a/src/ModularPipelines.Git/Options/GitUpdateServerInfoOptions.cs +++ b/src/ModularPipelines.Git/Options/GitUpdateServerInfoOptions.cs @@ -8,5 +8,5 @@ namespace ModularPipelines.Git.Options; public record GitUpdateServerInfoOptions : GitOptions { [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Git/Options/GitVerifyPackOptions.cs b/src/ModularPipelines.Git/Options/GitVerifyPackOptions.cs index b6f7eaa15b..f2e86ef6e1 100644 --- a/src/ModularPipelines.Git/Options/GitVerifyPackOptions.cs +++ b/src/ModularPipelines.Git/Options/GitVerifyPackOptions.cs @@ -8,8 +8,8 @@ namespace ModularPipelines.Git.Options; public record GitVerifyPackOptions : GitOptions { [BooleanCommandSwitch("--verbose")] - public bool? Verbose { get; set; } + public virtual bool? Verbose { get; set; } [BooleanCommandSwitch("--stat-only")] - public bool? StatOnly { get; set; } + public virtual bool? StatOnly { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Git/Options/GitWorktreeOptions.cs b/src/ModularPipelines.Git/Options/GitWorktreeOptions.cs index a56b2776ca..7484fdfca0 100644 --- a/src/ModularPipelines.Git/Options/GitWorktreeOptions.cs +++ b/src/ModularPipelines.Git/Options/GitWorktreeOptions.cs @@ -8,43 +8,43 @@ namespace ModularPipelines.Git.Options; public record GitWorktreeOptions : GitOptions { [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [BooleanCommandSwitch("--detach")] - public bool? Detach { get; set; } + public virtual bool? Detach { get; set; } [BooleanCommandSwitch("--no-checkout")] - public bool? NoCheckout { get; set; } + public virtual bool? NoCheckout { get; set; } [BooleanCommandSwitch("--checkout")] - public bool? Checkout { get; set; } + public virtual bool? Checkout { get; set; } [BooleanCommandSwitch("--no-guess-remote")] - public bool? NoGuessRemote { get; set; } + public virtual bool? NoGuessRemote { get; set; } [BooleanCommandSwitch("--guess-remote")] - public bool? GuessRemote { get; set; } + public virtual bool? GuessRemote { get; set; } [BooleanCommandSwitch("--no-track")] - public bool? NoTrack { get; set; } + public virtual bool? NoTrack { get; set; } [BooleanCommandSwitch("--track")] - public bool? Track { get; set; } + public virtual bool? Track { get; set; } [BooleanCommandSwitch("--lock")] - public bool? Lock { get; set; } + public virtual bool? Lock { get; set; } [BooleanCommandSwitch("--dry-run")] - public bool? DryRun { get; set; } + public virtual bool? DryRun { get; set; } [BooleanCommandSwitch("--porcelain")] - public bool? Porcelain { get; set; } + public virtual bool? Porcelain { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } [BooleanCommandSwitch("--verbose")] - public bool? Verbose { get; set; } + public virtual bool? Verbose { get; set; } [CommandEqualsSeparatorSwitch("--expire")] public string? Expire { get; set; } diff --git a/src/ModularPipelines.Git/Options/GitWriteTreeOptions.cs b/src/ModularPipelines.Git/Options/GitWriteTreeOptions.cs index 704bbfe500..51d1879a50 100644 --- a/src/ModularPipelines.Git/Options/GitWriteTreeOptions.cs +++ b/src/ModularPipelines.Git/Options/GitWriteTreeOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Git.Options; public record GitWriteTreeOptions : GitOptions { [BooleanCommandSwitch("--missing-ok")] - public bool? MissingOk { get; set; } + public virtual bool? MissingOk { get; set; } [CommandEqualsSeparatorSwitch("--prefix")] public string? Prefix { get; set; } diff --git a/src/ModularPipelines.Git/StaticGitInformation.cs b/src/ModularPipelines.Git/StaticGitInformation.cs index a78dad6cd0..ebf4a37dd6 100644 --- a/src/ModularPipelines.Git/StaticGitInformation.cs +++ b/src/ModularPipelines.Git/StaticGitInformation.cs @@ -80,7 +80,7 @@ public async Task InitializeAsync() { return; } - + int.TryParse(await GetOutput(new GitRevListOptions { Count = true, diff --git a/src/ModularPipelines.GitHub/GitHub.cs b/src/ModularPipelines.GitHub/GitHub.cs index 3dceed5ed3..93db758477 100644 --- a/src/ModularPipelines.GitHub/GitHub.cs +++ b/src/ModularPipelines.GitHub/GitHub.cs @@ -10,80 +10,80 @@ namespace ModularPipelines.GitHub; internal class GitHub : IGitHub { - private readonly GitHubOptions _options; - private readonly IModuleLoggerProvider _moduleLoggerProvider; - private readonly Lazy _client; - - public IGitHubClient Client => _client.Value; - - public IGitHubRepositoryInfo RepositoryInfo { get; } - - public IGitHubEnvironmentVariables EnvironmentVariables { get; } - - public GitHub( - IOptions options, - IGitHubEnvironmentVariables environmentVariables, - IGitHubRepositoryInfo gitHubRepositoryInfo, - IModuleLoggerProvider moduleLoggerProvider) - { - _options = options.Value; - _moduleLoggerProvider = moduleLoggerProvider; - EnvironmentVariables = environmentVariables; - - _client = new Lazy(InitializeClient); - RepositoryInfo = gitHubRepositoryInfo; - } - - public void StartConsoleLogGroup(string name) - { - LogToConsole(BuildSystemValues.GitHub.StartBlock(name)); - } - - public void EndConsoleLogGroup(string name) - { - LogToConsole(BuildSystemValues.GitHub.EndBlock); - } - - public void LogToConsole(string value) - { - _moduleLoggerProvider.GetLogger().LogToConsole(value); - } - - // PRIVATE METHODS - // -------------------------------------------------------------------------------- - - /// - /// Initializes the GitHub client. - /// - /// An instance of . - private IGitHubClient InitializeClient() - { - var token = _options.AccessToken - ?? EnvironmentVariables.Token - ?? throw new ArgumentException("No GitHub access token or GITHUB_TOKEN found in environment variables."); - - var connection = new Connection(new ProductHeaderValue("ModularPipelines"), - new HttpClientAdapter(() => - { - var moduleLogger = _moduleLoggerProvider.GetLogger(); - - return new RequestLoggingHttpHandler(moduleLogger) - { - InnerHandler = new ResponseLoggingHttpHandler(moduleLogger) - { - InnerHandler = new StatusCodeLoggingHttpHandler(moduleLogger) - { - InnerHandler = new HttpClientHandler(), - }, - }, - }; - })); + private readonly GitHubOptions _options; + private readonly IModuleLoggerProvider _moduleLoggerProvider; + private readonly Lazy _client; + + public IGitHubClient Client => _client.Value; + + public IGitHubRepositoryInfo RepositoryInfo { get; } + + public IGitHubEnvironmentVariables EnvironmentVariables { get; } + + public GitHub( + IOptions options, + IGitHubEnvironmentVariables environmentVariables, + IGitHubRepositoryInfo gitHubRepositoryInfo, + IModuleLoggerProvider moduleLoggerProvider) + { + _options = options.Value; + _moduleLoggerProvider = moduleLoggerProvider; + EnvironmentVariables = environmentVariables; + + _client = new Lazy(InitializeClient); + RepositoryInfo = gitHubRepositoryInfo; + } + + public void StartConsoleLogGroup(string name) + { + LogToConsole(BuildSystemValues.GitHub.StartBlock(name)); + } - var client = new GitHubClient(connection) + public void EndConsoleLogGroup(string name) { - Credentials = new Credentials(token), - }; + LogToConsole(BuildSystemValues.GitHub.EndBlock); + } + + public void LogToConsole(string value) + { + _moduleLoggerProvider.GetLogger().LogToConsole(value); + } + + // PRIVATE METHODS + // -------------------------------------------------------------------------------- + + /// + /// Initializes the GitHub client. + /// + /// An instance of . + private IGitHubClient InitializeClient() + { + var token = _options.AccessToken + ?? EnvironmentVariables.Token + ?? throw new ArgumentException("No GitHub access token or GITHUB_TOKEN found in environment variables."); + + var connection = new Connection(new ProductHeaderValue("ModularPipelines"), + new HttpClientAdapter(() => + { + var moduleLogger = _moduleLoggerProvider.GetLogger(); + + return new RequestLoggingHttpHandler(moduleLogger) + { + InnerHandler = new ResponseLoggingHttpHandler(moduleLogger) + { + InnerHandler = new StatusCodeLoggingHttpHandler(moduleLogger) + { + InnerHandler = new HttpClientHandler(), + }, + }, + }; + })); + + var client = new GitHubClient(connection) + { + Credentials = new Credentials(token), + }; - return client; - } + return client; + } } \ No newline at end of file diff --git a/src/ModularPipelines.GitHub/GitHubEnvironmentVariables.cs b/src/ModularPipelines.GitHub/GitHubEnvironmentVariables.cs index 2e558570c6..1d5ff96170 100644 --- a/src/ModularPipelines.GitHub/GitHubEnvironmentVariables.cs +++ b/src/ModularPipelines.GitHub/GitHubEnvironmentVariables.cs @@ -40,7 +40,7 @@ internal class GitHubEnvironmentVariables : IGitHubEnvironmentVariables public string? ApiUrl { get; } = Get("API_URL"); public string? GraphQlUrl { get; } = Get("GRAPHQL_URL"); - + public string? RefName { get; } = Get("REF_NAME"); public string? RefType { get; } = Get("REF_TYPE"); @@ -48,7 +48,7 @@ internal class GitHubEnvironmentVariables : IGitHubEnvironmentVariables public string? Token { get; } = Get("TOKEN"); public string? Job { get; } = Get("JOB"); - + public string? State { get; } = Get("STATE"); public string? ActorId { get; } = Get("ACTOR_ID"); @@ -66,10 +66,10 @@ internal class GitHubEnvironmentVariables : IGitHubEnvironmentVariables public string? RunAttempt { get; } = Get("RUN_ATTEMPT"); public string? TriggeringActor { get; } = Get("TRIGGERING_ACTOR"); - + public string? WorkflowSha { get; } = Get("WORKFLOW_SHA"); public string? WorkflowRef { get; } = Get("WORKFLOW_REF"); - + private static string Get(string name) => Environment.GetEnvironmentVariable($"GITHUB_{name}")!; } \ No newline at end of file diff --git a/src/ModularPipelines.GitHub/GitHubMarkdownSummaryGenerator.cs b/src/ModularPipelines.GitHub/GitHubMarkdownSummaryGenerator.cs index 2d12432611..b23564645e 100644 --- a/src/ModularPipelines.GitHub/GitHubMarkdownSummaryGenerator.cs +++ b/src/ModularPipelines.GitHub/GitHubMarkdownSummaryGenerator.cs @@ -17,7 +17,7 @@ public GitHubMarkdownSummaryGenerator(IAfterPipelineLogger afterPipelineLogger) { _afterPipelineLogger = afterPipelineLogger; } - + public Task OnStartAsync(IPipelineHookContext pipelineContext) { return Task.CompletedTask; @@ -30,7 +30,7 @@ public async Task OnEndAsync(IPipelineHookContext pipelineContext, PipelineSumma var exception = await GetException(pipelineSummary); var stepSummaryVariable = pipelineContext.Environment.EnvironmentVariables.GetEnvironmentVariable("GITHUB_STEP_SUMMARY"); - + if (string.IsNullOrEmpty(stepSummaryVariable)) { return; @@ -53,7 +53,7 @@ private async Task WriteFile(IPipelineHookContext pipelineContext, string stepSu Console.WriteLine("Appending to the GitHub Step Summary would exceed the 1MB file size limit."); return; } - + await pipelineContext.FileSystem.GetFile(stepSummaryVariable).AppendAsync(contents); } @@ -70,7 +70,7 @@ private async Task GetException(PipelineSummary pipelineSummary) { return string.Empty; } - + return $"\n\n```\n{exception}\n```"; } @@ -118,7 +118,7 @@ title Run Summary private async Task GenerateTableSummary(PipelineSummary pipelineSummary) { var results = await pipelineSummary.GetModuleResultsAsync(); - + var stepStringList = results.OrderBy(x => x.ModuleEnd) .ThenBy(s => s.ModuleStart) .Select(module => @@ -130,7 +130,7 @@ private async Task GenerateTableSummary(PipelineSummary pipelineSummary) return text; } ).ToList(); - + var isSameDay = pipelineSummary.Start.Date == pipelineSummary.End.Date; var (globalStartTime, globalEndTime, globalDuration) = (pipelineSummary.Start, pipelineSummary.End, pipelineSummary.TotalDuration); var pipelineStatusString = GetStatusString(pipelineSummary.Status); @@ -152,7 +152,7 @@ private static string AddCritIfFailed(IModuleResult moduleResult) ? "crit," : string.Empty; } - + private static string GetStatusString(Status status) { return status switch @@ -165,7 +165,7 @@ private static string GetStatusString(Status status) _ => throw new ArgumentOutOfRangeException(nameof(status), status, null), }; } - + private static string GetTime(DateTimeOffset dateTimeOffset, bool isSameDay) { if (dateTimeOffset == DateTimeOffset.MinValue) diff --git a/src/ModularPipelines.GitHub/GitHubRepositoryInfo.cs b/src/ModularPipelines.GitHub/GitHubRepositoryInfo.cs index a58876466e..4bd8665e6a 100644 --- a/src/ModularPipelines.GitHub/GitHubRepositoryInfo.cs +++ b/src/ModularPipelines.GitHub/GitHubRepositoryInfo.cs @@ -14,87 +14,87 @@ namespace ModularPipelines.GitHub; [ExcludeFromCodeCoverage] internal record GitHubRepositoryInfo : IGitHubRepositoryInfo, IInitializer { - private readonly IServiceProvider _serviceProvider; - private readonly ILogger _logger; - - public bool IsInitialized { get; private set; } - - public string? Url { get; private set; } - - public string? Endpoint { get; private set; } - - public string? Owner { get; private set; } - - public string? RepositoryName { get; private set; } - - public GitHubRepositoryInfo(IServiceProvider serviceProvider, ILogger logger) - { - _serviceProvider = serviceProvider; - _logger = logger; - } - - public async Task InitializeAsync() - { - if (IsInitialized) - { - return; - } + private readonly IServiceProvider _serviceProvider; + private readonly ILogger _logger; + + public bool IsInitialized { get; private set; } + + public string? Url { get; private set; } + + public string? Endpoint { get; private set; } - try + public string? Owner { get; private set; } + + public string? RepositoryName { get; private set; } + + public GitHubRepositoryInfo(IServiceProvider serviceProvider, ILogger logger) { - await using var scope = _serviceProvider.CreateAsyncScope(); - var git = scope.ServiceProvider.GetRequiredService(); - - var options = new GitRemoteOptions - { - Arguments = ["get-url", "origin"], - ThrowOnNonZeroExitCode = false, - CommandLogging = scope.ServiceProvider - .GetRequiredService>() - .Value - .MinLevel == LogLevel.Debug - ? CommandLogging.Default - : CommandLogging.None, - }; - - var remote = await git.Commands.Remote(options); - var remoteUrl = remote.StandardOutput; - - if (string.IsNullOrEmpty(remoteUrl)) - { - _logger.LogWarning("Error when detecting GitHub git repository: {Error}", remote.StandardError); - - // Will not initialize as git repo is not setup - return; - } - - // Parse owner and repository name from the remote URL - var endpoint = "github"; - var sshPattern = $@"git@{endpoint}\.com:(?.+)/(?.+)\.git"; - var httpsPattern = $@"https://(.*@)?{endpoint}\.com/(?.+)/(?.+)(\.git)?"; - - var match = Regex.Match(remoteUrl, sshPattern); - if (!match.Success) - { - match = Regex.Match(remoteUrl, httpsPattern); - } - - if (!match.Success) - { - // Will not initialize as git repo is not setup - return; - } - - Url = remoteUrl; - Endpoint = endpoint; - Owner = match.Groups["owner"].Value; - RepositoryName = match.Groups["name"].Value; - - IsInitialized = true; + _serviceProvider = serviceProvider; + _logger = logger; } - catch (Exception e) + + public async Task InitializeAsync() { - Console.WriteLine(e); + if (IsInitialized) + { + return; + } + + try + { + await using var scope = _serviceProvider.CreateAsyncScope(); + var git = scope.ServiceProvider.GetRequiredService(); + + var options = new GitRemoteOptions + { + Arguments = ["get-url", "origin"], + ThrowOnNonZeroExitCode = false, + CommandLogging = scope.ServiceProvider + .GetRequiredService>() + .Value + .MinLevel == LogLevel.Debug + ? CommandLogging.Default + : CommandLogging.None, + }; + + var remote = await git.Commands.Remote(options); + var remoteUrl = remote.StandardOutput; + + if (string.IsNullOrEmpty(remoteUrl)) + { + _logger.LogWarning("Error when detecting GitHub git repository: {Error}", remote.StandardError); + + // Will not initialize as git repo is not setup + return; + } + + // Parse owner and repository name from the remote URL + var endpoint = "github"; + var sshPattern = $@"git@{endpoint}\.com:(?.+)/(?.+)\.git"; + var httpsPattern = $@"https://(.*@)?{endpoint}\.com/(?.+)/(?.+)(\.git)?"; + + var match = Regex.Match(remoteUrl, sshPattern); + if (!match.Success) + { + match = Regex.Match(remoteUrl, httpsPattern); + } + + if (!match.Success) + { + // Will not initialize as git repo is not setup + return; + } + + Url = remoteUrl; + Endpoint = endpoint; + Owner = match.Groups["owner"].Value; + RepositoryName = match.Groups["name"].Value; + + IsInitialized = true; + } + catch (Exception e) + { + Console.WriteLine(e); + } } - } } diff --git a/src/ModularPipelines.GitHub/IGitHub.cs b/src/ModularPipelines.GitHub/IGitHub.cs index 4dc4d077fa..4c977dfcb9 100644 --- a/src/ModularPipelines.GitHub/IGitHub.cs +++ b/src/ModularPipelines.GitHub/IGitHub.cs @@ -6,8 +6,8 @@ namespace ModularPipelines.GitHub; public interface IGitHub : ICollapsableLogging { IGitHubClient Client { get; } - + IGitHubRepositoryInfo RepositoryInfo { get; } - + IGitHubEnvironmentVariables EnvironmentVariables { get; } } \ No newline at end of file diff --git a/src/ModularPipelines.GitHub/IGitHubEnvironmentVariables.cs b/src/ModularPipelines.GitHub/IGitHubEnvironmentVariables.cs index 7f6244a4ef..e8063aa926 100644 --- a/src/ModularPipelines.GitHub/IGitHubEnvironmentVariables.cs +++ b/src/ModularPipelines.GitHub/IGitHubEnvironmentVariables.cs @@ -3,68 +3,68 @@ public interface IGitHubEnvironmentVariables { bool CI { get; } - + string? Workflow { get; } - + string? RunId { get; } - + int RunNumber { get; } - + string? Action { get; } - + string? Actions { get; } - + string? Actor { get; } - + string? Repository { get; } - + string? EventName { get; } - + string? EventPath { get; } - + string? Workspace { get; } - + string? Sha { get; } - + string? Ref { get; } - + string? HeadRef { get; } - + string? BaseRef { get; } - + string? ServerUrl { get; } - + string? ApiUrl { get; } - + string? GraphQlUrl { get; } - + string? RefName { get; } - + string? RefType { get; } - + string? Token { get; } - + string? Job { get; } - + string? State { get; } - + string? ActorId { get; } - + string? Owner { get; } - + string? OwnerId { get; } - + string? RetentionDays { get; } - + string? RefProtected { get; } - + string? RepositoryId { get; } - + string? RunAttempt { get; } - + string? TriggeringActor { get; } - + string? WorkflowSha { get; } - + string? WorkflowRef { get; } } \ No newline at end of file diff --git a/src/ModularPipelines.GitHub/IGitHubRepositoryInfo.cs b/src/ModularPipelines.GitHub/IGitHubRepositoryInfo.cs index 5467aa50b1..f162b1605a 100644 --- a/src/ModularPipelines.GitHub/IGitHubRepositoryInfo.cs +++ b/src/ModularPipelines.GitHub/IGitHubRepositoryInfo.cs @@ -2,44 +2,44 @@ public interface IGitHubRepositoryInfo { - /// - /// Gets a value indicating whether has been initialized. - /// - /// - /// If (remote) github repository hasn't been set, the repository info will not be initialized. - /// In that case, one can check if that's the case. - /// - bool IsInitialized { get; } - - /// - /// Gets the URL of a GitHub repository. - /// - string? Url { get; } + /// + /// Gets a value indicating whether has been initialized. + /// + /// + /// If (remote) github repository hasn't been set, the repository info will not be initialized. + /// In that case, one can check if that's the case. + /// + bool IsInitialized { get; } - /// - /// Gets an endpoint for accessing a remote repository. - /// - string? Endpoint { get; } + /// + /// Gets the URL of a GitHub repository. + /// + string? Url { get; } - /// - /// Gets the owner of a repository. - /// - string? Owner { get; } + /// + /// Gets an endpoint for accessing a remote repository. + /// + string? Endpoint { get; } - /// - /// Gets the name of the repository. - /// - /// The name of the repository. - string? RepositoryName { get; } - - /// - /// Gets the identifier of a GitHub repository. - /// - string? Identifier => $"{Owner}/{RepositoryName}"; + /// + /// Gets the owner of a repository. + /// + string? Owner { get; } - /// - /// Gets a value indicating whether the endpoint is GitHub. - /// - /// true if the endpoint is GitHub; otherwise, false. - bool IsGitHub => Endpoint?.Equals("github", StringComparison.OrdinalIgnoreCase) == true; + /// + /// Gets the name of the repository. + /// + /// The name of the repository. + string? RepositoryName { get; } + + /// + /// Gets the identifier of a GitHub repository. + /// + string? Identifier => $"{Owner}/{RepositoryName}"; + + /// + /// Gets a value indicating whether the endpoint is GitHub. + /// + /// true if the endpoint is GitHub; otherwise, false. + bool IsGitHub => Endpoint?.Equals("github", StringComparison.OrdinalIgnoreCase) == true; } \ No newline at end of file diff --git a/src/ModularPipelines.GitHub/Options/GitHubOptions.cs b/src/ModularPipelines.GitHub/Options/GitHubOptions.cs index e256e69825..cae0d154c5 100644 --- a/src/ModularPipelines.GitHub/Options/GitHubOptions.cs +++ b/src/ModularPipelines.GitHub/Options/GitHubOptions.cs @@ -4,6 +4,6 @@ namespace ModularPipelines.GitHub.Options; public record GitHubOptions { - [SecretValue] - public string? AccessToken { get; set; } + [SecretValue] + public string? AccessToken { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Helm/Helm.cs b/src/ModularPipelines.Helm/Helm.cs index ca01414d99..d6312585e2 100644 --- a/src/ModularPipelines.Helm/Helm.cs +++ b/src/ModularPipelines.Helm/Helm.cs @@ -15,213 +15,213 @@ public Helm(ICommand command) _command = command; } - public async Task CompletionBash(HelmCompletionBashOptions options, + public virtual async Task CompletionBash(HelmCompletionBashOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task CompletionFish(HelmCompletionFishOptions options, + public virtual async Task CompletionFish(HelmCompletionFishOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task CompletionPowershell(HelmCompletionPowershellOptions options, + public virtual async Task CompletionPowershell(HelmCompletionPowershellOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task CompletionZsh(HelmCompletionZshOptions options, CancellationToken token = default) + public virtual async Task CompletionZsh(HelmCompletionZshOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Create(HelmCreateOptions options, CancellationToken token = default) + public virtual async Task Create(HelmCreateOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task DependencyBuild(HelmDependencyBuildOptions options, + public virtual async Task DependencyBuild(HelmDependencyBuildOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task DependencyList(HelmDependencyListOptions options, + public virtual async Task DependencyList(HelmDependencyListOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task DependencyUpdate(HelmDependencyUpdateOptions options, + public virtual async Task DependencyUpdate(HelmDependencyUpdateOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task GetAll(HelmGetAllOptions options, CancellationToken token = default) + public virtual async Task GetAll(HelmGetAllOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task GetHooks(HelmGetHooksOptions options, CancellationToken token = default) + public virtual async Task GetHooks(HelmGetHooksOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task GetManifest(HelmGetManifestOptions options, CancellationToken token = default) + public virtual async Task GetManifest(HelmGetManifestOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task GetNotes(HelmGetNotesOptions options, CancellationToken token = default) + public virtual async Task GetNotes(HelmGetNotesOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task GetValues(HelmGetValuesOptions options, CancellationToken token = default) + public virtual async Task GetValues(HelmGetValuesOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task History(HelmHistoryOptions options, CancellationToken token = default) + public virtual async Task History(HelmHistoryOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Install(HelmInstallOptions options, CancellationToken token = default) + public virtual async Task Install(HelmInstallOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Lint(HelmLintOptions options, CancellationToken token = default) + public virtual async Task Lint(HelmLintOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task List(HelmListOptions options, CancellationToken token = default) + public virtual async Task List(HelmListOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Package(HelmPackageOptions options, CancellationToken token = default) + public virtual async Task Package(HelmPackageOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task PluginInstall(HelmPluginInstallOptions options, CancellationToken token = default) + public virtual async Task PluginInstall(HelmPluginInstallOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Pull(HelmPullOptions options, CancellationToken token = default) + public virtual async Task Pull(HelmPullOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Push(HelmPushOptions options, CancellationToken token = default) + public virtual async Task Push(HelmPushOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task RegistryLogin(HelmRegistryLoginOptions options, CancellationToken token = default) + public virtual async Task RegistryLogin(HelmRegistryLoginOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task RepoAdd(HelmRepoAddOptions options, CancellationToken token = default) + public virtual async Task RepoAdd(HelmRepoAddOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task RepoIndex(HelmRepoIndexOptions options, CancellationToken token = default) + public virtual async Task RepoIndex(HelmRepoIndexOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task RepoList(HelmRepoListOptions options, CancellationToken token = default) + public virtual async Task RepoList(HelmRepoListOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task RepoUpdate(HelmRepoUpdateOptions options, CancellationToken token = default) + public virtual async Task RepoUpdate(HelmRepoUpdateOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Rollback(HelmRollbackOptions options, CancellationToken token = default) + public virtual async Task Rollback(HelmRollbackOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task SearchHub(HelmSearchHubOptions options, CancellationToken token = default) + public virtual async Task SearchHub(HelmSearchHubOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task SearchRepo(HelmSearchRepoOptions options, CancellationToken token = default) + public virtual async Task SearchRepo(HelmSearchRepoOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task ShowAll(HelmShowAllOptions options, CancellationToken token = default) + public virtual async Task ShowAll(HelmShowAllOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task ShowChart(HelmShowChartOptions options, CancellationToken token = default) + public virtual async Task ShowChart(HelmShowChartOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task ShowCrds(HelmShowCrdsOptions options, CancellationToken token = default) + public virtual async Task ShowCrds(HelmShowCrdsOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task ShowReadme(HelmShowReadmeOptions options, CancellationToken token = default) + public virtual async Task ShowReadme(HelmShowReadmeOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task ShowValues(HelmShowValuesOptions options, CancellationToken token = default) + public virtual async Task ShowValues(HelmShowValuesOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Status(HelmStatusOptions options, CancellationToken token = default) + public virtual async Task Status(HelmStatusOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Template(HelmTemplateOptions options, CancellationToken token = default) + public virtual async Task Template(HelmTemplateOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Test(HelmTestOptions options, CancellationToken token = default) + public virtual async Task Test(HelmTestOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Uninstall(HelmUninstallOptions options, CancellationToken token = default) + public virtual async Task Uninstall(HelmUninstallOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Upgrade(HelmUpgradeOptions options, CancellationToken token = default) + public virtual async Task Upgrade(HelmUpgradeOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Verify(HelmVerifyOptions options, CancellationToken token = default) + public virtual async Task Verify(HelmVerifyOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Version(HelmVersionOptions options, CancellationToken token = default) + public virtual async Task Version(HelmVersionOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } diff --git a/src/ModularPipelines.Helm/Options/HelmCompletionBashOptions.cs b/src/ModularPipelines.Helm/Options/HelmCompletionBashOptions.cs index 7528c1ffff..7a239100a4 100644 --- a/src/ModularPipelines.Helm/Options/HelmCompletionBashOptions.cs +++ b/src/ModularPipelines.Helm/Options/HelmCompletionBashOptions.cs @@ -8,5 +8,5 @@ namespace ModularPipelines.Helm.Options; public record HelmCompletionBashOptions : HelmOptions { [BooleanCommandSwitch("--no-descriptions")] - public bool? NoDescriptions { get; set; } + public virtual bool? NoDescriptions { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Helm/Options/HelmCompletionFishOptions.cs b/src/ModularPipelines.Helm/Options/HelmCompletionFishOptions.cs index 7ad136c9bf..bd281e1b88 100644 --- a/src/ModularPipelines.Helm/Options/HelmCompletionFishOptions.cs +++ b/src/ModularPipelines.Helm/Options/HelmCompletionFishOptions.cs @@ -8,5 +8,5 @@ namespace ModularPipelines.Helm.Options; public record HelmCompletionFishOptions : HelmOptions { [BooleanCommandSwitch("--no-descriptions")] - public bool? NoDescriptions { get; set; } + public virtual bool? NoDescriptions { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Helm/Options/HelmCompletionPowershellOptions.cs b/src/ModularPipelines.Helm/Options/HelmCompletionPowershellOptions.cs index feb4759cba..b5e93048ff 100644 --- a/src/ModularPipelines.Helm/Options/HelmCompletionPowershellOptions.cs +++ b/src/ModularPipelines.Helm/Options/HelmCompletionPowershellOptions.cs @@ -8,5 +8,5 @@ namespace ModularPipelines.Helm.Options; public record HelmCompletionPowershellOptions : HelmOptions { [BooleanCommandSwitch("--no-descriptions")] - public bool? NoDescriptions { get; set; } + public virtual bool? NoDescriptions { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Helm/Options/HelmCompletionZshOptions.cs b/src/ModularPipelines.Helm/Options/HelmCompletionZshOptions.cs index 61e3da7064..863bf23b9c 100644 --- a/src/ModularPipelines.Helm/Options/HelmCompletionZshOptions.cs +++ b/src/ModularPipelines.Helm/Options/HelmCompletionZshOptions.cs @@ -8,5 +8,5 @@ namespace ModularPipelines.Helm.Options; public record HelmCompletionZshOptions : HelmOptions { [BooleanCommandSwitch("--no-descriptions")] - public bool? NoDescriptions { get; set; } + public virtual bool? NoDescriptions { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Helm/Options/HelmDependencyBuildOptions.cs b/src/ModularPipelines.Helm/Options/HelmDependencyBuildOptions.cs index f61b837738..ea6009a7d3 100644 --- a/src/ModularPipelines.Helm/Options/HelmDependencyBuildOptions.cs +++ b/src/ModularPipelines.Helm/Options/HelmDependencyBuildOptions.cs @@ -11,8 +11,8 @@ public record HelmDependencyBuildOptions : HelmOptions public string? Keyring { get; set; } [BooleanCommandSwitch("--skip-refresh")] - public bool? SkipRefresh { get; set; } + public virtual bool? SkipRefresh { get; set; } [BooleanCommandSwitch("--verify")] - public bool? Verify { get; set; } + public virtual bool? Verify { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Helm/Options/HelmDependencyUpdateOptions.cs b/src/ModularPipelines.Helm/Options/HelmDependencyUpdateOptions.cs index 59b7891d62..be58354b9f 100644 --- a/src/ModularPipelines.Helm/Options/HelmDependencyUpdateOptions.cs +++ b/src/ModularPipelines.Helm/Options/HelmDependencyUpdateOptions.cs @@ -11,8 +11,8 @@ public record HelmDependencyUpdateOptions : HelmOptions public string? Keyring { get; set; } [BooleanCommandSwitch("--skip-refresh")] - public bool? SkipRefresh { get; set; } + public virtual bool? SkipRefresh { get; set; } [BooleanCommandSwitch("--verify")] - public bool? Verify { get; set; } + public virtual bool? Verify { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Helm/Options/HelmGetValuesOptions.cs b/src/ModularPipelines.Helm/Options/HelmGetValuesOptions.cs index 74649b2047..278555fe69 100644 --- a/src/ModularPipelines.Helm/Options/HelmGetValuesOptions.cs +++ b/src/ModularPipelines.Helm/Options/HelmGetValuesOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Helm.Options; public record HelmGetValuesOptions : HelmOptions { [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } [CommandEqualsSeparatorSwitch("--output", SwitchValueSeparator = " ")] public string? Output { get; set; } diff --git a/src/ModularPipelines.Helm/Options/HelmInstallOptions.cs b/src/ModularPipelines.Helm/Options/HelmInstallOptions.cs index 31882dc2a2..43baa98fa3 100644 --- a/src/ModularPipelines.Helm/Options/HelmInstallOptions.cs +++ b/src/ModularPipelines.Helm/Options/HelmInstallOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Helm.Options; public record HelmInstallOptions : HelmOptions { [BooleanCommandSwitch("--atomic")] - public bool? Atomic { get; set; } + public virtual bool? Atomic { get; set; } [CommandEqualsSeparatorSwitch("--ca-file", SwitchValueSeparator = " ")] public string? CaFile { get; set; } @@ -17,34 +17,34 @@ public record HelmInstallOptions : HelmOptions public string? CertFile { get; set; } [BooleanCommandSwitch("--create-namespace")] - public bool? CreateNamespace { get; set; } + public virtual bool? CreateNamespace { get; set; } [BooleanCommandSwitch("--dependency-update")] - public bool? DependencyUpdate { get; set; } + public virtual bool? DependencyUpdate { get; set; } [CommandEqualsSeparatorSwitch("--description", SwitchValueSeparator = " ")] public string? Description { get; set; } [BooleanCommandSwitch("--devel")] - public bool? Devel { get; set; } + public virtual bool? Devel { get; set; } [BooleanCommandSwitch("--disable-openapi-validation")] - public bool? DisableOpenapiValidation { get; set; } + public virtual bool? DisableOpenapiValidation { get; set; } [BooleanCommandSwitch("--dry-run")] - public bool? DryRun { get; set; } + public virtual bool? DryRun { get; set; } [BooleanCommandSwitch("--enable-dns")] - public bool? EnableDns { get; set; } + public virtual bool? EnableDns { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [BooleanCommandSwitch("--generate-name")] - public bool? GenerateName { get; set; } + public virtual bool? GenerateName { get; set; } [BooleanCommandSwitch("--insecure-skip-tls-verify")] - public bool? InsecureSkipTlsVerify { get; set; } + public virtual bool? InsecureSkipTlsVerify { get; set; } [CommandEqualsSeparatorSwitch("--key-file", SwitchValueSeparator = " ")] public string? KeyFile { get; set; } @@ -56,13 +56,13 @@ public record HelmInstallOptions : HelmOptions public string? NameTemplate { get; set; } [BooleanCommandSwitch("--no-hooks")] - public bool? NoHooks { get; set; } + public virtual bool? NoHooks { get; set; } [CommandEqualsSeparatorSwitch("--output", SwitchValueSeparator = " ")] public string? Output { get; set; } [BooleanCommandSwitch("--pass-credentials")] - public bool? PassCredentials { get; set; } + public virtual bool? PassCredentials { get; set; } [CommandEqualsSeparatorSwitch("--password", SwitchValueSeparator = " ")] public string? Password { get; set; } @@ -74,10 +74,10 @@ public record HelmInstallOptions : HelmOptions public string? PostRendererArgs { get; set; } [BooleanCommandSwitch("--render-subchart-notes")] - public bool? RenderSubchartNotes { get; set; } + public virtual bool? RenderSubchartNotes { get; set; } [BooleanCommandSwitch("--replace")] - public bool? Replace { get; set; } + public virtual bool? Replace { get; set; } [CommandEqualsSeparatorSwitch("--repo", SwitchValueSeparator = " ")] public string? Repo { get; set; } @@ -98,7 +98,7 @@ public record HelmInstallOptions : HelmOptions public string[]? SetString { get; set; } [BooleanCommandSwitch("--skip-crds")] - public bool? SkipCrds { get; set; } + public virtual bool? SkipCrds { get; set; } [CommandEqualsSeparatorSwitch("--timeout", SwitchValueSeparator = " ")] public string? Timeout { get; set; } @@ -110,14 +110,14 @@ public record HelmInstallOptions : HelmOptions public string[]? Values { get; set; } [BooleanCommandSwitch("--verify")] - public bool? Verify { get; set; } + public virtual bool? Verify { get; set; } [CommandEqualsSeparatorSwitch("--version", SwitchValueSeparator = " ")] public string? Version { get; set; } [BooleanCommandSwitch("--wait")] - public bool? Wait { get; set; } + public virtual bool? Wait { get; set; } [BooleanCommandSwitch("--wait-for-jobs")] - public bool? WaitForJobs { get; set; } + public virtual bool? WaitForJobs { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Helm/Options/HelmLintOptions.cs b/src/ModularPipelines.Helm/Options/HelmLintOptions.cs index 6551d4f4fb..1485745418 100644 --- a/src/ModularPipelines.Helm/Options/HelmLintOptions.cs +++ b/src/ModularPipelines.Helm/Options/HelmLintOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Helm.Options; public record HelmLintOptions : HelmOptions { [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } [CommandEqualsSeparatorSwitch("--set", SwitchValueSeparator = " ")] public string[]? Set { get; set; } @@ -26,11 +26,11 @@ public record HelmLintOptions : HelmOptions public string[]? SetString { get; set; } [BooleanCommandSwitch("--strict")] - public bool? Strict { get; set; } + public virtual bool? Strict { get; set; } [CommandEqualsSeparatorSwitch("--values", SwitchValueSeparator = " ")] public string[]? Values { get; set; } [BooleanCommandSwitch("--with-subcharts")] - public bool? WithSubcharts { get; set; } + public virtual bool? WithSubcharts { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Helm/Options/HelmListOptions.cs b/src/ModularPipelines.Helm/Options/HelmListOptions.cs index 8fbf162ce1..8b6121aafa 100644 --- a/src/ModularPipelines.Helm/Options/HelmListOptions.cs +++ b/src/ModularPipelines.Helm/Options/HelmListOptions.cs @@ -8,19 +8,19 @@ namespace ModularPipelines.Helm.Options; public record HelmListOptions : HelmOptions { [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } [BooleanCommandSwitch("--all-namespaces")] - public bool? AllNamespaces { get; set; } + public virtual bool? AllNamespaces { get; set; } [BooleanCommandSwitch("--date")] - public bool? Date { get; set; } + public virtual bool? Date { get; set; } [BooleanCommandSwitch("--deployed")] - public bool? Deployed { get; set; } + public virtual bool? Deployed { get; set; } [BooleanCommandSwitch("--failed")] - public bool? Failed { get; set; } + public virtual bool? Failed { get; set; } [CommandEqualsSeparatorSwitch("--filter", SwitchValueSeparator = " ")] public string? Filter { get; set; } @@ -29,7 +29,7 @@ public record HelmListOptions : HelmOptions public int? Max { get; set; } [BooleanCommandSwitch("--no-headers")] - public bool? NoHeaders { get; set; } + public virtual bool? NoHeaders { get; set; } [CommandEqualsSeparatorSwitch("--offset", SwitchValueSeparator = " ")] public int? Offset { get; set; } @@ -38,26 +38,26 @@ public record HelmListOptions : HelmOptions public string? Output { get; set; } [BooleanCommandSwitch("--pending")] - public bool? Pending { get; set; } + public virtual bool? Pending { get; set; } [BooleanCommandSwitch("--reverse")] - public bool? Reverse { get; set; } + public virtual bool? Reverse { get; set; } [CommandEqualsSeparatorSwitch("--selector", SwitchValueSeparator = " ")] public string? Selector { get; set; } [BooleanCommandSwitch("--short")] - public bool? Short { get; set; } + public virtual bool? Short { get; set; } [BooleanCommandSwitch("--superseded")] - public bool? Superseded { get; set; } + public virtual bool? Superseded { get; set; } [CommandEqualsSeparatorSwitch("--time-format", SwitchValueSeparator = " ")] public string? TimeFormat { get; set; } [BooleanCommandSwitch("--uninstalled")] - public bool? Uninstalled { get; set; } + public virtual bool? Uninstalled { get; set; } [BooleanCommandSwitch("--uninstalling")] - public bool? Uninstalling { get; set; } + public virtual bool? Uninstalling { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Helm/Options/HelmOptions.cs b/src/ModularPipelines.Helm/Options/HelmOptions.cs index 2c305e822d..54ba78806f 100644 --- a/src/ModularPipelines.Helm/Options/HelmOptions.cs +++ b/src/ModularPipelines.Helm/Options/HelmOptions.cs @@ -11,7 +11,7 @@ public record HelmOptions() : CommandLineToolOptions("helm") public int? BurstLimit { get; set; } [BooleanCommandSwitch("--debug")] - public bool? Debug { get; set; } + public virtual bool? Debug { get; set; } [CommandEqualsSeparatorSwitch("--kube-apiserver")] public string? KubeApiServer { get; set; } diff --git a/src/ModularPipelines.Helm/Options/HelmPackageOptions.cs b/src/ModularPipelines.Helm/Options/HelmPackageOptions.cs index 9ac71ae058..c55e87c6c9 100644 --- a/src/ModularPipelines.Helm/Options/HelmPackageOptions.cs +++ b/src/ModularPipelines.Helm/Options/HelmPackageOptions.cs @@ -11,7 +11,7 @@ public record HelmPackageOptions : HelmOptions public string? AppVersion { get; set; } [BooleanCommandSwitch("--dependency-update")] - public bool? DependencyUpdate { get; set; } + public virtual bool? DependencyUpdate { get; set; } [CommandEqualsSeparatorSwitch("--destination", SwitchValueSeparator = " ")] public string? Destination { get; set; } @@ -26,7 +26,7 @@ public record HelmPackageOptions : HelmOptions public string? PassphraseFile { get; set; } [BooleanCommandSwitch("--sign")] - public bool? Sign { get; set; } + public virtual bool? Sign { get; set; } [CommandEqualsSeparatorSwitch("--version", SwitchValueSeparator = " ")] public string? Version { get; set; } diff --git a/src/ModularPipelines.Helm/Options/HelmPullOptions.cs b/src/ModularPipelines.Helm/Options/HelmPullOptions.cs index aaf9731049..883d7afcf3 100644 --- a/src/ModularPipelines.Helm/Options/HelmPullOptions.cs +++ b/src/ModularPipelines.Helm/Options/HelmPullOptions.cs @@ -17,10 +17,10 @@ public record HelmPullOptions : HelmOptions public string? Destination { get; set; } [BooleanCommandSwitch("--devel")] - public bool? Devel { get; set; } + public virtual bool? Devel { get; set; } [BooleanCommandSwitch("--insecure-skip-tls-verify")] - public bool? InsecureSkipTlsVerify { get; set; } + public virtual bool? InsecureSkipTlsVerify { get; set; } [CommandEqualsSeparatorSwitch("--key-file", SwitchValueSeparator = " ")] public string? KeyFile { get; set; } @@ -29,19 +29,19 @@ public record HelmPullOptions : HelmOptions public string? Keyring { get; set; } [BooleanCommandSwitch("--pass-credentials")] - public bool? PassCredentials { get; set; } + public virtual bool? PassCredentials { get; set; } [CommandEqualsSeparatorSwitch("--password", SwitchValueSeparator = " ")] public string? Password { get; set; } [BooleanCommandSwitch("--prov")] - public bool? Prov { get; set; } + public virtual bool? Prov { get; set; } [CommandEqualsSeparatorSwitch("--repo", SwitchValueSeparator = " ")] public string? Repo { get; set; } [BooleanCommandSwitch("--untar")] - public bool? Untar { get; set; } + public virtual bool? Untar { get; set; } [CommandEqualsSeparatorSwitch("--untardir", SwitchValueSeparator = " ")] public string? Untardir { get; set; } @@ -50,7 +50,7 @@ public record HelmPullOptions : HelmOptions public string? Username { get; set; } [BooleanCommandSwitch("--verify")] - public bool? Verify { get; set; } + public virtual bool? Verify { get; set; } [CommandEqualsSeparatorSwitch("--version", SwitchValueSeparator = " ")] public string? Version { get; set; } diff --git a/src/ModularPipelines.Helm/Options/HelmPushOptions.cs b/src/ModularPipelines.Helm/Options/HelmPushOptions.cs index e40f2d6a7f..750fd8d96a 100644 --- a/src/ModularPipelines.Helm/Options/HelmPushOptions.cs +++ b/src/ModularPipelines.Helm/Options/HelmPushOptions.cs @@ -14,7 +14,7 @@ public record HelmPushOptions : HelmOptions public string? CertFile { get; set; } [BooleanCommandSwitch("--insecure-skip-tls-verify")] - public bool? InsecureSkipTlsVerify { get; set; } + public virtual bool? InsecureSkipTlsVerify { get; set; } [CommandEqualsSeparatorSwitch("--key-file", SwitchValueSeparator = " ")] public string? KeyFile { get; set; } diff --git a/src/ModularPipelines.Helm/Options/HelmRegistryLoginOptions.cs b/src/ModularPipelines.Helm/Options/HelmRegistryLoginOptions.cs index bedf0c543a..310f008da3 100644 --- a/src/ModularPipelines.Helm/Options/HelmRegistryLoginOptions.cs +++ b/src/ModularPipelines.Helm/Options/HelmRegistryLoginOptions.cs @@ -14,7 +14,7 @@ public record HelmRegistryLoginOptions : HelmOptions public string? CertFile { get; set; } [BooleanCommandSwitch("--insecure")] - public bool? Insecure { get; set; } + public virtual bool? Insecure { get; set; } [CommandEqualsSeparatorSwitch("--key-file", SwitchValueSeparator = " ")] public string? KeyFile { get; set; } @@ -23,7 +23,7 @@ public record HelmRegistryLoginOptions : HelmOptions public string? Password { get; set; } [BooleanCommandSwitch("--password-stdin")] - public bool? PasswordStdin { get; set; } + public virtual bool? PasswordStdin { get; set; } [CommandEqualsSeparatorSwitch("--username", SwitchValueSeparator = " ")] public string? Username { get; set; } diff --git a/src/ModularPipelines.Helm/Options/HelmRepoAddOptions.cs b/src/ModularPipelines.Helm/Options/HelmRepoAddOptions.cs index 73049cb5b0..e8208b9bf9 100644 --- a/src/ModularPipelines.Helm/Options/HelmRepoAddOptions.cs +++ b/src/ModularPipelines.Helm/Options/HelmRepoAddOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Helm.Options; public record HelmRepoAddOptions : HelmOptions { [BooleanCommandSwitch("--allow-deprecated-repos")] - public bool? AllowDeprecatedRepos { get; set; } + public virtual bool? AllowDeprecatedRepos { get; set; } [CommandEqualsSeparatorSwitch("--ca-file", SwitchValueSeparator = " ")] public string? CaFile { get; set; } @@ -17,25 +17,25 @@ public record HelmRepoAddOptions : HelmOptions public string? CertFile { get; set; } [BooleanCommandSwitch("--force-update")] - public bool? ForceUpdate { get; set; } + public virtual bool? ForceUpdate { get; set; } [BooleanCommandSwitch("--insecure-skip-tls-verify")] - public bool? InsecureSkipTlsVerify { get; set; } + public virtual bool? InsecureSkipTlsVerify { get; set; } [CommandEqualsSeparatorSwitch("--key-file", SwitchValueSeparator = " ")] public string? KeyFile { get; set; } [BooleanCommandSwitch("--no-update")] - public bool? NoUpdate { get; set; } + public virtual bool? NoUpdate { get; set; } [BooleanCommandSwitch("--pass-credentials")] - public bool? PassCredentials { get; set; } + public virtual bool? PassCredentials { get; set; } [CommandEqualsSeparatorSwitch("--password", SwitchValueSeparator = " ")] public string? Password { get; set; } [BooleanCommandSwitch("--password-stdin")] - public bool? PasswordStdin { get; set; } + public virtual bool? PasswordStdin { get; set; } [CommandEqualsSeparatorSwitch("--username", SwitchValueSeparator = " ")] public string? Username { get; set; } diff --git a/src/ModularPipelines.Helm/Options/HelmRepoUpdateOptions.cs b/src/ModularPipelines.Helm/Options/HelmRepoUpdateOptions.cs index e18ea93c17..b7edfa5f24 100644 --- a/src/ModularPipelines.Helm/Options/HelmRepoUpdateOptions.cs +++ b/src/ModularPipelines.Helm/Options/HelmRepoUpdateOptions.cs @@ -8,5 +8,5 @@ namespace ModularPipelines.Helm.Options; public record HelmRepoUpdateOptions : HelmOptions { [BooleanCommandSwitch("--fail-on-repo-update-fail")] - public bool? FailOnRepoUpdateFail { get; set; } + public virtual bool? FailOnRepoUpdateFail { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Helm/Options/HelmRollbackOptions.cs b/src/ModularPipelines.Helm/Options/HelmRollbackOptions.cs index d6341684e5..98509cc5c7 100644 --- a/src/ModularPipelines.Helm/Options/HelmRollbackOptions.cs +++ b/src/ModularPipelines.Helm/Options/HelmRollbackOptions.cs @@ -8,29 +8,29 @@ namespace ModularPipelines.Helm.Options; public record HelmRollbackOptions : HelmOptions { [BooleanCommandSwitch("--cleanup-on-fail")] - public bool? CleanupOnFail { get; set; } + public virtual bool? CleanupOnFail { get; set; } [BooleanCommandSwitch("--dry-run")] - public bool? DryRun { get; set; } + public virtual bool? DryRun { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [CommandEqualsSeparatorSwitch("--history-max", SwitchValueSeparator = " ")] public int? HistoryMax { get; set; } [BooleanCommandSwitch("--no-hooks")] - public bool? NoHooks { get; set; } + public virtual bool? NoHooks { get; set; } [BooleanCommandSwitch("--recreate-pods")] - public bool? RecreatePods { get; set; } + public virtual bool? RecreatePods { get; set; } [CommandEqualsSeparatorSwitch("--timeout", SwitchValueSeparator = " ")] public string? Timeout { get; set; } [BooleanCommandSwitch("--wait")] - public bool? Wait { get; set; } + public virtual bool? Wait { get; set; } [BooleanCommandSwitch("--wait-for-jobs")] - public bool? WaitForJobs { get; set; } + public virtual bool? WaitForJobs { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Helm/Options/HelmSearchHubOptions.cs b/src/ModularPipelines.Helm/Options/HelmSearchHubOptions.cs index 1ebdc9a101..f2e9a55d09 100644 --- a/src/ModularPipelines.Helm/Options/HelmSearchHubOptions.cs +++ b/src/ModularPipelines.Helm/Options/HelmSearchHubOptions.cs @@ -11,7 +11,7 @@ public record HelmSearchHubOptions : HelmOptions public string? Endpoint { get; set; } [BooleanCommandSwitch("--list-repo-url")] - public bool? ListRepoUrl { get; set; } + public virtual bool? ListRepoUrl { get; set; } [CommandEqualsSeparatorSwitch("--max-col-width", SwitchValueSeparator = " ")] public string? MaxColWidth { get; set; } diff --git a/src/ModularPipelines.Helm/Options/HelmSearchRepoOptions.cs b/src/ModularPipelines.Helm/Options/HelmSearchRepoOptions.cs index bba234ac84..2ac7b67f01 100644 --- a/src/ModularPipelines.Helm/Options/HelmSearchRepoOptions.cs +++ b/src/ModularPipelines.Helm/Options/HelmSearchRepoOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Helm.Options; public record HelmSearchRepoOptions : HelmOptions { [BooleanCommandSwitch("--devel")] - public bool? Devel { get; set; } + public virtual bool? Devel { get; set; } [CommandEqualsSeparatorSwitch("--max-col-width", SwitchValueSeparator = " ")] public string? MaxColWidth { get; set; } @@ -17,11 +17,11 @@ public record HelmSearchRepoOptions : HelmOptions public string? Output { get; set; } [BooleanCommandSwitch("--regexp")] - public bool? Regexp { get; set; } + public virtual bool? Regexp { get; set; } [CommandEqualsSeparatorSwitch("--version", SwitchValueSeparator = " ")] public string? Version { get; set; } [BooleanCommandSwitch("--versions")] - public bool? Versions { get; set; } + public virtual bool? Versions { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Helm/Options/HelmShowAllOptions.cs b/src/ModularPipelines.Helm/Options/HelmShowAllOptions.cs index 46f5c384dc..3cfab7555f 100644 --- a/src/ModularPipelines.Helm/Options/HelmShowAllOptions.cs +++ b/src/ModularPipelines.Helm/Options/HelmShowAllOptions.cs @@ -14,10 +14,10 @@ public record HelmShowAllOptions : HelmOptions public string? CertFile { get; set; } [BooleanCommandSwitch("--devel")] - public bool? Devel { get; set; } + public virtual bool? Devel { get; set; } [BooleanCommandSwitch("--insecure-skip-tls-verify")] - public bool? InsecureSkipTlsVerify { get; set; } + public virtual bool? InsecureSkipTlsVerify { get; set; } [CommandEqualsSeparatorSwitch("--key-file", SwitchValueSeparator = " ")] public string? KeyFile { get; set; } @@ -26,7 +26,7 @@ public record HelmShowAllOptions : HelmOptions public string? Keyring { get; set; } [BooleanCommandSwitch("--pass-credentials")] - public bool? PassCredentials { get; set; } + public virtual bool? PassCredentials { get; set; } [CommandEqualsSeparatorSwitch("--password", SwitchValueSeparator = " ")] public string? Password { get; set; } @@ -38,7 +38,7 @@ public record HelmShowAllOptions : HelmOptions public string? Username { get; set; } [BooleanCommandSwitch("--verify")] - public bool? Verify { get; set; } + public virtual bool? Verify { get; set; } [CommandEqualsSeparatorSwitch("--version", SwitchValueSeparator = " ")] public string? Version { get; set; } diff --git a/src/ModularPipelines.Helm/Options/HelmShowChartOptions.cs b/src/ModularPipelines.Helm/Options/HelmShowChartOptions.cs index 34a19730b4..f308d14591 100644 --- a/src/ModularPipelines.Helm/Options/HelmShowChartOptions.cs +++ b/src/ModularPipelines.Helm/Options/HelmShowChartOptions.cs @@ -14,10 +14,10 @@ public record HelmShowChartOptions : HelmOptions public string? CertFile { get; set; } [BooleanCommandSwitch("--devel")] - public bool? Devel { get; set; } + public virtual bool? Devel { get; set; } [BooleanCommandSwitch("--insecure-skip-tls-verify")] - public bool? InsecureSkipTlsVerify { get; set; } + public virtual bool? InsecureSkipTlsVerify { get; set; } [CommandEqualsSeparatorSwitch("--key-file", SwitchValueSeparator = " ")] public string? KeyFile { get; set; } @@ -26,7 +26,7 @@ public record HelmShowChartOptions : HelmOptions public string? Keyring { get; set; } [BooleanCommandSwitch("--pass-credentials")] - public bool? PassCredentials { get; set; } + public virtual bool? PassCredentials { get; set; } [CommandEqualsSeparatorSwitch("--password", SwitchValueSeparator = " ")] public string? Password { get; set; } @@ -38,7 +38,7 @@ public record HelmShowChartOptions : HelmOptions public string? Username { get; set; } [BooleanCommandSwitch("--verify")] - public bool? Verify { get; set; } + public virtual bool? Verify { get; set; } [CommandEqualsSeparatorSwitch("--version", SwitchValueSeparator = " ")] public string? Version { get; set; } diff --git a/src/ModularPipelines.Helm/Options/HelmShowCrdsOptions.cs b/src/ModularPipelines.Helm/Options/HelmShowCrdsOptions.cs index be3356d061..267730f250 100644 --- a/src/ModularPipelines.Helm/Options/HelmShowCrdsOptions.cs +++ b/src/ModularPipelines.Helm/Options/HelmShowCrdsOptions.cs @@ -14,10 +14,10 @@ public record HelmShowCrdsOptions : HelmOptions public string? CertFile { get; set; } [BooleanCommandSwitch("--devel")] - public bool? Devel { get; set; } + public virtual bool? Devel { get; set; } [BooleanCommandSwitch("--insecure-skip-tls-verify")] - public bool? InsecureSkipTlsVerify { get; set; } + public virtual bool? InsecureSkipTlsVerify { get; set; } [CommandEqualsSeparatorSwitch("--key-file", SwitchValueSeparator = " ")] public string? KeyFile { get; set; } @@ -26,7 +26,7 @@ public record HelmShowCrdsOptions : HelmOptions public string? Keyring { get; set; } [BooleanCommandSwitch("--pass-credentials")] - public bool? PassCredentials { get; set; } + public virtual bool? PassCredentials { get; set; } [CommandEqualsSeparatorSwitch("--password", SwitchValueSeparator = " ")] public string? Password { get; set; } @@ -38,7 +38,7 @@ public record HelmShowCrdsOptions : HelmOptions public string? Username { get; set; } [BooleanCommandSwitch("--verify")] - public bool? Verify { get; set; } + public virtual bool? Verify { get; set; } [CommandEqualsSeparatorSwitch("--version", SwitchValueSeparator = " ")] public string? Version { get; set; } diff --git a/src/ModularPipelines.Helm/Options/HelmShowReadmeOptions.cs b/src/ModularPipelines.Helm/Options/HelmShowReadmeOptions.cs index c7785902b9..64f147d3ba 100644 --- a/src/ModularPipelines.Helm/Options/HelmShowReadmeOptions.cs +++ b/src/ModularPipelines.Helm/Options/HelmShowReadmeOptions.cs @@ -14,10 +14,10 @@ public record HelmShowReadmeOptions : HelmOptions public string? CertFile { get; set; } [BooleanCommandSwitch("--devel")] - public bool? Devel { get; set; } + public virtual bool? Devel { get; set; } [BooleanCommandSwitch("--insecure-skip-tls-verify")] - public bool? InsecureSkipTlsVerify { get; set; } + public virtual bool? InsecureSkipTlsVerify { get; set; } [CommandEqualsSeparatorSwitch("--key-file", SwitchValueSeparator = " ")] public string? KeyFile { get; set; } @@ -26,7 +26,7 @@ public record HelmShowReadmeOptions : HelmOptions public string? Keyring { get; set; } [BooleanCommandSwitch("--pass-credentials")] - public bool? PassCredentials { get; set; } + public virtual bool? PassCredentials { get; set; } [CommandEqualsSeparatorSwitch("--password", SwitchValueSeparator = " ")] public string? Password { get; set; } @@ -38,7 +38,7 @@ public record HelmShowReadmeOptions : HelmOptions public string? Username { get; set; } [BooleanCommandSwitch("--verify")] - public bool? Verify { get; set; } + public virtual bool? Verify { get; set; } [CommandEqualsSeparatorSwitch("--version", SwitchValueSeparator = " ")] public string? Version { get; set; } diff --git a/src/ModularPipelines.Helm/Options/HelmShowValuesOptions.cs b/src/ModularPipelines.Helm/Options/HelmShowValuesOptions.cs index 404cfe5275..82cf7be37c 100644 --- a/src/ModularPipelines.Helm/Options/HelmShowValuesOptions.cs +++ b/src/ModularPipelines.Helm/Options/HelmShowValuesOptions.cs @@ -14,10 +14,10 @@ public record HelmShowValuesOptions : HelmOptions public string? CertFile { get; set; } [BooleanCommandSwitch("--devel")] - public bool? Devel { get; set; } + public virtual bool? Devel { get; set; } [BooleanCommandSwitch("--insecure-skip-tls-verify")] - public bool? InsecureSkipTlsVerify { get; set; } + public virtual bool? InsecureSkipTlsVerify { get; set; } [CommandEqualsSeparatorSwitch("--jsonpath", SwitchValueSeparator = " ")] public string? Jsonpath { get; set; } @@ -29,7 +29,7 @@ public record HelmShowValuesOptions : HelmOptions public string? Keyring { get; set; } [BooleanCommandSwitch("--pass-credentials")] - public bool? PassCredentials { get; set; } + public virtual bool? PassCredentials { get; set; } [CommandEqualsSeparatorSwitch("--password", SwitchValueSeparator = " ")] public string? Password { get; set; } @@ -41,7 +41,7 @@ public record HelmShowValuesOptions : HelmOptions public string? Username { get; set; } [BooleanCommandSwitch("--verify")] - public bool? Verify { get; set; } + public virtual bool? Verify { get; set; } [CommandEqualsSeparatorSwitch("--version", SwitchValueSeparator = " ")] public string? Version { get; set; } diff --git a/src/ModularPipelines.Helm/Options/HelmStatusOptions.cs b/src/ModularPipelines.Helm/Options/HelmStatusOptions.cs index 1141d7ce0c..e5aa51a80f 100644 --- a/src/ModularPipelines.Helm/Options/HelmStatusOptions.cs +++ b/src/ModularPipelines.Helm/Options/HelmStatusOptions.cs @@ -14,8 +14,8 @@ public record HelmStatusOptions : HelmOptions public int? Revision { get; set; } [BooleanCommandSwitch("--show-desc")] - public bool? ShowDesc { get; set; } + public virtual bool? ShowDesc { get; set; } [BooleanCommandSwitch("--show-resources")] - public bool? ShowResources { get; set; } + public virtual bool? ShowResources { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Helm/Options/HelmTemplateOptions.cs b/src/ModularPipelines.Helm/Options/HelmTemplateOptions.cs index a10b0deaf0..fbb1ec688e 100644 --- a/src/ModularPipelines.Helm/Options/HelmTemplateOptions.cs +++ b/src/ModularPipelines.Helm/Options/HelmTemplateOptions.cs @@ -11,7 +11,7 @@ public record HelmTemplateOptions : HelmOptions public string[]? ApiVersions { get; set; } [BooleanCommandSwitch("--atomic")] - public bool? Atomic { get; set; } + public virtual bool? Atomic { get; set; } [CommandEqualsSeparatorSwitch("--ca-file", SwitchValueSeparator = " ")] public string? CaFile { get; set; } @@ -20,40 +20,40 @@ public record HelmTemplateOptions : HelmOptions public string? CertFile { get; set; } [BooleanCommandSwitch("--create-namespace")] - public bool? CreateNamespace { get; set; } + public virtual bool? CreateNamespace { get; set; } [BooleanCommandSwitch("--dependency-update")] - public bool? DependencyUpdate { get; set; } + public virtual bool? DependencyUpdate { get; set; } [CommandEqualsSeparatorSwitch("--description", SwitchValueSeparator = " ")] public string? Description { get; set; } [BooleanCommandSwitch("--devel")] - public bool? Devel { get; set; } + public virtual bool? Devel { get; set; } [BooleanCommandSwitch("--disable-openapi-validation")] - public bool? DisableOpenapiValidation { get; set; } + public virtual bool? DisableOpenapiValidation { get; set; } [BooleanCommandSwitch("--dry-run")] - public bool? DryRun { get; set; } + public virtual bool? DryRun { get; set; } [BooleanCommandSwitch("--enable-dns")] - public bool? EnableDns { get; set; } + public virtual bool? EnableDns { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [BooleanCommandSwitch("--generate-name")] - public bool? GenerateName { get; set; } + public virtual bool? GenerateName { get; set; } [BooleanCommandSwitch("--include-crds")] - public bool? IncludeCrds { get; set; } + public virtual bool? IncludeCrds { get; set; } [BooleanCommandSwitch("--insecure-skip-tls-verify")] - public bool? InsecureSkipTlsVerify { get; set; } + public virtual bool? InsecureSkipTlsVerify { get; set; } [BooleanCommandSwitch("--is-upgrade")] - public bool? IsUpgrade { get; set; } + public virtual bool? IsUpgrade { get; set; } [CommandEqualsSeparatorSwitch("--key-file", SwitchValueSeparator = " ")] public string? KeyFile { get; set; } @@ -68,13 +68,13 @@ public record HelmTemplateOptions : HelmOptions public string? NameTemplate { get; set; } [BooleanCommandSwitch("--no-hooks")] - public bool? NoHooks { get; set; } + public virtual bool? NoHooks { get; set; } [CommandEqualsSeparatorSwitch("--output-dir", SwitchValueSeparator = " ")] public string? OutputDir { get; set; } [BooleanCommandSwitch("--pass-credentials")] - public bool? PassCredentials { get; set; } + public virtual bool? PassCredentials { get; set; } [CommandEqualsSeparatorSwitch("--password", SwitchValueSeparator = " ")] public string? Password { get; set; } @@ -86,13 +86,13 @@ public record HelmTemplateOptions : HelmOptions public string? PostRendererArgs { get; set; } [BooleanCommandSwitch("--release-name")] - public bool? ReleaseName { get; set; } + public virtual bool? ReleaseName { get; set; } [BooleanCommandSwitch("--render-subchart-notes")] - public bool? RenderSubchartNotes { get; set; } + public virtual bool? RenderSubchartNotes { get; set; } [BooleanCommandSwitch("--replace")] - public bool? Replace { get; set; } + public virtual bool? Replace { get; set; } [CommandEqualsSeparatorSwitch("--repo", SwitchValueSeparator = " ")] public string? Repo { get; set; } @@ -116,10 +116,10 @@ public record HelmTemplateOptions : HelmOptions public string[]? ShowOnly { get; set; } [BooleanCommandSwitch("--skip-crds")] - public bool? SkipCrds { get; set; } + public virtual bool? SkipCrds { get; set; } [BooleanCommandSwitch("--skip-tests")] - public bool? SkipTests { get; set; } + public virtual bool? SkipTests { get; set; } [CommandEqualsSeparatorSwitch("--timeout", SwitchValueSeparator = " ")] public string? Timeout { get; set; } @@ -128,20 +128,20 @@ public record HelmTemplateOptions : HelmOptions public string? Username { get; set; } [BooleanCommandSwitch("--validate")] - public bool? Validate { get; set; } + public virtual bool? Validate { get; set; } [CommandEqualsSeparatorSwitch("--values", SwitchValueSeparator = " ")] public string[]? Values { get; set; } [BooleanCommandSwitch("--verify")] - public bool? Verify { get; set; } + public virtual bool? Verify { get; set; } [CommandEqualsSeparatorSwitch("--version", SwitchValueSeparator = " ")] public string? Version { get; set; } [BooleanCommandSwitch("--wait")] - public bool? Wait { get; set; } + public virtual bool? Wait { get; set; } [BooleanCommandSwitch("--wait-for-jobs")] - public bool? WaitForJobs { get; set; } + public virtual bool? WaitForJobs { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Helm/Options/HelmTestOptions.cs b/src/ModularPipelines.Helm/Options/HelmTestOptions.cs index e68d369c1b..89104bb55e 100644 --- a/src/ModularPipelines.Helm/Options/HelmTestOptions.cs +++ b/src/ModularPipelines.Helm/Options/HelmTestOptions.cs @@ -11,7 +11,7 @@ public record HelmTestOptions : HelmOptions public string[]? Filter { get; set; } [BooleanCommandSwitch("--logs")] - public bool? Logs { get; set; } + public virtual bool? Logs { get; set; } [CommandEqualsSeparatorSwitch("--timeout", SwitchValueSeparator = " ")] public string? Timeout { get; set; } diff --git a/src/ModularPipelines.Helm/Options/HelmUninstallOptions.cs b/src/ModularPipelines.Helm/Options/HelmUninstallOptions.cs index 9b6dbfe8f2..11d7778ce7 100644 --- a/src/ModularPipelines.Helm/Options/HelmUninstallOptions.cs +++ b/src/ModularPipelines.Helm/Options/HelmUninstallOptions.cs @@ -14,17 +14,17 @@ public record HelmUninstallOptions : HelmOptions public string? Description { get; set; } [BooleanCommandSwitch("--dry-run")] - public bool? DryRun { get; set; } + public virtual bool? DryRun { get; set; } [BooleanCommandSwitch("--keep-history")] - public bool? KeepHistory { get; set; } + public virtual bool? KeepHistory { get; set; } [BooleanCommandSwitch("--no-hooks")] - public bool? NoHooks { get; set; } + public virtual bool? NoHooks { get; set; } [CommandEqualsSeparatorSwitch("--timeout", SwitchValueSeparator = " ")] public string? Timeout { get; set; } [BooleanCommandSwitch("--wait")] - public bool? Wait { get; set; } + public virtual bool? Wait { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Helm/Options/HelmUpgradeOptions.cs b/src/ModularPipelines.Helm/Options/HelmUpgradeOptions.cs index 34cdfc1038..e56e63678c 100644 --- a/src/ModularPipelines.Helm/Options/HelmUpgradeOptions.cs +++ b/src/ModularPipelines.Helm/Options/HelmUpgradeOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Helm.Options; public record HelmUpgradeOptions : HelmOptions { [BooleanCommandSwitch("--atomic")] - public bool? Atomic { get; set; } + public virtual bool? Atomic { get; set; } [CommandEqualsSeparatorSwitch("--ca-file", SwitchValueSeparator = " ")] public string? CaFile { get; set; } @@ -17,40 +17,40 @@ public record HelmUpgradeOptions : HelmOptions public string? CertFile { get; set; } [BooleanCommandSwitch("--cleanup-on-fail")] - public bool? CleanupOnFail { get; set; } + public virtual bool? CleanupOnFail { get; set; } [BooleanCommandSwitch("--create-namespace")] - public bool? CreateNamespace { get; set; } + public virtual bool? CreateNamespace { get; set; } [BooleanCommandSwitch("--dependency-update")] - public bool? DependencyUpdate { get; set; } + public virtual bool? DependencyUpdate { get; set; } [CommandEqualsSeparatorSwitch("--description", SwitchValueSeparator = " ")] public string? Description { get; set; } [BooleanCommandSwitch("--devel")] - public bool? Devel { get; set; } + public virtual bool? Devel { get; set; } [BooleanCommandSwitch("--disable-openapi-validation")] - public bool? DisableOpenapiValidation { get; set; } + public virtual bool? DisableOpenapiValidation { get; set; } [BooleanCommandSwitch("--dry-run")] - public bool? DryRun { get; set; } + public virtual bool? DryRun { get; set; } [BooleanCommandSwitch("--enable-dns")] - public bool? EnableDns { get; set; } + public virtual bool? EnableDns { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [CommandEqualsSeparatorSwitch("--history-max", SwitchValueSeparator = " ")] public int? HistoryMax { get; set; } [BooleanCommandSwitch("--insecure-skip-tls-verify")] - public bool? InsecureSkipTlsVerify { get; set; } + public virtual bool? InsecureSkipTlsVerify { get; set; } [BooleanCommandSwitch("--install")] - public bool? Install { get; set; } + public virtual bool? Install { get; set; } [CommandEqualsSeparatorSwitch("--key-file", SwitchValueSeparator = " ")] public string? KeyFile { get; set; } @@ -59,13 +59,13 @@ public record HelmUpgradeOptions : HelmOptions public string? Keyring { get; set; } [BooleanCommandSwitch("--no-hooks")] - public bool? NoHooks { get; set; } + public virtual bool? NoHooks { get; set; } [CommandEqualsSeparatorSwitch("--output", SwitchValueSeparator = " ")] public string? Output { get; set; } [BooleanCommandSwitch("--pass-credentials")] - public bool? PassCredentials { get; set; } + public virtual bool? PassCredentials { get; set; } [CommandEqualsSeparatorSwitch("--password", SwitchValueSeparator = " ")] public string? Password { get; set; } @@ -77,16 +77,16 @@ public record HelmUpgradeOptions : HelmOptions public string? PostRendererArgs { get; set; } [BooleanCommandSwitch("--render-subchart-notes")] - public bool? RenderSubchartNotes { get; set; } + public virtual bool? RenderSubchartNotes { get; set; } [CommandEqualsSeparatorSwitch("--repo", SwitchValueSeparator = " ")] public string? Repo { get; set; } [BooleanCommandSwitch("--reset-values")] - public bool? ResetValues { get; set; } + public virtual bool? ResetValues { get; set; } [BooleanCommandSwitch("--reuse-values")] - public bool? ReuseValues { get; set; } + public virtual bool? ReuseValues { get; set; } [CommandEqualsSeparatorSwitch("--set", SwitchValueSeparator = " ")] public string[]? Set { get; set; } @@ -104,7 +104,7 @@ public record HelmUpgradeOptions : HelmOptions public string[]? SetString { get; set; } [BooleanCommandSwitch("--skip-crds")] - public bool? SkipCrds { get; set; } + public virtual bool? SkipCrds { get; set; } [CommandEqualsSeparatorSwitch("--timeout", SwitchValueSeparator = " ")] public string? Timeout { get; set; } @@ -116,14 +116,14 @@ public record HelmUpgradeOptions : HelmOptions public string[]? Values { get; set; } [BooleanCommandSwitch("--verify")] - public bool? Verify { get; set; } + public virtual bool? Verify { get; set; } [CommandEqualsSeparatorSwitch("--version", SwitchValueSeparator = " ")] public string? Version { get; set; } [BooleanCommandSwitch("--wait")] - public bool? Wait { get; set; } + public virtual bool? Wait { get; set; } [BooleanCommandSwitch("--wait-for-jobs")] - public bool? WaitForJobs { get; set; } + public virtual bool? WaitForJobs { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Helm/Options/HelmVersionOptions.cs b/src/ModularPipelines.Helm/Options/HelmVersionOptions.cs index 348f316928..57d9b7500a 100644 --- a/src/ModularPipelines.Helm/Options/HelmVersionOptions.cs +++ b/src/ModularPipelines.Helm/Options/HelmVersionOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Helm.Options; public record HelmVersionOptions : HelmOptions { [BooleanCommandSwitch("--short")] - public bool? Short { get; set; } + public virtual bool? Short { get; set; } [CommandEqualsSeparatorSwitch("--template", SwitchValueSeparator = " ")] public string? Template { get; set; } diff --git a/src/ModularPipelines.Kubernetes/Kubernetes.cs b/src/ModularPipelines.Kubernetes/Kubernetes.cs index a5b39f6b26..fce9719f3a 100644 --- a/src/ModularPipelines.Kubernetes/Kubernetes.cs +++ b/src/ModularPipelines.Kubernetes/Kubernetes.cs @@ -15,577 +15,577 @@ public Kubernetes(ICommand command) _command = command; } - public async Task Alpha(KubernetesAlphaOptions options, CancellationToken token = default) + public virtual async Task Alpha(KubernetesAlphaOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Annotate(KubernetesAnnotateOptions options, CancellationToken token = default) + public virtual async Task Annotate(KubernetesAnnotateOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task ApiResources(KubernetesApiResourcesOptions options, + public virtual async Task ApiResources(KubernetesApiResourcesOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task ApiVersions(KubernetesApiVersionsOptions options, + public virtual async Task ApiVersions(KubernetesApiVersionsOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task ApplyEditLastApplied(KubernetesApplyEditLastAppliedOptions options, + public virtual async Task ApplyEditLastApplied(KubernetesApplyEditLastAppliedOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Apply(KubernetesApplyOptions options, CancellationToken token = default) + public virtual async Task Apply(KubernetesApplyOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task ApplySetLastApplied(KubernetesApplySetLastAppliedOptions options, + public virtual async Task ApplySetLastApplied(KubernetesApplySetLastAppliedOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task ApplyViewLastApplied(KubernetesApplyViewLastAppliedOptions options, + public virtual async Task ApplyViewLastApplied(KubernetesApplyViewLastAppliedOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Attach(KubernetesAttachOptions options, CancellationToken token = default) + public virtual async Task Attach(KubernetesAttachOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task AuthCanI(KubernetesAuthCanIOptions options, CancellationToken token = default) + public virtual async Task AuthCanI(KubernetesAuthCanIOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Auth(KubernetesAuthOptions options, CancellationToken token = default) + public virtual async Task Auth(KubernetesAuthOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task AuthReconcile(KubernetesAuthReconcileOptions options, + public virtual async Task AuthReconcile(KubernetesAuthReconcileOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Autoscale(KubernetesAutoscaleOptions options, CancellationToken token = default) + public virtual async Task Autoscale(KubernetesAutoscaleOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task CertificateApprove(KubernetesCertificateApproveOptions options, + public virtual async Task CertificateApprove(KubernetesCertificateApproveOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task CertificateDeny(KubernetesCertificateDenyOptions options, + public virtual async Task CertificateDeny(KubernetesCertificateDenyOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Certificate(KubernetesCertificateOptions options, + public virtual async Task Certificate(KubernetesCertificateOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task ClusterInfoDump(KubernetesClusterInfoDumpOptions options, + public virtual async Task ClusterInfoDump(KubernetesClusterInfoDumpOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task ClusterInfo(KubernetesClusterInfoOptions options, + public virtual async Task ClusterInfo(KubernetesClusterInfoOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Completion(KubernetesCompletionOptions options, CancellationToken token = default) + public virtual async Task Completion(KubernetesCompletionOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task ConfigCurrentContext(KubernetesConfigCurrentContextOptions options, + public virtual async Task ConfigCurrentContext(KubernetesConfigCurrentContextOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task ConfigDeleteCluster(KubernetesConfigDeleteClusterOptions options, + public virtual async Task ConfigDeleteCluster(KubernetesConfigDeleteClusterOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task ConfigDeleteContext(KubernetesConfigDeleteContextOptions options, + public virtual async Task ConfigDeleteContext(KubernetesConfigDeleteContextOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task ConfigDeleteUser(KubernetesConfigDeleteUserOptions options, + public virtual async Task ConfigDeleteUser(KubernetesConfigDeleteUserOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task ConfigGetClusters(KubernetesConfigGetClustersOptions options, + public virtual async Task ConfigGetClusters(KubernetesConfigGetClustersOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task ConfigGetContexts(KubernetesConfigGetContextsOptions options, + public virtual async Task ConfigGetContexts(KubernetesConfigGetContextsOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task ConfigGetUsers(KubernetesConfigGetUsersOptions options, + public virtual async Task ConfigGetUsers(KubernetesConfigGetUsersOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Config(KubernetesConfigOptions options, CancellationToken token = default) + public virtual async Task Config(KubernetesConfigOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task ConfigRenameContext(KubernetesConfigRenameContextOptions options, + public virtual async Task ConfigRenameContext(KubernetesConfigRenameContextOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task ConfigSetCluster(KubernetesConfigSetClusterOptions options, + public virtual async Task ConfigSetCluster(KubernetesConfigSetClusterOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task ConfigSetContext(KubernetesConfigSetContextOptions options, + public virtual async Task ConfigSetContext(KubernetesConfigSetContextOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task ConfigSetCredentials(KubernetesConfigSetCredentialsOptions options, + public virtual async Task ConfigSetCredentials(KubernetesConfigSetCredentialsOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task ConfigSet(KubernetesConfigSetOptions options, CancellationToken token = default) + public virtual async Task ConfigSet(KubernetesConfigSetOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task ConfigUnset(KubernetesConfigUnsetOptions options, + public virtual async Task ConfigUnset(KubernetesConfigUnsetOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task ConfigUseContext(KubernetesConfigUseContextOptions options, + public virtual async Task ConfigUseContext(KubernetesConfigUseContextOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task ConfigView(KubernetesConfigViewOptions options, CancellationToken token = default) + public virtual async Task ConfigView(KubernetesConfigViewOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Cordon(KubernetesCordonOptions options, CancellationToken token = default) + public virtual async Task Cordon(KubernetesCordonOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Cp(KubernetesCpOptions options, CancellationToken token = default) + public virtual async Task Cp(KubernetesCpOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task CreateClusterRoleBinding(KubernetesCreateClusterRoleBindingOptions options, + public virtual async Task CreateClusterRoleBinding(KubernetesCreateClusterRoleBindingOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task CreateClusterRole(KubernetesCreateClusterRoleOptions options, + public virtual async Task CreateClusterRole(KubernetesCreateClusterRoleOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task CreateConfigMap(KubernetesCreateConfigMapOptions options, + public virtual async Task CreateConfigMap(KubernetesCreateConfigMapOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task CreateCronJob(KubernetesCreateCronJobOptions options, + public virtual async Task CreateCronJob(KubernetesCreateCronJobOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task CreateDeployment(KubernetesCreateDeploymentOptions options, + public virtual async Task CreateDeployment(KubernetesCreateDeploymentOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task CreateIngress(KubernetesCreateIngressOptions options, + public virtual async Task CreateIngress(KubernetesCreateIngressOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task CreateJob(KubernetesCreateJobOptions options, CancellationToken token = default) + public virtual async Task CreateJob(KubernetesCreateJobOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task CreateNamespace(KubernetesCreateNamespaceOptions options, + public virtual async Task CreateNamespace(KubernetesCreateNamespaceOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Create(KubernetesCreateOptions options, CancellationToken token = default) + public virtual async Task Create(KubernetesCreateOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task CreatePodDisruptionBudget(KubernetesCreatePodDisruptionBudgetOptions options, + public virtual async Task CreatePodDisruptionBudget(KubernetesCreatePodDisruptionBudgetOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task CreatePriorityClass(KubernetesCreatePriorityClassOptions options, + public virtual async Task CreatePriorityClass(KubernetesCreatePriorityClassOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task CreateQuota(KubernetesCreateQuotaOptions options, + public virtual async Task CreateQuota(KubernetesCreateQuotaOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task CreateRoleBinding(KubernetesCreateRoleBindingOptions options, + public virtual async Task CreateRoleBinding(KubernetesCreateRoleBindingOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task CreateRole(KubernetesCreateRoleOptions options, CancellationToken token = default) + public virtual async Task CreateRole(KubernetesCreateRoleOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task CreateSecretDockerRegistry(KubernetesCreateSecretDockerRegistryOptions options, + public virtual async Task CreateSecretDockerRegistry(KubernetesCreateSecretDockerRegistryOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task CreateSecretGeneric(KubernetesCreateSecretGenericOptions options, + public virtual async Task CreateSecretGeneric(KubernetesCreateSecretGenericOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task CreateSecret(KubernetesCreateSecretOptions options, + public virtual async Task CreateSecret(KubernetesCreateSecretOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task CreateSecretTls(KubernetesCreateSecretTlsOptions options, + public virtual async Task CreateSecretTls(KubernetesCreateSecretTlsOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task CreateServiceAccount(KubernetesCreateServiceAccountOptions options, + public virtual async Task CreateServiceAccount(KubernetesCreateServiceAccountOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task CreateServiceClusterip(KubernetesCreateServiceClusteripOptions options, + public virtual async Task CreateServiceClusterip(KubernetesCreateServiceClusteripOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task CreateServiceExternalname(KubernetesCreateServiceExternalnameOptions options, + public virtual async Task CreateServiceExternalname(KubernetesCreateServiceExternalnameOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task CreateServiceLoadbalancer(KubernetesCreateServiceLoadbalancerOptions options, + public virtual async Task CreateServiceLoadbalancer(KubernetesCreateServiceLoadbalancerOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task CreateServiceNodePort(KubernetesCreateServiceNodePortOptions options, + public virtual async Task CreateServiceNodePort(KubernetesCreateServiceNodePortOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task CreateService(KubernetesCreateServiceOptions options, + public virtual async Task CreateService(KubernetesCreateServiceOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Debug(KubernetesDebugOptions options, CancellationToken token = default) + public virtual async Task Debug(KubernetesDebugOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Delete(KubernetesDeleteOptions options, CancellationToken token = default) + public virtual async Task Delete(KubernetesDeleteOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Describe(KubernetesDescribeOptions options, CancellationToken token = default) + public virtual async Task Describe(KubernetesDescribeOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Diff(KubernetesDiffOptions options, CancellationToken token = default) + public virtual async Task Diff(KubernetesDiffOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Drain(KubernetesDrainOptions options, CancellationToken token = default) + public virtual async Task Drain(KubernetesDrainOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Edit(KubernetesEditOptions options, CancellationToken token = default) + public virtual async Task Edit(KubernetesEditOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Exec(KubernetesExecOptions options, CancellationToken token = default) + public virtual async Task Exec(KubernetesExecOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Explain(KubernetesExplainOptions options, CancellationToken token = default) + public virtual async Task Explain(KubernetesExplainOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Expose(KubernetesExposeOptions options, CancellationToken token = default) + public virtual async Task Expose(KubernetesExposeOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Get(KubernetesGetOptions options, CancellationToken token = default) + public virtual async Task Get(KubernetesGetOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Kustomize(KubernetesKustomizeOptions options, CancellationToken token = default) + public virtual async Task Kustomize(KubernetesKustomizeOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Label(KubernetesLabelOptions options, CancellationToken token = default) + public virtual async Task Label(KubernetesLabelOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Logs(KubernetesLogsOptions options, CancellationToken token = default) + public virtual async Task Logs(KubernetesLogsOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Options(KubernetesOptionsOptions kubernetesOptions, CancellationToken token = default) + public virtual async Task Options(KubernetesOptionsOptions kubernetesOptions, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(kubernetesOptions, token); } - public async Task Patch(KubernetesPatchOptions options, CancellationToken token = default) + public virtual async Task Patch(KubernetesPatchOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task PluginList(KubernetesPluginListOptions options, CancellationToken token = default) + public virtual async Task PluginList(KubernetesPluginListOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Plugin(KubernetesPluginOptions options, CancellationToken token = default) + public virtual async Task Plugin(KubernetesPluginOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task PortForward(KubernetesPortForwardOptions options, + public virtual async Task PortForward(KubernetesPortForwardOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Proxy(KubernetesProxyOptions options, CancellationToken token = default) + public virtual async Task Proxy(KubernetesProxyOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Replace(KubernetesReplaceOptions options, CancellationToken token = default) + public virtual async Task Replace(KubernetesReplaceOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task RolloutHistory(KubernetesRolloutHistoryOptions options, + public virtual async Task RolloutHistory(KubernetesRolloutHistoryOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Rollout(KubernetesRolloutOptions options, CancellationToken token = default) + public virtual async Task Rollout(KubernetesRolloutOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task RolloutPause(KubernetesRolloutPauseOptions options, + public virtual async Task RolloutPause(KubernetesRolloutPauseOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task RolloutRestart(KubernetesRolloutRestartOptions options, + public virtual async Task RolloutRestart(KubernetesRolloutRestartOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task RolloutResume(KubernetesRolloutResumeOptions options, + public virtual async Task RolloutResume(KubernetesRolloutResumeOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task RolloutStatus(KubernetesRolloutStatusOptions options, + public virtual async Task RolloutStatus(KubernetesRolloutStatusOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task RolloutUndo(KubernetesRolloutUndoOptions options, + public virtual async Task RolloutUndo(KubernetesRolloutUndoOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Run(KubernetesRunOptions options, CancellationToken token = default) + public virtual async Task Run(KubernetesRunOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Scale(KubernetesScaleOptions options, CancellationToken token = default) + public virtual async Task Scale(KubernetesScaleOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task SetEnv(KubernetesSetEnvOptions options, CancellationToken token = default) + public virtual async Task SetEnv(KubernetesSetEnvOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task SetImage(KubernetesSetImageOptions options, CancellationToken token = default) + public virtual async Task SetImage(KubernetesSetImageOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Set(KubernetesSetOptions options, CancellationToken token = default) + public virtual async Task Set(KubernetesSetOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task SetResources(KubernetesSetResourcesOptions options, + public virtual async Task SetResources(KubernetesSetResourcesOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task SetSelector(KubernetesSetSelectorOptions options, + public virtual async Task SetSelector(KubernetesSetSelectorOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task SetServiceAccount(KubernetesSetServiceAccountOptions options, + public virtual async Task SetServiceAccount(KubernetesSetServiceAccountOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task SetSubject(KubernetesSetSubjectOptions options, CancellationToken token = default) + public virtual async Task SetSubject(KubernetesSetSubjectOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Taint(KubernetesTaintOptions options, CancellationToken token = default) + public virtual async Task Taint(KubernetesTaintOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task TopNode(KubernetesTopNodeOptions options, CancellationToken token = default) + public virtual async Task TopNode(KubernetesTopNodeOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Top(KubernetesTopOptions options, CancellationToken token = default) + public virtual async Task Top(KubernetesTopOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task TopPod(KubernetesTopPodOptions options, CancellationToken token = default) + public virtual async Task TopPod(KubernetesTopPodOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Uncordon(KubernetesUncordonOptions options, CancellationToken token = default) + public virtual async Task Uncordon(KubernetesUncordonOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Version(KubernetesVersionOptions options, CancellationToken token = default) + public virtual async Task Version(KubernetesVersionOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Wait(KubernetesWaitOptions options, CancellationToken token = default) + public virtual async Task Wait(KubernetesWaitOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesAlphaOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesAlphaOptions.cs index c7562e1088..807607b148 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesAlphaOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesAlphaOptions.cs @@ -11,13 +11,13 @@ public record KubernetesAlphaOptions : KubernetesOptions public string? ApiGroup { get; set; } [BooleanCommandSwitch("--cached")] - public bool? Cached { get; set; } + public virtual bool? Cached { get; set; } [BooleanCommandSwitch("--namespaced")] - public bool? Namespaced { get; set; } + public virtual bool? Namespaced { get; set; } [BooleanCommandSwitch("--no-headers")] - public bool? NoHeaders { get; set; } + public virtual bool? NoHeaders { get; set; } [CommandEqualsSeparatorSwitch("--output", SwitchValueSeparator = " ")] public string? Output { get; set; } diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesAnnotateOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesAnnotateOptions.cs index 8d9373213f..8e8d08ec2b 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesAnnotateOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesAnnotateOptions.cs @@ -8,13 +8,13 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesAnnotateOptions : KubernetesOptions { [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } [BooleanCommandSwitch("--all-namespaces")] - public bool? AllNamespaces { get; set; } + public virtual bool? AllNamespaces { get; set; } [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [CommandEqualsSeparatorSwitch("--dry-run", SwitchValueSeparator = " ")] public string? DryRun { get; set; } @@ -32,22 +32,22 @@ public record KubernetesAnnotateOptions : KubernetesOptions public string? Kustomize { get; set; } [BooleanCommandSwitch("--list")] - public bool? List { get; set; } + public virtual bool? List { get; set; } [BooleanCommandSwitch("--local")] - public bool? Local { get; set; } + public virtual bool? Local { get; set; } [CommandEqualsSeparatorSwitch("--output", SwitchValueSeparator = " ")] public string? Output { get; set; } [BooleanCommandSwitch("--overwrite")] - public bool? Overwrite { get; set; } + public virtual bool? Overwrite { get; set; } [BooleanCommandSwitch("--record")] - public bool? Record { get; set; } + public virtual bool? Record { get; set; } [BooleanCommandSwitch("--recursive")] - public bool? Recursive { get; set; } + public virtual bool? Recursive { get; set; } [CommandEqualsSeparatorSwitch("--resource-version", SwitchValueSeparator = " ")] public string? ResourceVersion { get; set; } @@ -56,7 +56,7 @@ public record KubernetesAnnotateOptions : KubernetesOptions public string? Selector { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--template", SwitchValueSeparator = " ")] public string? Template { get; set; } diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesApiResourcesOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesApiResourcesOptions.cs index a2a76eadb2..938414cfa4 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesApiResourcesOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesApiResourcesOptions.cs @@ -11,13 +11,13 @@ public record KubernetesApiResourcesOptions : KubernetesOptions public string? ApiGroup { get; set; } [BooleanCommandSwitch("--cached")] - public bool? Cached { get; set; } + public virtual bool? Cached { get; set; } [BooleanCommandSwitch("--namespaced")] - public bool? Namespaced { get; set; } + public virtual bool? Namespaced { get; set; } [BooleanCommandSwitch("--no-headers")] - public bool? NoHeaders { get; set; } + public virtual bool? NoHeaders { get; set; } [CommandEqualsSeparatorSwitch("--output", SwitchValueSeparator = " ")] public string? Output { get; set; } diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesApiVersionsOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesApiVersionsOptions.cs index ee4b2caa9c..a52a80e914 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesApiVersionsOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesApiVersionsOptions.cs @@ -8,13 +8,13 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesApiVersionsOptions : KubernetesOptions { [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [CommandEqualsSeparatorSwitch("--filename", SwitchValueSeparator = " ")] public string[]? Filename { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [CommandEqualsSeparatorSwitch("--kustomize", SwitchValueSeparator = " ")] public string? Kustomize { get; set; } @@ -23,10 +23,10 @@ public record KubernetesApiVersionsOptions : KubernetesOptions public string? Output { get; set; } [BooleanCommandSwitch("--recursive")] - public bool? Recursive { get; set; } + public virtual bool? Recursive { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--template", SwitchValueSeparator = " ")] public string? Template { get; set; } diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesApplyEditLastAppliedOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesApplyEditLastAppliedOptions.cs index 23a54f25d5..6c6fa3dd23 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesApplyEditLastAppliedOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesApplyEditLastAppliedOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesApplyEditLastAppliedOptions([property: PositionalArgument] string Name) : KubernetesOptions { [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [CommandEqualsSeparatorSwitch("--field-manager", SwitchValueSeparator = " ")] public string? FieldManager { get; set; } @@ -23,17 +23,17 @@ public record KubernetesApplyEditLastAppliedOptions([property: PositionalArgumen public string? Output { get; set; } [BooleanCommandSwitch("--record")] - public bool? Record { get; set; } + public virtual bool? Record { get; set; } [BooleanCommandSwitch("--recursive")] - public bool? Recursive { get; set; } + public virtual bool? Recursive { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--template", SwitchValueSeparator = " ")] public string? Template { get; set; } [BooleanCommandSwitch("--windows-line-endings")] - public bool? WindowsLineEndings { get; set; } + public virtual bool? WindowsLineEndings { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesApplyOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesApplyOptions.cs index 15bc95b9dc..fb78044623 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesApplyOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesApplyOptions.cs @@ -8,10 +8,10 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesApplyOptions : KubernetesOptions { [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [CommandEqualsSeparatorSwitch("--cascade", SwitchValueSeparator = " ")] public string? Cascade { get; set; } @@ -26,10 +26,10 @@ public record KubernetesApplyOptions : KubernetesOptions public string[]? Filename { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [BooleanCommandSwitch("--force-conflicts")] - public bool? ForceConflicts { get; set; } + public virtual bool? ForceConflicts { get; set; } [CommandEqualsSeparatorSwitch("--grace-period", SwitchValueSeparator = " ")] public int? GracePeriod { get; set; } @@ -38,34 +38,34 @@ public record KubernetesApplyOptions : KubernetesOptions public string? Kustomize { get; set; } [BooleanCommandSwitch("--openapi-patch")] - public bool? OpenapiPatch { get; set; } + public virtual bool? OpenapiPatch { get; set; } [CommandEqualsSeparatorSwitch("--output", SwitchValueSeparator = " ")] public string? Output { get; set; } [BooleanCommandSwitch("--overwrite")] - public bool? Overwrite { get; set; } + public virtual bool? Overwrite { get; set; } [BooleanCommandSwitch("--prune")] - public bool? Prune { get; set; } + public virtual bool? Prune { get; set; } [CommandEqualsSeparatorSwitch("--prune-whitelist", SwitchValueSeparator = " ")] public string[]? PruneWhitelist { get; set; } [BooleanCommandSwitch("--record")] - public bool? Record { get; set; } + public virtual bool? Record { get; set; } [BooleanCommandSwitch("--recursive")] - public bool? Recursive { get; set; } + public virtual bool? Recursive { get; set; } [CommandEqualsSeparatorSwitch("--selector", SwitchValueSeparator = " ")] public string? Selector { get; set; } [BooleanCommandSwitch("--server-side")] - public bool? ServerSide { get; set; } + public virtual bool? ServerSide { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--template", SwitchValueSeparator = " ")] public string? Template { get; set; } @@ -74,8 +74,8 @@ public record KubernetesApplyOptions : KubernetesOptions public string? Timeout { get; set; } [BooleanCommandSwitch("--validate")] - public bool? Validate { get; set; } + public virtual bool? Validate { get; set; } [BooleanCommandSwitch("--wait")] - public bool? Wait { get; set; } + public virtual bool? Wait { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesApplySetLastAppliedOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesApplySetLastAppliedOptions.cs index 09f46106e3..c57ff144b1 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesApplySetLastAppliedOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesApplySetLastAppliedOptions.cs @@ -8,10 +8,10 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesApplySetLastAppliedOptions : KubernetesOptions { [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [BooleanCommandSwitch("--create-annotation")] - public bool? CreateAnnotation { get; set; } + public virtual bool? CreateAnnotation { get; set; } [CommandEqualsSeparatorSwitch("--dry-run", SwitchValueSeparator = " ")] public string? DryRun { get; set; } @@ -23,7 +23,7 @@ public record KubernetesApplySetLastAppliedOptions : KubernetesOptions public string? Output { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--template", SwitchValueSeparator = " ")] public string? Template { get; set; } diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesApplyViewLastAppliedOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesApplyViewLastAppliedOptions.cs index 5c56594cc2..70c7de2f41 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesApplyViewLastAppliedOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesApplyViewLastAppliedOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesApplyViewLastAppliedOptions([property: PositionalArgument] string Name) : KubernetesOptions { [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } [CommandEqualsSeparatorSwitch("--filename", SwitchValueSeparator = " ")] public string[]? Filename { get; set; } @@ -20,7 +20,7 @@ public record KubernetesApplyViewLastAppliedOptions([property: PositionalArgumen public string? Output { get; set; } [BooleanCommandSwitch("--recursive")] - public bool? Recursive { get; set; } + public virtual bool? Recursive { get; set; } [CommandEqualsSeparatorSwitch("--selector", SwitchValueSeparator = " ")] public string? Selector { get; set; } diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesAttachOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesAttachOptions.cs index 679c809aba..35fac5f61a 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesAttachOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesAttachOptions.cs @@ -14,11 +14,11 @@ public record KubernetesAttachOptions([property: PositionalArgument] string Name public string? PodRunningTimeout { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } [BooleanCommandSwitch("--stdin")] - public bool? Stdin { get; set; } + public virtual bool? Stdin { get; set; } [BooleanCommandSwitch("--tty")] - public bool? Tty { get; set; } + public virtual bool? Tty { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesAuthCanIOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesAuthCanIOptions.cs index 1794f5a4c3..5c858969a4 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesAuthCanIOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesAuthCanIOptions.cs @@ -8,16 +8,16 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesAuthCanIOptions([property: PositionalArgument] string Verb) : KubernetesOptions { [BooleanCommandSwitch("--all-namespaces")] - public bool? AllNamespaces { get; set; } + public virtual bool? AllNamespaces { get; set; } [BooleanCommandSwitch("--list")] - public bool? List { get; set; } + public virtual bool? List { get; set; } [BooleanCommandSwitch("--no-headers")] - public bool? NoHeaders { get; set; } + public virtual bool? NoHeaders { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } [CommandEqualsSeparatorSwitch("--subresource", SwitchValueSeparator = " ")] public string? Subresource { get; set; } diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesAuthOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesAuthOptions.cs index f19c4118d2..4895821654 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesAuthOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesAuthOptions.cs @@ -8,16 +8,16 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesAuthOptions : KubernetesOptions { [BooleanCommandSwitch("--all-namespaces")] - public bool? AllNamespaces { get; set; } + public virtual bool? AllNamespaces { get; set; } [BooleanCommandSwitch("--list")] - public bool? List { get; set; } + public virtual bool? List { get; set; } [BooleanCommandSwitch("--no-headers")] - public bool? NoHeaders { get; set; } + public virtual bool? NoHeaders { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } [CommandEqualsSeparatorSwitch("--subresource", SwitchValueSeparator = " ")] public string? Subresource { get; set; } diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesAuthReconcileOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesAuthReconcileOptions.cs index 4873e0a3a2..cec5023336 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesAuthReconcileOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesAuthReconcileOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesAuthReconcileOptions : KubernetesOptions { [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [CommandEqualsSeparatorSwitch("--dry-run", SwitchValueSeparator = " ")] public string? DryRun { get; set; } @@ -23,16 +23,16 @@ public record KubernetesAuthReconcileOptions : KubernetesOptions public string? Output { get; set; } [BooleanCommandSwitch("--recursive")] - public bool? Recursive { get; set; } + public virtual bool? Recursive { get; set; } [BooleanCommandSwitch("--remove-extra-permissions")] - public bool? RemoveExtraPermissions { get; set; } + public virtual bool? RemoveExtraPermissions { get; set; } [BooleanCommandSwitch("--remove-extra-subjects")] - public bool? RemoveExtraSubjects { get; set; } + public virtual bool? RemoveExtraSubjects { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--template", SwitchValueSeparator = " ")] public string? Template { get; set; } diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesAutoscaleOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesAutoscaleOptions.cs index b123d7e6fe..06527e40a6 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesAutoscaleOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesAutoscaleOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesAutoscaleOptions : KubernetesOptions { [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [CommandEqualsSeparatorSwitch("--cpu-percent", SwitchValueSeparator = " ")] public int? CpuPercent { get; set; } @@ -38,16 +38,16 @@ public record KubernetesAutoscaleOptions : KubernetesOptions public string? Output { get; set; } [BooleanCommandSwitch("--record")] - public bool? Record { get; set; } + public virtual bool? Record { get; set; } [BooleanCommandSwitch("--recursive")] - public bool? Recursive { get; set; } + public virtual bool? Recursive { get; set; } [BooleanCommandSwitch("--save-config")] - public bool? SaveConfig { get; set; } + public virtual bool? SaveConfig { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--template", SwitchValueSeparator = " ")] public string? Template { get; set; } diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesCertificateApproveOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesCertificateApproveOptions.cs index 44db715291..efc912f369 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesCertificateApproveOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesCertificateApproveOptions.cs @@ -8,13 +8,13 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesCertificateApproveOptions : KubernetesOptions { [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [CommandEqualsSeparatorSwitch("--filename", SwitchValueSeparator = " ")] public string[]? Filename { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [CommandEqualsSeparatorSwitch("--kustomize", SwitchValueSeparator = " ")] public string? Kustomize { get; set; } @@ -23,10 +23,10 @@ public record KubernetesCertificateApproveOptions : KubernetesOptions public string? Output { get; set; } [BooleanCommandSwitch("--recursive")] - public bool? Recursive { get; set; } + public virtual bool? Recursive { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--template", SwitchValueSeparator = " ")] public string? Template { get; set; } diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesCertificateDenyOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesCertificateDenyOptions.cs index 93c9dce3b9..c4ebbff39c 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesCertificateDenyOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesCertificateDenyOptions.cs @@ -8,13 +8,13 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesCertificateDenyOptions : KubernetesOptions { [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [CommandEqualsSeparatorSwitch("--filename", SwitchValueSeparator = " ")] public string[]? Filename { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [CommandEqualsSeparatorSwitch("--kustomize", SwitchValueSeparator = " ")] public string? Kustomize { get; set; } @@ -23,10 +23,10 @@ public record KubernetesCertificateDenyOptions : KubernetesOptions public string? Output { get; set; } [BooleanCommandSwitch("--recursive")] - public bool? Recursive { get; set; } + public virtual bool? Recursive { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--template", SwitchValueSeparator = " ")] public string? Template { get; set; } diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesCertificateOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesCertificateOptions.cs index fc3a2cb758..de12fd5b6e 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesCertificateOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesCertificateOptions.cs @@ -8,13 +8,13 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesCertificateOptions([property: PositionalArgument] string Subcommand) : KubernetesOptions { [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [CommandEqualsSeparatorSwitch("--filename", SwitchValueSeparator = " ")] public string[]? Filename { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [CommandEqualsSeparatorSwitch("--kustomize", SwitchValueSeparator = " ")] public string? Kustomize { get; set; } @@ -23,10 +23,10 @@ public record KubernetesCertificateOptions([property: PositionalArgument] string public string? Output { get; set; } [BooleanCommandSwitch("--recursive")] - public bool? Recursive { get; set; } + public virtual bool? Recursive { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--template", SwitchValueSeparator = " ")] public string? Template { get; set; } diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesClusterInfoDumpOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesClusterInfoDumpOptions.cs index 6f10a27cee..093c0c1872 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesClusterInfoDumpOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesClusterInfoDumpOptions.cs @@ -8,10 +8,10 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesClusterInfoDumpOptions : KubernetesOptions { [BooleanCommandSwitch("--all-namespaces")] - public bool? AllNamespaces { get; set; } + public virtual bool? AllNamespaces { get; set; } [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [CommandEqualsSeparatorSwitch("--namespaces", SwitchValueSeparator = " ")] public string[]? Namespaces { get; set; } @@ -26,7 +26,7 @@ public record KubernetesClusterInfoDumpOptions : KubernetesOptions public string? PodRunningTimeout { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--template", SwitchValueSeparator = " ")] public string? Template { get; set; } diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesClusterInfoOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesClusterInfoOptions.cs index faeb65b17d..8e53ec6aca 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesClusterInfoOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesClusterInfoOptions.cs @@ -8,10 +8,10 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesClusterInfoOptions : KubernetesOptions { [BooleanCommandSwitch("--all-namespaces")] - public bool? AllNamespaces { get; set; } + public virtual bool? AllNamespaces { get; set; } [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [CommandEqualsSeparatorSwitch("--namespaces", SwitchValueSeparator = " ")] public string[]? Namespaces { get; set; } @@ -26,7 +26,7 @@ public record KubernetesClusterInfoOptions : KubernetesOptions public string? PodRunningTimeout { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--template", SwitchValueSeparator = " ")] public string? Template { get; set; } diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesCompletionOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesCompletionOptions.cs index 7eecc95bd8..02d000fe7e 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesCompletionOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesCompletionOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesCompletionOptions([property: PositionalArgument] string Shell) : KubernetesOptions { [BooleanCommandSwitch("--no-headers")] - public bool? NoHeaders { get; set; } + public virtual bool? NoHeaders { get; set; } [CommandEqualsSeparatorSwitch("--output", SwitchValueSeparator = " ")] public string? Output { get; set; } diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesConfigCurrentContextOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesConfigCurrentContextOptions.cs index f99495ceec..dabb44e156 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesConfigCurrentContextOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesConfigCurrentContextOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesConfigCurrentContextOptions : KubernetesOptions { [BooleanCommandSwitch("--no-headers")] - public bool? NoHeaders { get; set; } + public virtual bool? NoHeaders { get; set; } [CommandEqualsSeparatorSwitch("--output", SwitchValueSeparator = " ")] public string? Output { get; set; } diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesConfigDeleteClusterOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesConfigDeleteClusterOptions.cs index 384ab54073..dbe2068847 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesConfigDeleteClusterOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesConfigDeleteClusterOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesConfigDeleteClusterOptions([property: PositionalArgument] string Name) : KubernetesOptions { [BooleanCommandSwitch("--no-headers")] - public bool? NoHeaders { get; set; } + public virtual bool? NoHeaders { get; set; } [CommandEqualsSeparatorSwitch("--output", SwitchValueSeparator = " ")] public string? Output { get; set; } diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesConfigDeleteContextOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesConfigDeleteContextOptions.cs index aa480a637d..00607714bd 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesConfigDeleteContextOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesConfigDeleteContextOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesConfigDeleteContextOptions([property: PositionalArgument] string Name) : KubernetesOptions { [BooleanCommandSwitch("--no-headers")] - public bool? NoHeaders { get; set; } + public virtual bool? NoHeaders { get; set; } [CommandEqualsSeparatorSwitch("--output", SwitchValueSeparator = " ")] public string? Output { get; set; } diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesConfigDeleteUserOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesConfigDeleteUserOptions.cs index 685aa3bd7d..d6ce6b7e28 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesConfigDeleteUserOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesConfigDeleteUserOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesConfigDeleteUserOptions([property: PositionalArgument] string Name) : KubernetesOptions { [BooleanCommandSwitch("--no-headers")] - public bool? NoHeaders { get; set; } + public virtual bool? NoHeaders { get; set; } [CommandEqualsSeparatorSwitch("--output", SwitchValueSeparator = " ")] public string? Output { get; set; } diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesConfigGetClustersOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesConfigGetClustersOptions.cs index b21f9216b2..de50a04e35 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesConfigGetClustersOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesConfigGetClustersOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesConfigGetClustersOptions : KubernetesOptions { [BooleanCommandSwitch("--no-headers")] - public bool? NoHeaders { get; set; } + public virtual bool? NoHeaders { get; set; } [CommandEqualsSeparatorSwitch("--output", SwitchValueSeparator = " ")] public string? Output { get; set; } diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesConfigGetContextsOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesConfigGetContextsOptions.cs index ffe11b179d..3414aeb1a7 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesConfigGetContextsOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesConfigGetContextsOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesConfigGetContextsOptions : KubernetesOptions { [BooleanCommandSwitch("--no-headers")] - public bool? NoHeaders { get; set; } + public virtual bool? NoHeaders { get; set; } [CommandEqualsSeparatorSwitch("--output", SwitchValueSeparator = " ")] public string? Output { get; set; } diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesConfigGetUsersOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesConfigGetUsersOptions.cs index 782d45e225..63bacc4b04 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesConfigGetUsersOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesConfigGetUsersOptions.cs @@ -8,5 +8,5 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesConfigGetUsersOptions : KubernetesOptions { [BooleanCommandSwitch("--set-raw-bytes")] - public bool? SetRawBytes { get; set; } + public virtual bool? SetRawBytes { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesConfigOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesConfigOptions.cs index 14f349f0ce..b0def477a6 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesConfigOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesConfigOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesConfigOptions([property: PositionalArgument] string Subcommand) : KubernetesOptions { [BooleanCommandSwitch("--no-headers")] - public bool? NoHeaders { get; set; } + public virtual bool? NoHeaders { get; set; } [CommandEqualsSeparatorSwitch("--output", SwitchValueSeparator = " ")] public string? Output { get; set; } diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesConfigRenameContextOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesConfigRenameContextOptions.cs index 319c199004..59377aa76f 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesConfigRenameContextOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesConfigRenameContextOptions.cs @@ -8,5 +8,5 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesConfigRenameContextOptions([property: PositionalArgument] string ContextName) : KubernetesOptions { [BooleanCommandSwitch("--set-raw-bytes")] - public bool? SetRawBytes { get; set; } + public virtual bool? SetRawBytes { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesConfigSetClusterOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesConfigSetClusterOptions.cs index 11b520f9e9..9673867de6 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesConfigSetClusterOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesConfigSetClusterOptions.cs @@ -8,5 +8,5 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesConfigSetClusterOptions([property: PositionalArgument] string Name) : KubernetesOptions { [BooleanCommandSwitch("--embed-certs")] - public bool? EmbedCerts { get; set; } + public virtual bool? EmbedCerts { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesConfigSetContextOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesConfigSetContextOptions.cs index f77876bbca..db16f657f2 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesConfigSetContextOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesConfigSetContextOptions.cs @@ -8,5 +8,5 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesConfigSetContextOptions([property: PositionalArgument] string Name) : KubernetesOptions { [BooleanCommandSwitch("--current")] - public bool? Current { get; set; } + public virtual bool? Current { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesConfigSetCredentialsOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesConfigSetCredentialsOptions.cs index 50c4cc6e99..e18bbcbd54 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesConfigSetCredentialsOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesConfigSetCredentialsOptions.cs @@ -14,7 +14,7 @@ public record KubernetesConfigSetCredentialsOptions([property: PositionalArgumen public string[]? AuthProviderArg { get; set; } [BooleanCommandSwitch("--embed-certs")] - public bool? EmbedCerts { get; set; } + public virtual bool? EmbedCerts { get; set; } [CommandEqualsSeparatorSwitch("--exec-api-version", SwitchValueSeparator = " ")] public string? ExecApiVersion { get; set; } diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesConfigSetOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesConfigSetOptions.cs index fa22e74e31..0524c3845d 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesConfigSetOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesConfigSetOptions.cs @@ -8,5 +8,5 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesConfigSetOptions([property: PositionalArgument] string Property_name) : KubernetesOptions { [BooleanCommandSwitch("--set-raw-bytes")] - public bool? SetRawBytes { get; set; } + public virtual bool? SetRawBytes { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesConfigUnsetOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesConfigUnsetOptions.cs index ed860b3b66..ad991b3d2f 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesConfigUnsetOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesConfigUnsetOptions.cs @@ -8,25 +8,25 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesConfigUnsetOptions([property: PositionalArgument] string Property_name) : KubernetesOptions { [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [BooleanCommandSwitch("--flatten")] - public bool? Flatten { get; set; } + public virtual bool? Flatten { get; set; } [BooleanCommandSwitch("--merge")] - public bool? Merge { get; set; } + public virtual bool? Merge { get; set; } [BooleanCommandSwitch("--minify")] - public bool? Minify { get; set; } + public virtual bool? Minify { get; set; } [CommandEqualsSeparatorSwitch("--output", SwitchValueSeparator = " ")] public string? Output { get; set; } [BooleanCommandSwitch("--raw")] - public bool? Raw { get; set; } + public virtual bool? Raw { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--template", SwitchValueSeparator = " ")] public string? Template { get; set; } diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesConfigUseContextOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesConfigUseContextOptions.cs index 4c4fa52a66..5a7e3087bc 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesConfigUseContextOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesConfigUseContextOptions.cs @@ -8,25 +8,25 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesConfigUseContextOptions([property: PositionalArgument] string ContextName) : KubernetesOptions { [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [BooleanCommandSwitch("--flatten")] - public bool? Flatten { get; set; } + public virtual bool? Flatten { get; set; } [BooleanCommandSwitch("--merge")] - public bool? Merge { get; set; } + public virtual bool? Merge { get; set; } [BooleanCommandSwitch("--minify")] - public bool? Minify { get; set; } + public virtual bool? Minify { get; set; } [CommandEqualsSeparatorSwitch("--output", SwitchValueSeparator = " ")] public string? Output { get; set; } [BooleanCommandSwitch("--raw")] - public bool? Raw { get; set; } + public virtual bool? Raw { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--template", SwitchValueSeparator = " ")] public string? Template { get; set; } diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesConfigViewOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesConfigViewOptions.cs index d215a7a60a..a8bbb9ac9b 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesConfigViewOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesConfigViewOptions.cs @@ -8,25 +8,25 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesConfigViewOptions : KubernetesOptions { [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [BooleanCommandSwitch("--flatten")] - public bool? Flatten { get; set; } + public virtual bool? Flatten { get; set; } [BooleanCommandSwitch("--merge")] - public bool? Merge { get; set; } + public virtual bool? Merge { get; set; } [BooleanCommandSwitch("--minify")] - public bool? Minify { get; set; } + public virtual bool? Minify { get; set; } [CommandEqualsSeparatorSwitch("--output", SwitchValueSeparator = " ")] public string? Output { get; set; } [BooleanCommandSwitch("--raw")] - public bool? Raw { get; set; } + public virtual bool? Raw { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--template", SwitchValueSeparator = " ")] public string? Template { get; set; } diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesCpOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesCpOptions.cs index 23edc03915..e6796f853f 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesCpOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesCpOptions.cs @@ -11,5 +11,5 @@ public record KubernetesCpOptions : KubernetesOptions public string? Container { get; set; } [BooleanCommandSwitch("--no-preserve")] - public bool? NoPreserve { get; set; } + public virtual bool? NoPreserve { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesCreateClusterRoleBindingOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesCreateClusterRoleBindingOptions.cs index fd5044219a..71125c7f4c 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesCreateClusterRoleBindingOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesCreateClusterRoleBindingOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesCreateClusterRoleBindingOptions([property: PositionalArgument] string Name) : KubernetesOptions { [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [CommandEqualsSeparatorSwitch("--clusterrole", SwitchValueSeparator = " ")] public string? Clusterrole { get; set; } @@ -26,17 +26,17 @@ public record KubernetesCreateClusterRoleBindingOptions([property: PositionalArg public string? Output { get; set; } [BooleanCommandSwitch("--save-config")] - public bool? SaveConfig { get; set; } + public virtual bool? SaveConfig { get; set; } [CommandEqualsSeparatorSwitch("--serviceaccount", SwitchValueSeparator = " ")] public string[]? Serviceaccount { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--template", SwitchValueSeparator = " ")] public string? Template { get; set; } [BooleanCommandSwitch("--validate")] - public bool? Validate { get; set; } + public virtual bool? Validate { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesCreateClusterRoleOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesCreateClusterRoleOptions.cs index 0f5499df4b..516b8662db 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesCreateClusterRoleOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesCreateClusterRoleOptions.cs @@ -11,7 +11,7 @@ public record KubernetesCreateClusterRoleOptions([property: PositionalArgument] public string? AggregationRule { get; set; } [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [CommandEqualsSeparatorSwitch("--dry-run", SwitchValueSeparator = " ")] public string? DryRun { get; set; } @@ -32,16 +32,16 @@ public record KubernetesCreateClusterRoleOptions([property: PositionalArgument] public string[]? ResourceName { get; set; } [BooleanCommandSwitch("--save-config")] - public bool? SaveConfig { get; set; } + public virtual bool? SaveConfig { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--template", SwitchValueSeparator = " ")] public string? Template { get; set; } [BooleanCommandSwitch("--validate")] - public bool? Validate { get; set; } + public virtual bool? Validate { get; set; } [CommandEqualsSeparatorSwitch("--verb", SwitchValueSeparator = " ")] public string[]? Verb { get; set; } diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesCreateConfigMapOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesCreateConfigMapOptions.cs index 3fec87211e..492d5622ab 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesCreateConfigMapOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesCreateConfigMapOptions.cs @@ -8,10 +8,10 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesCreateConfigMapOptions([property: PositionalArgument] string Name) : KubernetesOptions { [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [BooleanCommandSwitch("--append-hash")] - public bool? AppendHash { get; set; } + public virtual bool? AppendHash { get; set; } [CommandEqualsSeparatorSwitch("--dry-run", SwitchValueSeparator = " ")] public string? DryRun { get; set; } @@ -32,14 +32,14 @@ public record KubernetesCreateConfigMapOptions([property: PositionalArgument] st public string? Output { get; set; } [BooleanCommandSwitch("--save-config")] - public bool? SaveConfig { get; set; } + public virtual bool? SaveConfig { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--template", SwitchValueSeparator = " ")] public string? Template { get; set; } [BooleanCommandSwitch("--validate")] - public bool? Validate { get; set; } + public virtual bool? Validate { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesCreateCronJobOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesCreateCronJobOptions.cs index c3c677e696..2122b925b1 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesCreateCronJobOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesCreateCronJobOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesCreateCronJobOptions([property: PositionalArgument] string Name) : KubernetesOptions { [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [CommandEqualsSeparatorSwitch("--dry-run", SwitchValueSeparator = " ")] public string? DryRun { get; set; } @@ -26,17 +26,17 @@ public record KubernetesCreateCronJobOptions([property: PositionalArgument] stri public string? Restart { get; set; } [BooleanCommandSwitch("--save-config")] - public bool? SaveConfig { get; set; } + public virtual bool? SaveConfig { get; set; } [CommandEqualsSeparatorSwitch("--schedule", SwitchValueSeparator = " ")] public string? Schedule { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--template", SwitchValueSeparator = " ")] public string? Template { get; set; } [BooleanCommandSwitch("--validate")] - public bool? Validate { get; set; } + public virtual bool? Validate { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesCreateDeploymentOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesCreateDeploymentOptions.cs index 2d66e0cbdc..c7b0562d87 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesCreateDeploymentOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesCreateDeploymentOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesCreateDeploymentOptions([property: PositionalArgument] string Name) : KubernetesOptions { [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [CommandEqualsSeparatorSwitch("--dry-run", SwitchValueSeparator = " ")] public string? DryRun { get; set; } @@ -29,14 +29,14 @@ public record KubernetesCreateDeploymentOptions([property: PositionalArgument] s public int? Replicas { get; set; } [BooleanCommandSwitch("--save-config")] - public bool? SaveConfig { get; set; } + public virtual bool? SaveConfig { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--template", SwitchValueSeparator = " ")] public string? Template { get; set; } [BooleanCommandSwitch("--validate")] - public bool? Validate { get; set; } + public virtual bool? Validate { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesCreateIngressOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesCreateIngressOptions.cs index 9ec68e8796..ad0b2daa83 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesCreateIngressOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesCreateIngressOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesCreateIngressOptions([property: PositionalArgument] string Name) : KubernetesOptions { [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [CommandEqualsSeparatorSwitch("--annotation", SwitchValueSeparator = " ")] public string[]? Annotation { get; set; } @@ -32,14 +32,14 @@ public record KubernetesCreateIngressOptions([property: PositionalArgument] stri public string[]? Rule { get; set; } [BooleanCommandSwitch("--save-config")] - public bool? SaveConfig { get; set; } + public virtual bool? SaveConfig { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--template", SwitchValueSeparator = " ")] public string? Template { get; set; } [BooleanCommandSwitch("--validate")] - public bool? Validate { get; set; } + public virtual bool? Validate { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesCreateJobOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesCreateJobOptions.cs index 07d7307f4b..ab7e9c8295 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesCreateJobOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesCreateJobOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesCreateJobOptions([property: PositionalArgument] string Name) : KubernetesOptions { [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [CommandEqualsSeparatorSwitch("--dry-run", SwitchValueSeparator = " ")] public string? DryRun { get; set; } @@ -26,14 +26,14 @@ public record KubernetesCreateJobOptions([property: PositionalArgument] string N public string? Output { get; set; } [BooleanCommandSwitch("--save-config")] - public bool? SaveConfig { get; set; } + public virtual bool? SaveConfig { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--template", SwitchValueSeparator = " ")] public string? Template { get; set; } [BooleanCommandSwitch("--validate")] - public bool? Validate { get; set; } + public virtual bool? Validate { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesCreateNamespaceOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesCreateNamespaceOptions.cs index 5ff820b90a..1152028661 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesCreateNamespaceOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesCreateNamespaceOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesCreateNamespaceOptions([property: PositionalArgument] string Name) : KubernetesOptions { [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [CommandEqualsSeparatorSwitch("--dry-run", SwitchValueSeparator = " ")] public string? DryRun { get; set; } @@ -20,14 +20,14 @@ public record KubernetesCreateNamespaceOptions([property: PositionalArgument] st public string? Output { get; set; } [BooleanCommandSwitch("--save-config")] - public bool? SaveConfig { get; set; } + public virtual bool? SaveConfig { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--template", SwitchValueSeparator = " ")] public string? Template { get; set; } [BooleanCommandSwitch("--validate")] - public bool? Validate { get; set; } + public virtual bool? Validate { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesCreateOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesCreateOptions.cs index 82d83b578d..eac3a0c26e 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesCreateOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesCreateOptions.cs @@ -8,13 +8,13 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesCreateOptions : KubernetesOptions { [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [CommandEqualsSeparatorSwitch("--dry-run", SwitchValueSeparator = " ")] public string? DryRun { get; set; } [BooleanCommandSwitch("--edit")] - public bool? Edit { get; set; } + public virtual bool? Edit { get; set; } [CommandEqualsSeparatorSwitch("--field-manager", SwitchValueSeparator = " ")] public string? FieldManager { get; set; } @@ -32,26 +32,26 @@ public record KubernetesCreateOptions : KubernetesOptions public string? Raw { get; set; } [BooleanCommandSwitch("--record")] - public bool? Record { get; set; } + public virtual bool? Record { get; set; } [BooleanCommandSwitch("--recursive")] - public bool? Recursive { get; set; } + public virtual bool? Recursive { get; set; } [BooleanCommandSwitch("--save-config")] - public bool? SaveConfig { get; set; } + public virtual bool? SaveConfig { get; set; } [CommandEqualsSeparatorSwitch("--selector", SwitchValueSeparator = " ")] public string? Selector { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--template", SwitchValueSeparator = " ")] public string? Template { get; set; } [BooleanCommandSwitch("--validate")] - public bool? Validate { get; set; } + public virtual bool? Validate { get; set; } [BooleanCommandSwitch("--windows-line-endings")] - public bool? WindowsLineEndings { get; set; } + public virtual bool? WindowsLineEndings { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesCreatePodDisruptionBudgetOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesCreatePodDisruptionBudgetOptions.cs index 8b57c8e516..6532f77d13 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesCreatePodDisruptionBudgetOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesCreatePodDisruptionBudgetOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesCreatePodDisruptionBudgetOptions([property: PositionalArgument] string Name) : KubernetesOptions { [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [CommandEqualsSeparatorSwitch("--dry-run", SwitchValueSeparator = " ")] public string? DryRun { get; set; } @@ -26,17 +26,17 @@ public record KubernetesCreatePodDisruptionBudgetOptions([property: PositionalAr public string? Output { get; set; } [BooleanCommandSwitch("--save-config")] - public bool? SaveConfig { get; set; } + public virtual bool? SaveConfig { get; set; } [CommandEqualsSeparatorSwitch("--selector", SwitchValueSeparator = " ")] public string? Selector { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--template", SwitchValueSeparator = " ")] public string? Template { get; set; } [BooleanCommandSwitch("--validate")] - public bool? Validate { get; set; } + public virtual bool? Validate { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesCreatePriorityClassOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesCreatePriorityClassOptions.cs index 18a7e411c7..b22b02a908 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesCreatePriorityClassOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesCreatePriorityClassOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesCreatePriorityClassOptions([property: PositionalArgument] string Name) : KubernetesOptions { [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [CommandEqualsSeparatorSwitch("--description", SwitchValueSeparator = " ")] public string? Description { get; set; } @@ -20,7 +20,7 @@ public record KubernetesCreatePriorityClassOptions([property: PositionalArgument public string? FieldManager { get; set; } [BooleanCommandSwitch("--global-default")] - public bool? GlobalDefault { get; set; } + public virtual bool? GlobalDefault { get; set; } [CommandEqualsSeparatorSwitch("--output", SwitchValueSeparator = " ")] public string? Output { get; set; } @@ -29,16 +29,16 @@ public record KubernetesCreatePriorityClassOptions([property: PositionalArgument public string? PreemptionPolicy { get; set; } [BooleanCommandSwitch("--save-config")] - public bool? SaveConfig { get; set; } + public virtual bool? SaveConfig { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--template", SwitchValueSeparator = " ")] public string? Template { get; set; } [BooleanCommandSwitch("--validate")] - public bool? Validate { get; set; } + public virtual bool? Validate { get; set; } [CommandEqualsSeparatorSwitch("--value", SwitchValueSeparator = " ")] public int? Value { get; set; } diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesCreateQuotaOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesCreateQuotaOptions.cs index b98b6cc067..bf9a067082 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesCreateQuotaOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesCreateQuotaOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesCreateQuotaOptions([property: PositionalArgument] string Name) : KubernetesOptions { [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [CommandEqualsSeparatorSwitch("--dry-run", SwitchValueSeparator = " ")] public string? DryRun { get; set; } @@ -23,17 +23,17 @@ public record KubernetesCreateQuotaOptions([property: PositionalArgument] string public string? Output { get; set; } [BooleanCommandSwitch("--save-config")] - public bool? SaveConfig { get; set; } + public virtual bool? SaveConfig { get; set; } [CommandEqualsSeparatorSwitch("--scopes", SwitchValueSeparator = " ")] public string? Scopes { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--template", SwitchValueSeparator = " ")] public string? Template { get; set; } [BooleanCommandSwitch("--validate")] - public bool? Validate { get; set; } + public virtual bool? Validate { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesCreateRoleBindingOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesCreateRoleBindingOptions.cs index ca4466d0de..595be22e16 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesCreateRoleBindingOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesCreateRoleBindingOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesCreateRoleBindingOptions([property: PositionalArgument] string Name) : KubernetesOptions { [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [CommandEqualsSeparatorSwitch("--clusterrole", SwitchValueSeparator = " ")] public string? Clusterrole { get; set; } @@ -29,17 +29,17 @@ public record KubernetesCreateRoleBindingOptions([property: PositionalArgument] public string? Role { get; set; } [BooleanCommandSwitch("--save-config")] - public bool? SaveConfig { get; set; } + public virtual bool? SaveConfig { get; set; } [CommandEqualsSeparatorSwitch("--serviceaccount", SwitchValueSeparator = " ")] public string[]? Serviceaccount { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--template", SwitchValueSeparator = " ")] public string? Template { get; set; } [BooleanCommandSwitch("--validate")] - public bool? Validate { get; set; } + public virtual bool? Validate { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesCreateRoleOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesCreateRoleOptions.cs index 8fe14279f6..d79d1ee863 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesCreateRoleOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesCreateRoleOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesCreateRoleOptions([property: PositionalArgument] string Name) : KubernetesOptions { [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [CommandEqualsSeparatorSwitch("--dry-run", SwitchValueSeparator = " ")] public string? DryRun { get; set; } @@ -26,16 +26,16 @@ public record KubernetesCreateRoleOptions([property: PositionalArgument] string public string[]? ResourceName { get; set; } [BooleanCommandSwitch("--save-config")] - public bool? SaveConfig { get; set; } + public virtual bool? SaveConfig { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--template", SwitchValueSeparator = " ")] public string? Template { get; set; } [BooleanCommandSwitch("--validate")] - public bool? Validate { get; set; } + public virtual bool? Validate { get; set; } [CommandEqualsSeparatorSwitch("--verb", SwitchValueSeparator = " ")] public string[]? Verb { get; set; } diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesCreateSecretDockerRegistryOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesCreateSecretDockerRegistryOptions.cs index d448271f87..66153efb09 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesCreateSecretDockerRegistryOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesCreateSecretDockerRegistryOptions.cs @@ -8,10 +8,10 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesCreateSecretDockerRegistryOptions([property: PositionalArgument] string Name) : KubernetesOptions { [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [BooleanCommandSwitch("--append-hash")] - public bool? AppendHash { get; set; } + public virtual bool? AppendHash { get; set; } [CommandEqualsSeparatorSwitch("--docker-email", SwitchValueSeparator = " ")] public string? DockerEmail { get; set; } @@ -38,14 +38,14 @@ public record KubernetesCreateSecretDockerRegistryOptions([property: PositionalA public string? Output { get; set; } [BooleanCommandSwitch("--save-config")] - public bool? SaveConfig { get; set; } + public virtual bool? SaveConfig { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--template", SwitchValueSeparator = " ")] public string? Template { get; set; } [BooleanCommandSwitch("--validate")] - public bool? Validate { get; set; } + public virtual bool? Validate { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesCreateSecretGenericOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesCreateSecretGenericOptions.cs index f051073ee7..5899bad7a6 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesCreateSecretGenericOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesCreateSecretGenericOptions.cs @@ -8,10 +8,10 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesCreateSecretGenericOptions([property: PositionalArgument] string Name) : KubernetesOptions { [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [BooleanCommandSwitch("--append-hash")] - public bool? AppendHash { get; set; } + public virtual bool? AppendHash { get; set; } [CommandEqualsSeparatorSwitch("--dry-run", SwitchValueSeparator = " ")] public string? DryRun { get; set; } @@ -32,10 +32,10 @@ public record KubernetesCreateSecretGenericOptions([property: PositionalArgument public string? Output { get; set; } [BooleanCommandSwitch("--save-config")] - public bool? SaveConfig { get; set; } + public virtual bool? SaveConfig { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--template", SwitchValueSeparator = " ")] public string? Template { get; set; } @@ -44,5 +44,5 @@ public record KubernetesCreateSecretGenericOptions([property: PositionalArgument public string? Type { get; set; } [BooleanCommandSwitch("--validate")] - public bool? Validate { get; set; } + public virtual bool? Validate { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesCreateSecretOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesCreateSecretOptions.cs index f03a71a5a9..c5d8cf6de9 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesCreateSecretOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesCreateSecretOptions.cs @@ -8,10 +8,10 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesCreateSecretOptions : KubernetesOptions { [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [BooleanCommandSwitch("--append-hash")] - public bool? AppendHash { get; set; } + public virtual bool? AppendHash { get; set; } [CommandEqualsSeparatorSwitch("--docker-email", SwitchValueSeparator = " ")] public string? DockerEmail { get; set; } @@ -38,14 +38,14 @@ public record KubernetesCreateSecretOptions : KubernetesOptions public string? Output { get; set; } [BooleanCommandSwitch("--save-config")] - public bool? SaveConfig { get; set; } + public virtual bool? SaveConfig { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--template", SwitchValueSeparator = " ")] public string? Template { get; set; } [BooleanCommandSwitch("--validate")] - public bool? Validate { get; set; } + public virtual bool? Validate { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesCreateSecretTlsOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesCreateSecretTlsOptions.cs index a5777659de..75ee5da20b 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesCreateSecretTlsOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesCreateSecretTlsOptions.cs @@ -8,10 +8,10 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesCreateSecretTlsOptions([property: PositionalArgument] string Name) : KubernetesOptions { [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [BooleanCommandSwitch("--append-hash")] - public bool? AppendHash { get; set; } + public virtual bool? AppendHash { get; set; } [CommandEqualsSeparatorSwitch("--cert", SwitchValueSeparator = " ")] public string? Cert { get; set; } @@ -29,14 +29,14 @@ public record KubernetesCreateSecretTlsOptions([property: PositionalArgument] st public string? Output { get; set; } [BooleanCommandSwitch("--save-config")] - public bool? SaveConfig { get; set; } + public virtual bool? SaveConfig { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--template", SwitchValueSeparator = " ")] public string? Template { get; set; } [BooleanCommandSwitch("--validate")] - public bool? Validate { get; set; } + public virtual bool? Validate { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesCreateServiceAccountOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesCreateServiceAccountOptions.cs index adfa4b7ae2..58ee0e1bfe 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesCreateServiceAccountOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesCreateServiceAccountOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesCreateServiceAccountOptions([property: PositionalArgument] string Name) : KubernetesOptions { [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [CommandEqualsSeparatorSwitch("--dry-run", SwitchValueSeparator = " ")] public string? DryRun { get; set; } @@ -20,14 +20,14 @@ public record KubernetesCreateServiceAccountOptions([property: PositionalArgumen public string? Output { get; set; } [BooleanCommandSwitch("--save-config")] - public bool? SaveConfig { get; set; } + public virtual bool? SaveConfig { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--template", SwitchValueSeparator = " ")] public string? Template { get; set; } [BooleanCommandSwitch("--validate")] - public bool? Validate { get; set; } + public virtual bool? Validate { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesCreateServiceClusteripOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesCreateServiceClusteripOptions.cs index 3c39e3c38a..3d8174a414 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesCreateServiceClusteripOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesCreateServiceClusteripOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesCreateServiceClusteripOptions([property: PositionalArgument] string Name) : KubernetesOptions { [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [CommandEqualsSeparatorSwitch("--clusterip", SwitchValueSeparator = " ")] public string? Clusterip { get; set; } @@ -23,10 +23,10 @@ public record KubernetesCreateServiceClusteripOptions([property: PositionalArgum public string? Output { get; set; } [BooleanCommandSwitch("--save-config")] - public bool? SaveConfig { get; set; } + public virtual bool? SaveConfig { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--tcp", SwitchValueSeparator = " ")] public string[]? Tcp { get; set; } @@ -35,5 +35,5 @@ public record KubernetesCreateServiceClusteripOptions([property: PositionalArgum public string? Template { get; set; } [BooleanCommandSwitch("--validate")] - public bool? Validate { get; set; } + public virtual bool? Validate { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesCreateServiceExternalnameOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesCreateServiceExternalnameOptions.cs index 45d1ad8384..aef3e1ff78 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesCreateServiceExternalnameOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesCreateServiceExternalnameOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesCreateServiceExternalnameOptions([property: PositionalArgument] string Name) : KubernetesOptions { [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [CommandEqualsSeparatorSwitch("--dry-run", SwitchValueSeparator = " ")] public string? DryRun { get; set; } @@ -23,10 +23,10 @@ public record KubernetesCreateServiceExternalnameOptions([property: PositionalAr public string? Output { get; set; } [BooleanCommandSwitch("--save-config")] - public bool? SaveConfig { get; set; } + public virtual bool? SaveConfig { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--tcp", SwitchValueSeparator = " ")] public string[]? Tcp { get; set; } @@ -35,5 +35,5 @@ public record KubernetesCreateServiceExternalnameOptions([property: PositionalAr public string? Template { get; set; } [BooleanCommandSwitch("--validate")] - public bool? Validate { get; set; } + public virtual bool? Validate { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesCreateServiceLoadbalancerOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesCreateServiceLoadbalancerOptions.cs index 510e9bf1fa..5d9c65816e 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesCreateServiceLoadbalancerOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesCreateServiceLoadbalancerOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesCreateServiceLoadbalancerOptions([property: PositionalArgument] string Name) : KubernetesOptions { [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [CommandEqualsSeparatorSwitch("--dry-run", SwitchValueSeparator = " ")] public string? DryRun { get; set; } @@ -20,10 +20,10 @@ public record KubernetesCreateServiceLoadbalancerOptions([property: PositionalAr public string? Output { get; set; } [BooleanCommandSwitch("--save-config")] - public bool? SaveConfig { get; set; } + public virtual bool? SaveConfig { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--tcp", SwitchValueSeparator = " ")] public string[]? Tcp { get; set; } @@ -32,5 +32,5 @@ public record KubernetesCreateServiceLoadbalancerOptions([property: PositionalAr public string? Template { get; set; } [BooleanCommandSwitch("--validate")] - public bool? Validate { get; set; } + public virtual bool? Validate { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesCreateServiceNodePortOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesCreateServiceNodePortOptions.cs index 22bb212d15..df49d6cb3b 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesCreateServiceNodePortOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesCreateServiceNodePortOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesCreateServiceNodePortOptions([property: PositionalArgument] string Name) : KubernetesOptions { [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [CommandEqualsSeparatorSwitch("--dry-run", SwitchValueSeparator = " ")] public string? DryRun { get; set; } @@ -23,10 +23,10 @@ public record KubernetesCreateServiceNodePortOptions([property: PositionalArgume public string? Output { get; set; } [BooleanCommandSwitch("--save-config")] - public bool? SaveConfig { get; set; } + public virtual bool? SaveConfig { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--tcp", SwitchValueSeparator = " ")] public string[]? Tcp { get; set; } @@ -35,5 +35,5 @@ public record KubernetesCreateServiceNodePortOptions([property: PositionalArgume public string? Template { get; set; } [BooleanCommandSwitch("--validate")] - public bool? Validate { get; set; } + public virtual bool? Validate { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesCreateServiceOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesCreateServiceOptions.cs index 90c43cee89..6d0ee6d28e 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesCreateServiceOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesCreateServiceOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesCreateServiceOptions : KubernetesOptions { [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [CommandEqualsSeparatorSwitch("--clusterip", SwitchValueSeparator = " ")] public string? Clusterip { get; set; } @@ -23,10 +23,10 @@ public record KubernetesCreateServiceOptions : KubernetesOptions public string? Output { get; set; } [BooleanCommandSwitch("--save-config")] - public bool? SaveConfig { get; set; } + public virtual bool? SaveConfig { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--tcp", SwitchValueSeparator = " ")] public string[]? Tcp { get; set; } @@ -35,5 +35,5 @@ public record KubernetesCreateServiceOptions : KubernetesOptions public string? Template { get; set; } [BooleanCommandSwitch("--validate")] - public bool? Validate { get; set; } + public virtual bool? Validate { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesDebugOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesDebugOptions.cs index e73d6c69a2..defb3f4a36 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesDebugOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesDebugOptions.cs @@ -8,10 +8,10 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesDebugOptions([property: PositionalArgument] string Name) : KubernetesOptions { [BooleanCommandSwitch("--arguments-only")] - public bool? ArgumentsOnly { get; set; } + public virtual bool? ArgumentsOnly { get; set; } [BooleanCommandSwitch("--attach")] - public bool? Attach { get; set; } + public virtual bool? Attach { get; set; } [CommandEqualsSeparatorSwitch("--container", SwitchValueSeparator = " ")] public string? Container { get; set; } @@ -29,26 +29,26 @@ public record KubernetesDebugOptions([property: PositionalArgument] string Name) public string? ImagePullPolicy { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } [BooleanCommandSwitch("--replace")] - public bool? Replace { get; set; } + public virtual bool? Replace { get; set; } [BooleanCommandSwitch("--same-node")] - public bool? SameNode { get; set; } + public virtual bool? SameNode { get; set; } [CommandEqualsSeparatorSwitch("--set-image", SwitchValueSeparator = " ")] public string[]? SetImage { get; set; } [BooleanCommandSwitch("--share-processes")] - public bool? ShareProcesses { get; set; } + public virtual bool? ShareProcesses { get; set; } [BooleanCommandSwitch("--stdin")] - public bool? Stdin { get; set; } + public virtual bool? Stdin { get; set; } [CommandEqualsSeparatorSwitch("--target", SwitchValueSeparator = " ")] public string? Target { get; set; } [BooleanCommandSwitch("--tty")] - public bool? Tty { get; set; } + public virtual bool? Tty { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesDeleteOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesDeleteOptions.cs index 3d843e584c..62a2beba50 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesDeleteOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesDeleteOptions.cs @@ -8,10 +8,10 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesDeleteOptions([property: PositionalArgument] string Name) : KubernetesOptions { [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } [BooleanCommandSwitch("--all-namespaces")] - public bool? AllNamespaces { get; set; } + public virtual bool? AllNamespaces { get; set; } [CommandEqualsSeparatorSwitch("--cascade", SwitchValueSeparator = " ")] public string? Cascade { get; set; } @@ -26,19 +26,19 @@ public record KubernetesDeleteOptions([property: PositionalArgument] string Name public string[]? Filename { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [CommandEqualsSeparatorSwitch("--grace-period", SwitchValueSeparator = " ")] public int? GracePeriod { get; set; } [BooleanCommandSwitch("--ignore-not-found")] - public bool? IgnoreNotFound { get; set; } + public virtual bool? IgnoreNotFound { get; set; } [CommandEqualsSeparatorSwitch("--kustomize", SwitchValueSeparator = " ")] public string? Kustomize { get; set; } [BooleanCommandSwitch("--now")] - public bool? Now { get; set; } + public virtual bool? Now { get; set; } [CommandEqualsSeparatorSwitch("--output", SwitchValueSeparator = " ")] public string? Output { get; set; } @@ -47,7 +47,7 @@ public record KubernetesDeleteOptions([property: PositionalArgument] string Name public string? Raw { get; set; } [BooleanCommandSwitch("--recursive")] - public bool? Recursive { get; set; } + public virtual bool? Recursive { get; set; } [CommandEqualsSeparatorSwitch("--selector", SwitchValueSeparator = " ")] public string? Selector { get; set; } @@ -56,5 +56,5 @@ public record KubernetesDeleteOptions([property: PositionalArgument] string Name public string? Timeout { get; set; } [BooleanCommandSwitch("--wait")] - public bool? Wait { get; set; } + public virtual bool? Wait { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesDescribeOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesDescribeOptions.cs index a4da949869..e491bd0e77 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesDescribeOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesDescribeOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesDescribeOptions : KubernetesOptions { [BooleanCommandSwitch("--all-namespaces")] - public bool? AllNamespaces { get; set; } + public virtual bool? AllNamespaces { get; set; } [CommandEqualsSeparatorSwitch("--chunk-size", SwitchValueSeparator = " ")] public int? ChunkSize { get; set; } @@ -20,11 +20,11 @@ public record KubernetesDescribeOptions : KubernetesOptions public string? Kustomize { get; set; } [BooleanCommandSwitch("--recursive")] - public bool? Recursive { get; set; } + public virtual bool? Recursive { get; set; } [CommandEqualsSeparatorSwitch("--selector", SwitchValueSeparator = " ")] public string? Selector { get; set; } [BooleanCommandSwitch("--show-events")] - public bool? ShowEvents { get; set; } + public virtual bool? ShowEvents { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesDiffOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesDiffOptions.cs index 1ea4c09503..e32f581cc5 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesDiffOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesDiffOptions.cs @@ -14,17 +14,17 @@ public record KubernetesDiffOptions : KubernetesOptions public string[]? Filename { get; set; } [BooleanCommandSwitch("--force-conflicts")] - public bool? ForceConflicts { get; set; } + public virtual bool? ForceConflicts { get; set; } [CommandEqualsSeparatorSwitch("--kustomize", SwitchValueSeparator = " ")] public string? Kustomize { get; set; } [BooleanCommandSwitch("--recursive")] - public bool? Recursive { get; set; } + public virtual bool? Recursive { get; set; } [CommandEqualsSeparatorSwitch("--selector", SwitchValueSeparator = " ")] public string? Selector { get; set; } [BooleanCommandSwitch("--server-side")] - public bool? ServerSide { get; set; } + public virtual bool? ServerSide { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesDrainOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesDrainOptions.cs index d90a33dd48..8efaed26c2 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesDrainOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesDrainOptions.cs @@ -11,28 +11,28 @@ public record KubernetesDrainOptions([property: PositionalArgument] string Node) public int? ChunkSize { get; set; } [BooleanCommandSwitch("--delete-emptydir-data")] - public bool? DeleteEmptydirData { get; set; } + public virtual bool? DeleteEmptydirData { get; set; } [BooleanCommandSwitch("--delete-local-data")] - public bool? DeleteLocalData { get; set; } + public virtual bool? DeleteLocalData { get; set; } [BooleanCommandSwitch("--disable-eviction")] - public bool? DisableEviction { get; set; } + public virtual bool? DisableEviction { get; set; } [CommandEqualsSeparatorSwitch("--dry-run", SwitchValueSeparator = " ")] public string? DryRun { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [CommandEqualsSeparatorSwitch("--grace-period", SwitchValueSeparator = " ")] public int? GracePeriod { get; set; } [BooleanCommandSwitch("--ignore-daemonsets")] - public bool? IgnoreDaemonsets { get; set; } + public virtual bool? IgnoreDaemonsets { get; set; } [BooleanCommandSwitch("--ignore-errors")] - public bool? IgnoreErrors { get; set; } + public virtual bool? IgnoreErrors { get; set; } [CommandEqualsSeparatorSwitch("--pod-selector", SwitchValueSeparator = " ")] public string? PodSelector { get; set; } diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesEditOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesEditOptions.cs index 86fbdec67c..e89d533513 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesEditOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesEditOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesEditOptions([property: PositionalArgument] string Name) : KubernetesOptions { [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [CommandEqualsSeparatorSwitch("--field-manager", SwitchValueSeparator = " ")] public string? FieldManager { get; set; } @@ -23,26 +23,26 @@ public record KubernetesEditOptions([property: PositionalArgument] string Name) public string? Output { get; set; } [BooleanCommandSwitch("--output-patch")] - public bool? OutputPatch { get; set; } + public virtual bool? OutputPatch { get; set; } [BooleanCommandSwitch("--record")] - public bool? Record { get; set; } + public virtual bool? Record { get; set; } [BooleanCommandSwitch("--recursive")] - public bool? Recursive { get; set; } + public virtual bool? Recursive { get; set; } [BooleanCommandSwitch("--save-config")] - public bool? SaveConfig { get; set; } + public virtual bool? SaveConfig { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--template", SwitchValueSeparator = " ")] public string? Template { get; set; } [BooleanCommandSwitch("--validate")] - public bool? Validate { get; set; } + public virtual bool? Validate { get; set; } [BooleanCommandSwitch("--windows-line-endings")] - public bool? WindowsLineEndings { get; set; } + public virtual bool? WindowsLineEndings { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesExecOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesExecOptions.cs index 536a0eb126..6e2f6f3ef7 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesExecOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesExecOptions.cs @@ -17,11 +17,11 @@ public record KubernetesExecOptions([property: PositionalArgument] string Name) public string? PodRunningTimeout { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } [BooleanCommandSwitch("--stdin")] - public bool? Stdin { get; set; } + public virtual bool? Stdin { get; set; } [BooleanCommandSwitch("--tty")] - public bool? Tty { get; set; } + public virtual bool? Tty { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesExplainOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesExplainOptions.cs index 47994eb643..5555779561 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesExplainOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesExplainOptions.cs @@ -11,5 +11,5 @@ public record KubernetesExplainOptions([property: PositionalArgument] string Res public string? ApiVersion { get; set; } [BooleanCommandSwitch("--recursive")] - public bool? Recursive { get; set; } + public virtual bool? Recursive { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesExposeOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesExposeOptions.cs index f9538f6f78..7230dbe8ce 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesExposeOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesExposeOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesExposeOptions : KubernetesOptions { [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [CommandEqualsSeparatorSwitch("--cluster-ip", SwitchValueSeparator = " ")] public string? ClusterIp { get; set; } @@ -56,13 +56,13 @@ public record KubernetesExposeOptions : KubernetesOptions public string? Protocol { get; set; } [BooleanCommandSwitch("--record")] - public bool? Record { get; set; } + public virtual bool? Record { get; set; } [BooleanCommandSwitch("--recursive")] - public bool? Recursive { get; set; } + public virtual bool? Recursive { get; set; } [BooleanCommandSwitch("--save-config")] - public bool? SaveConfig { get; set; } + public virtual bool? SaveConfig { get; set; } [CommandEqualsSeparatorSwitch("--selector", SwitchValueSeparator = " ")] public string? Selector { get; set; } @@ -71,7 +71,7 @@ public record KubernetesExposeOptions : KubernetesOptions public string? SessionAffinity { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--target-port", SwitchValueSeparator = " ")] public string? TargetPort { get; set; } diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesGetOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesGetOptions.cs index f19cc8eeaf..b0071678fd 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesGetOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesGetOptions.cs @@ -8,10 +8,10 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesGetOptions([property: PositionalArgument] string Name) : KubernetesOptions { [BooleanCommandSwitch("--all-namespaces")] - public bool? AllNamespaces { get; set; } + public virtual bool? AllNamespaces { get; set; } [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [CommandEqualsSeparatorSwitch("--chunk-size", SwitchValueSeparator = " ")] public int? ChunkSize { get; set; } @@ -23,7 +23,7 @@ public record KubernetesGetOptions([property: PositionalArgument] string Name) : public string[]? Filename { get; set; } [BooleanCommandSwitch("--ignore-not-found")] - public bool? IgnoreNotFound { get; set; } + public virtual bool? IgnoreNotFound { get; set; } [CommandEqualsSeparatorSwitch("--kustomize", SwitchValueSeparator = " ")] public string? Kustomize { get; set; } @@ -32,34 +32,34 @@ public record KubernetesGetOptions([property: PositionalArgument] string Name) : public string[]? LabelColumns { get; set; } [BooleanCommandSwitch("--no-headers")] - public bool? NoHeaders { get; set; } + public virtual bool? NoHeaders { get; set; } [CommandEqualsSeparatorSwitch("--output", SwitchValueSeparator = " ")] public string? Output { get; set; } [BooleanCommandSwitch("--output-watch-events")] - public bool? OutputWatchEvents { get; set; } + public virtual bool? OutputWatchEvents { get; set; } [CommandEqualsSeparatorSwitch("--raw", SwitchValueSeparator = " ")] public string? Raw { get; set; } [BooleanCommandSwitch("--recursive")] - public bool? Recursive { get; set; } + public virtual bool? Recursive { get; set; } [CommandEqualsSeparatorSwitch("--selector", SwitchValueSeparator = " ")] public string? Selector { get; set; } [BooleanCommandSwitch("--server-print")] - public bool? ServerPrint { get; set; } + public virtual bool? ServerPrint { get; set; } [BooleanCommandSwitch("--show-kind")] - public bool? ShowKind { get; set; } + public virtual bool? ShowKind { get; set; } [BooleanCommandSwitch("--show-labels")] - public bool? ShowLabels { get; set; } + public virtual bool? ShowLabels { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--sort-by", SwitchValueSeparator = " ")] public string? SortBy { get; set; } @@ -68,11 +68,11 @@ public record KubernetesGetOptions([property: PositionalArgument] string Name) : public string? Template { get; set; } [BooleanCommandSwitch("--use-openapi-print-columns")] - public bool? UseOpenapiPrintColumns { get; set; } + public virtual bool? UseOpenapiPrintColumns { get; set; } [BooleanCommandSwitch("--watch")] - public bool? Watch { get; set; } + public virtual bool? Watch { get; set; } [BooleanCommandSwitch("--watch-only")] - public bool? WatchOnly { get; set; } + public virtual bool? WatchOnly { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesKustomizeOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesKustomizeOptions.cs index 2c84fce04c..7e5894ae05 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesKustomizeOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesKustomizeOptions.cs @@ -8,16 +8,16 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesKustomizeOptions([property: PositionalArgument] string Dir) : KubernetesOptions { [BooleanCommandSwitch("--as-current-user")] - public bool? AsCurrentUser { get; set; } + public virtual bool? AsCurrentUser { get; set; } [BooleanCommandSwitch("--enable-alpha-plugins")] - public bool? EnableAlphaPlugins { get; set; } + public virtual bool? EnableAlphaPlugins { get; set; } [BooleanCommandSwitch("--enable-helm")] - public bool? EnableHelm { get; set; } + public virtual bool? EnableHelm { get; set; } [BooleanCommandSwitch("--enable-managedby-label")] - public bool? EnableManagedbyLabel { get; set; } + public virtual bool? EnableManagedbyLabel { get; set; } [CommandEqualsSeparatorSwitch("--env", SwitchValueSeparator = " ")] public string[]? Env { get; set; } @@ -32,7 +32,7 @@ public record KubernetesKustomizeOptions([property: PositionalArgument] string D public string[]? Mount { get; set; } [BooleanCommandSwitch("--network")] - public bool? Network { get; set; } + public virtual bool? Network { get; set; } [CommandEqualsSeparatorSwitch("--network-name", SwitchValueSeparator = " ")] public string? NetworkName { get; set; } diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesLabelOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesLabelOptions.cs index 657c8b0acc..52695b3993 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesLabelOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesLabelOptions.cs @@ -8,13 +8,13 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesLabelOptions : KubernetesOptions { [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } [BooleanCommandSwitch("--all-namespaces")] - public bool? AllNamespaces { get; set; } + public virtual bool? AllNamespaces { get; set; } [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [CommandEqualsSeparatorSwitch("--dry-run", SwitchValueSeparator = " ")] public string? DryRun { get; set; } @@ -32,22 +32,22 @@ public record KubernetesLabelOptions : KubernetesOptions public string? Kustomize { get; set; } [BooleanCommandSwitch("--list")] - public bool? List { get; set; } + public virtual bool? List { get; set; } [BooleanCommandSwitch("--local")] - public bool? Local { get; set; } + public virtual bool? Local { get; set; } [CommandEqualsSeparatorSwitch("--output", SwitchValueSeparator = " ")] public string? Output { get; set; } [BooleanCommandSwitch("--overwrite")] - public bool? Overwrite { get; set; } + public virtual bool? Overwrite { get; set; } [BooleanCommandSwitch("--record")] - public bool? Record { get; set; } + public virtual bool? Record { get; set; } [BooleanCommandSwitch("--recursive")] - public bool? Recursive { get; set; } + public virtual bool? Recursive { get; set; } [CommandEqualsSeparatorSwitch("--resource-version", SwitchValueSeparator = " ")] public string? ResourceVersion { get; set; } @@ -56,7 +56,7 @@ public record KubernetesLabelOptions : KubernetesOptions public string? Selector { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--template", SwitchValueSeparator = " ")] public string? Template { get; set; } diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesLogsOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesLogsOptions.cs index 6f3b5086d2..eaa7475ffb 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesLogsOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesLogsOptions.cs @@ -8,19 +8,19 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesLogsOptions([property: PositionalArgument] string Name) : KubernetesOptions { [BooleanCommandSwitch("--all-containers")] - public bool? AllContainers { get; set; } + public virtual bool? AllContainers { get; set; } [CommandEqualsSeparatorSwitch("--container", SwitchValueSeparator = " ")] public string? Container { get; set; } [BooleanCommandSwitch("--follow")] - public bool? Follow { get; set; } + public virtual bool? Follow { get; set; } [BooleanCommandSwitch("--ignore-errors")] - public bool? IgnoreErrors { get; set; } + public virtual bool? IgnoreErrors { get; set; } [BooleanCommandSwitch("--insecure-skip-tls-verify-backend")] - public bool? InsecureSkipTlsVerifyBackend { get; set; } + public virtual bool? InsecureSkipTlsVerifyBackend { get; set; } [CommandEqualsSeparatorSwitch("--limit-bytes", SwitchValueSeparator = " ")] public int? LimitBytes { get; set; } @@ -32,10 +32,10 @@ public record KubernetesLogsOptions([property: PositionalArgument] string Name) public string? PodRunningTimeout { get; set; } [BooleanCommandSwitch("--prefix")] - public bool? Prefix { get; set; } + public virtual bool? Prefix { get; set; } [BooleanCommandSwitch("--previous")] - public bool? Previous { get; set; } + public virtual bool? Previous { get; set; } [CommandEqualsSeparatorSwitch("--selector", SwitchValueSeparator = " ")] public string? Selector { get; set; } @@ -50,5 +50,5 @@ public record KubernetesLogsOptions([property: PositionalArgument] string Name) public int? Tail { get; set; } [BooleanCommandSwitch("--timestamps")] - public bool? Timestamps { get; set; } + public virtual bool? Timestamps { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesOptionsOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesOptionsOptions.cs index e0a1a83479..aa8aa24530 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesOptionsOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesOptionsOptions.cs @@ -8,5 +8,5 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesOptionsOptions : KubernetesOptions { [BooleanCommandSwitch("--name-only")] - public bool? NameOnly { get; set; } + public virtual bool? NameOnly { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesPatchOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesPatchOptions.cs index f8d1624615..f05af491d0 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesPatchOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesPatchOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesPatchOptions : KubernetesOptions { [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [CommandEqualsSeparatorSwitch("--dry-run", SwitchValueSeparator = " ")] public string? DryRun { get; set; } @@ -23,7 +23,7 @@ public record KubernetesPatchOptions : KubernetesOptions public string? Kustomize { get; set; } [BooleanCommandSwitch("--local")] - public bool? Local { get; set; } + public virtual bool? Local { get; set; } [CommandEqualsSeparatorSwitch("--output", SwitchValueSeparator = " ")] public string? Output { get; set; } @@ -35,13 +35,13 @@ public record KubernetesPatchOptions : KubernetesOptions public string? PatchFile { get; set; } [BooleanCommandSwitch("--record")] - public bool? Record { get; set; } + public virtual bool? Record { get; set; } [BooleanCommandSwitch("--recursive")] - public bool? Recursive { get; set; } + public virtual bool? Recursive { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--template", SwitchValueSeparator = " ")] public string? Template { get; set; } diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesPluginListOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesPluginListOptions.cs index 8ec66c523b..a86687f245 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesPluginListOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesPluginListOptions.cs @@ -8,5 +8,5 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesPluginListOptions : KubernetesOptions { [BooleanCommandSwitch("--name-only")] - public bool? NameOnly { get; set; } + public virtual bool? NameOnly { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesPluginOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesPluginOptions.cs index 0bdd9cfdbb..1a3f498119 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesPluginOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesPluginOptions.cs @@ -8,5 +8,5 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesPluginOptions : KubernetesOptions { [BooleanCommandSwitch("--name-only")] - public bool? NameOnly { get; set; } + public virtual bool? NameOnly { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesProxyOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesProxyOptions.cs index a9dda49705..96d56072c1 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesProxyOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesProxyOptions.cs @@ -20,7 +20,7 @@ public record KubernetesProxyOptions : KubernetesOptions public string? ApiPrefix { get; set; } [BooleanCommandSwitch("--disable-filter")] - public bool? DisableFilter { get; set; } + public virtual bool? DisableFilter { get; set; } [CommandEqualsSeparatorSwitch("--keepalive", SwitchValueSeparator = " ")] public string? Keepalive { get; set; } diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesReplaceOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesReplaceOptions.cs index ca218487ec..e266c9e4ef 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesReplaceOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesReplaceOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesReplaceOptions : KubernetesOptions { [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [CommandEqualsSeparatorSwitch("--cascade", SwitchValueSeparator = " ")] public string? Cascade { get; set; } @@ -23,7 +23,7 @@ public record KubernetesReplaceOptions : KubernetesOptions public string[]? Filename { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [CommandEqualsSeparatorSwitch("--grace-period", SwitchValueSeparator = " ")] public int? GracePeriod { get; set; } @@ -38,13 +38,13 @@ public record KubernetesReplaceOptions : KubernetesOptions public string? Raw { get; set; } [BooleanCommandSwitch("--recursive")] - public bool? Recursive { get; set; } + public virtual bool? Recursive { get; set; } [BooleanCommandSwitch("--save-config")] - public bool? SaveConfig { get; set; } + public virtual bool? SaveConfig { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--template", SwitchValueSeparator = " ")] public string? Template { get; set; } @@ -53,8 +53,8 @@ public record KubernetesReplaceOptions : KubernetesOptions public string? Timeout { get; set; } [BooleanCommandSwitch("--validate")] - public bool? Validate { get; set; } + public virtual bool? Validate { get; set; } [BooleanCommandSwitch("--wait")] - public bool? Wait { get; set; } + public virtual bool? Wait { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesRolloutHistoryOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesRolloutHistoryOptions.cs index 938780151a..61261f527e 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesRolloutHistoryOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesRolloutHistoryOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesRolloutHistoryOptions([property: PositionalArgument] string Name) : KubernetesOptions { [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [CommandEqualsSeparatorSwitch("--filename", SwitchValueSeparator = " ")] public string[]? Filename { get; set; } @@ -20,13 +20,13 @@ public record KubernetesRolloutHistoryOptions([property: PositionalArgument] str public string? Output { get; set; } [BooleanCommandSwitch("--recursive")] - public bool? Recursive { get; set; } + public virtual bool? Recursive { get; set; } [CommandEqualsSeparatorSwitch("--revision", SwitchValueSeparator = " ")] public int? Revision { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--template", SwitchValueSeparator = " ")] public string? Template { get; set; } diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesRolloutOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesRolloutOptions.cs index f577d6abe5..906a3598e9 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesRolloutOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesRolloutOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesRolloutOptions([property: PositionalArgument] string Subcommand) : KubernetesOptions { [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [CommandEqualsSeparatorSwitch("--filename", SwitchValueSeparator = " ")] public string[]? Filename { get; set; } @@ -20,13 +20,13 @@ public record KubernetesRolloutOptions([property: PositionalArgument] string Sub public string? Output { get; set; } [BooleanCommandSwitch("--recursive")] - public bool? Recursive { get; set; } + public virtual bool? Recursive { get; set; } [CommandEqualsSeparatorSwitch("--revision", SwitchValueSeparator = " ")] public int? Revision { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--template", SwitchValueSeparator = " ")] public string? Template { get; set; } diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesRolloutPauseOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesRolloutPauseOptions.cs index d794f30659..2cd19d719c 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesRolloutPauseOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesRolloutPauseOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesRolloutPauseOptions([property: PositionalArgument] string Resource) : KubernetesOptions { [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [CommandEqualsSeparatorSwitch("--field-manager", SwitchValueSeparator = " ")] public string? FieldManager { get; set; } @@ -23,10 +23,10 @@ public record KubernetesRolloutPauseOptions([property: PositionalArgument] strin public string? Output { get; set; } [BooleanCommandSwitch("--recursive")] - public bool? Recursive { get; set; } + public virtual bool? Recursive { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--template", SwitchValueSeparator = " ")] public string? Template { get; set; } diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesRolloutRestartOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesRolloutRestartOptions.cs index ac1237dfd2..5a0df7c504 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesRolloutRestartOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesRolloutRestartOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesRolloutRestartOptions([property: PositionalArgument] string Resource) : KubernetesOptions { [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [CommandEqualsSeparatorSwitch("--field-manager", SwitchValueSeparator = " ")] public string? FieldManager { get; set; } @@ -23,10 +23,10 @@ public record KubernetesRolloutRestartOptions([property: PositionalArgument] str public string? Output { get; set; } [BooleanCommandSwitch("--recursive")] - public bool? Recursive { get; set; } + public virtual bool? Recursive { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--template", SwitchValueSeparator = " ")] public string? Template { get; set; } diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesRolloutResumeOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesRolloutResumeOptions.cs index 2b41e4d3ba..95010177ca 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesRolloutResumeOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesRolloutResumeOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesRolloutResumeOptions([property: PositionalArgument] string Resource) : KubernetesOptions { [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [CommandEqualsSeparatorSwitch("--field-manager", SwitchValueSeparator = " ")] public string? FieldManager { get; set; } @@ -23,10 +23,10 @@ public record KubernetesRolloutResumeOptions([property: PositionalArgument] stri public string? Output { get; set; } [BooleanCommandSwitch("--recursive")] - public bool? Recursive { get; set; } + public virtual bool? Recursive { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--template", SwitchValueSeparator = " ")] public string? Template { get; set; } diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesRolloutStatusOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesRolloutStatusOptions.cs index b8c3e5e8fb..5642336edc 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesRolloutStatusOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesRolloutStatusOptions.cs @@ -14,7 +14,7 @@ public record KubernetesRolloutStatusOptions([property: PositionalArgument] stri public string? Kustomize { get; set; } [BooleanCommandSwitch("--recursive")] - public bool? Recursive { get; set; } + public virtual bool? Recursive { get; set; } [CommandEqualsSeparatorSwitch("--revision", SwitchValueSeparator = " ")] public int? Revision { get; set; } @@ -23,5 +23,5 @@ public record KubernetesRolloutStatusOptions([property: PositionalArgument] stri public string? Timeout { get; set; } [BooleanCommandSwitch("--watch")] - public bool? Watch { get; set; } + public virtual bool? Watch { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesRolloutUndoOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesRolloutUndoOptions.cs index f1915d64d3..213f1f99cf 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesRolloutUndoOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesRolloutUndoOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesRolloutUndoOptions([property: PositionalArgument] string Name) : KubernetesOptions { [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [CommandEqualsSeparatorSwitch("--dry-run", SwitchValueSeparator = " ")] public string? DryRun { get; set; } @@ -23,10 +23,10 @@ public record KubernetesRolloutUndoOptions([property: PositionalArgument] string public string? Output { get; set; } [BooleanCommandSwitch("--recursive")] - public bool? Recursive { get; set; } + public virtual bool? Recursive { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--template", SwitchValueSeparator = " ")] public string? Template { get; set; } diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesRunOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesRunOptions.cs index 377ea9f1b8..ac5ed29812 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesRunOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesRunOptions.cs @@ -8,19 +8,19 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesRunOptions([property: PositionalArgument] string Name) : KubernetesOptions { [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [CommandEqualsSeparatorSwitch("--annotations", SwitchValueSeparator = " ")] public string[]? Annotations { get; set; } [BooleanCommandSwitch("--attach")] - public bool? Attach { get; set; } + public virtual bool? Attach { get; set; } [CommandEqualsSeparatorSwitch("--cascade", SwitchValueSeparator = " ")] public string? Cascade { get; set; } [BooleanCommandSwitch("--command")] - public bool? Command { get; set; } + public virtual bool? Command { get; set; } [CommandEqualsSeparatorSwitch("--dry-run", SwitchValueSeparator = " ")] public string? DryRun { get; set; } @@ -29,7 +29,7 @@ public record KubernetesRunOptions([property: PositionalArgument] string Name) : public string[]? Env { get; set; } [BooleanCommandSwitch("--expose")] - public bool? Expose { get; set; } + public virtual bool? Expose { get; set; } [CommandEqualsSeparatorSwitch("--field-manager", SwitchValueSeparator = " ")] public string? FieldManager { get; set; } @@ -38,7 +38,7 @@ public record KubernetesRunOptions([property: PositionalArgument] string Name) : public string[]? Filename { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [CommandEqualsSeparatorSwitch("--grace-period", SwitchValueSeparator = " ")] public int? GracePeriod { get; set; } @@ -59,7 +59,7 @@ public record KubernetesRunOptions([property: PositionalArgument] string Name) : public string? Labels { get; set; } [BooleanCommandSwitch("--leave-stdin-open")] - public bool? LeaveStdinOpen { get; set; } + public virtual bool? LeaveStdinOpen { get; set; } [CommandEqualsSeparatorSwitch("--limits", SwitchValueSeparator = " ")] public string? Limits { get; set; } @@ -77,16 +77,16 @@ public record KubernetesRunOptions([property: PositionalArgument] string Name) : public string? Port { get; set; } [BooleanCommandSwitch("--privileged")] - public bool? Privileged { get; set; } + public virtual bool? Privileged { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } [BooleanCommandSwitch("--record")] - public bool? Record { get; set; } + public virtual bool? Record { get; set; } [BooleanCommandSwitch("--recursive")] - public bool? Recursive { get; set; } + public virtual bool? Recursive { get; set; } [CommandEqualsSeparatorSwitch("--requests", SwitchValueSeparator = " ")] public string? Requests { get; set; } @@ -95,19 +95,19 @@ public record KubernetesRunOptions([property: PositionalArgument] string Name) : public string? Restart { get; set; } [BooleanCommandSwitch("--rm")] - public bool? Rm { get; set; } + public virtual bool? Rm { get; set; } [BooleanCommandSwitch("--save-config")] - public bool? SaveConfig { get; set; } + public virtual bool? SaveConfig { get; set; } [CommandEqualsSeparatorSwitch("--serviceaccount", SwitchValueSeparator = " ")] public string? Serviceaccount { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [BooleanCommandSwitch("--stdin")] - public bool? Stdin { get; set; } + public virtual bool? Stdin { get; set; } [CommandEqualsSeparatorSwitch("--template", SwitchValueSeparator = " ")] public string? Template { get; set; } @@ -116,8 +116,8 @@ public record KubernetesRunOptions([property: PositionalArgument] string Name) : public string? Timeout { get; set; } [BooleanCommandSwitch("--tty")] - public bool? Tty { get; set; } + public virtual bool? Tty { get; set; } [BooleanCommandSwitch("--wait")] - public bool? Wait { get; set; } + public virtual bool? Wait { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesScaleOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesScaleOptions.cs index 516fde2a35..f72fc73483 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesScaleOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesScaleOptions.cs @@ -8,10 +8,10 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesScaleOptions : KubernetesOptions { [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [CommandEqualsSeparatorSwitch("--current-replicas", SwitchValueSeparator = " ")] public int? CurrentReplicas { get; set; } @@ -29,10 +29,10 @@ public record KubernetesScaleOptions : KubernetesOptions public string? Output { get; set; } [BooleanCommandSwitch("--record")] - public bool? Record { get; set; } + public virtual bool? Record { get; set; } [BooleanCommandSwitch("--recursive")] - public bool? Recursive { get; set; } + public virtual bool? Recursive { get; set; } [CommandEqualsSeparatorSwitch("--replicas", SwitchValueSeparator = " ")] public int? Replicas { get; set; } @@ -44,7 +44,7 @@ public record KubernetesScaleOptions : KubernetesOptions public string? Selector { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--template", SwitchValueSeparator = " ")] public string? Template { get; set; } diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesSetEnvOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesSetEnvOptions.cs index 2295da1104..0e5cf91967 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesSetEnvOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesSetEnvOptions.cs @@ -8,10 +8,10 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesSetEnvOptions([property: PositionalArgument] string Name) : KubernetesOptions { [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [CommandEqualsSeparatorSwitch("--containers", SwitchValueSeparator = " ")] public string? Containers { get; set; } @@ -38,31 +38,31 @@ public record KubernetesSetEnvOptions([property: PositionalArgument] string Name public string? Kustomize { get; set; } [BooleanCommandSwitch("--list")] - public bool? List { get; set; } + public virtual bool? List { get; set; } [BooleanCommandSwitch("--local")] - public bool? Local { get; set; } + public virtual bool? Local { get; set; } [CommandEqualsSeparatorSwitch("--output", SwitchValueSeparator = " ")] public string? Output { get; set; } [BooleanCommandSwitch("--overwrite")] - public bool? Overwrite { get; set; } + public virtual bool? Overwrite { get; set; } [CommandEqualsSeparatorSwitch("--prefix", SwitchValueSeparator = " ")] public string? Prefix { get; set; } [BooleanCommandSwitch("--recursive")] - public bool? Recursive { get; set; } + public virtual bool? Recursive { get; set; } [BooleanCommandSwitch("--resolve")] - public bool? Resolve { get; set; } + public virtual bool? Resolve { get; set; } [CommandEqualsSeparatorSwitch("--selector", SwitchValueSeparator = " ")] public string? Selector { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--template", SwitchValueSeparator = " ")] public string? Template { get; set; } diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesSetImageOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesSetImageOptions.cs index 218c4341c6..60f8c777cc 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesSetImageOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesSetImageOptions.cs @@ -8,10 +8,10 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesSetImageOptions : KubernetesOptions { [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [CommandEqualsSeparatorSwitch("--dry-run", SwitchValueSeparator = " ")] public string? DryRun { get; set; } @@ -26,22 +26,22 @@ public record KubernetesSetImageOptions : KubernetesOptions public string? Kustomize { get; set; } [BooleanCommandSwitch("--local")] - public bool? Local { get; set; } + public virtual bool? Local { get; set; } [CommandEqualsSeparatorSwitch("--output", SwitchValueSeparator = " ")] public string? Output { get; set; } [BooleanCommandSwitch("--record")] - public bool? Record { get; set; } + public virtual bool? Record { get; set; } [BooleanCommandSwitch("--recursive")] - public bool? Recursive { get; set; } + public virtual bool? Recursive { get; set; } [CommandEqualsSeparatorSwitch("--selector", SwitchValueSeparator = " ")] public string? Selector { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--template", SwitchValueSeparator = " ")] public string? Template { get; set; } diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesSetOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesSetOptions.cs index 6105583d50..1861bcc7f8 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesSetOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesSetOptions.cs @@ -8,10 +8,10 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesSetOptions([property: PositionalArgument] string Subcommand) : KubernetesOptions { [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [CommandEqualsSeparatorSwitch("--containers", SwitchValueSeparator = " ")] public string? Containers { get; set; } @@ -38,31 +38,31 @@ public record KubernetesSetOptions([property: PositionalArgument] string Subcomm public string? Kustomize { get; set; } [BooleanCommandSwitch("--list")] - public bool? List { get; set; } + public virtual bool? List { get; set; } [BooleanCommandSwitch("--local")] - public bool? Local { get; set; } + public virtual bool? Local { get; set; } [CommandEqualsSeparatorSwitch("--output", SwitchValueSeparator = " ")] public string? Output { get; set; } [BooleanCommandSwitch("--overwrite")] - public bool? Overwrite { get; set; } + public virtual bool? Overwrite { get; set; } [CommandEqualsSeparatorSwitch("--prefix", SwitchValueSeparator = " ")] public string? Prefix { get; set; } [BooleanCommandSwitch("--recursive")] - public bool? Recursive { get; set; } + public virtual bool? Recursive { get; set; } [BooleanCommandSwitch("--resolve")] - public bool? Resolve { get; set; } + public virtual bool? Resolve { get; set; } [CommandEqualsSeparatorSwitch("--selector", SwitchValueSeparator = " ")] public string? Selector { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--template", SwitchValueSeparator = " ")] public string? Template { get; set; } diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesSetResourcesOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesSetResourcesOptions.cs index 033ab04362..f04d7be4ee 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesSetResourcesOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesSetResourcesOptions.cs @@ -8,10 +8,10 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesSetResourcesOptions : KubernetesOptions { [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [CommandEqualsSeparatorSwitch("--containers", SwitchValueSeparator = " ")] public string? Containers { get; set; } @@ -32,16 +32,16 @@ public record KubernetesSetResourcesOptions : KubernetesOptions public string? Limits { get; set; } [BooleanCommandSwitch("--local")] - public bool? Local { get; set; } + public virtual bool? Local { get; set; } [CommandEqualsSeparatorSwitch("--output", SwitchValueSeparator = " ")] public string? Output { get; set; } [BooleanCommandSwitch("--record")] - public bool? Record { get; set; } + public virtual bool? Record { get; set; } [BooleanCommandSwitch("--recursive")] - public bool? Recursive { get; set; } + public virtual bool? Recursive { get; set; } [CommandEqualsSeparatorSwitch("--requests", SwitchValueSeparator = " ")] public string? Requests { get; set; } @@ -50,7 +50,7 @@ public record KubernetesSetResourcesOptions : KubernetesOptions public string? Selector { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--template", SwitchValueSeparator = " ")] public string? Template { get; set; } diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesSetSelectorOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesSetSelectorOptions.cs index 338e882378..1b96b26576 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesSetSelectorOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesSetSelectorOptions.cs @@ -8,10 +8,10 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesSetSelectorOptions : KubernetesOptions { [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [CommandEqualsSeparatorSwitch("--dry-run", SwitchValueSeparator = " ")] public string? DryRun { get; set; } @@ -23,22 +23,22 @@ public record KubernetesSetSelectorOptions : KubernetesOptions public string[]? Filename { get; set; } [BooleanCommandSwitch("--local")] - public bool? Local { get; set; } + public virtual bool? Local { get; set; } [CommandEqualsSeparatorSwitch("--output", SwitchValueSeparator = " ")] public string? Output { get; set; } [BooleanCommandSwitch("--record")] - public bool? Record { get; set; } + public virtual bool? Record { get; set; } [BooleanCommandSwitch("--recursive")] - public bool? Recursive { get; set; } + public virtual bool? Recursive { get; set; } [CommandEqualsSeparatorSwitch("--resource-version", SwitchValueSeparator = " ")] public string? ResourceVersion { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--template", SwitchValueSeparator = " ")] public string? Template { get; set; } diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesSetServiceAccountOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesSetServiceAccountOptions.cs index 0ede916de9..df8228f138 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesSetServiceAccountOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesSetServiceAccountOptions.cs @@ -8,10 +8,10 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesSetServiceAccountOptions : KubernetesOptions { [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [CommandEqualsSeparatorSwitch("--dry-run", SwitchValueSeparator = " ")] public string? DryRun { get; set; } @@ -26,19 +26,19 @@ public record KubernetesSetServiceAccountOptions : KubernetesOptions public string? Kustomize { get; set; } [BooleanCommandSwitch("--local")] - public bool? Local { get; set; } + public virtual bool? Local { get; set; } [CommandEqualsSeparatorSwitch("--output", SwitchValueSeparator = " ")] public string? Output { get; set; } [BooleanCommandSwitch("--record")] - public bool? Record { get; set; } + public virtual bool? Record { get; set; } [BooleanCommandSwitch("--recursive")] - public bool? Recursive { get; set; } + public virtual bool? Recursive { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--template", SwitchValueSeparator = " ")] public string? Template { get; set; } diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesSetSubjectOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesSetSubjectOptions.cs index 83499fd69e..a80828e089 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesSetSubjectOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesSetSubjectOptions.cs @@ -8,10 +8,10 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesSetSubjectOptions : KubernetesOptions { [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [CommandEqualsSeparatorSwitch("--dry-run", SwitchValueSeparator = " ")] public string? DryRun { get; set; } @@ -29,13 +29,13 @@ public record KubernetesSetSubjectOptions : KubernetesOptions public string? Kustomize { get; set; } [BooleanCommandSwitch("--local")] - public bool? Local { get; set; } + public virtual bool? Local { get; set; } [CommandEqualsSeparatorSwitch("--output", SwitchValueSeparator = " ")] public string? Output { get; set; } [BooleanCommandSwitch("--recursive")] - public bool? Recursive { get; set; } + public virtual bool? Recursive { get; set; } [CommandEqualsSeparatorSwitch("--selector", SwitchValueSeparator = " ")] public string? Selector { get; set; } @@ -44,7 +44,7 @@ public record KubernetesSetSubjectOptions : KubernetesOptions public string[]? Serviceaccount { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--template", SwitchValueSeparator = " ")] public string? Template { get; set; } diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesTaintOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesTaintOptions.cs index 253f7a5715..624fb96cb8 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesTaintOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesTaintOptions.cs @@ -8,10 +8,10 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesTaintOptions([property: PositionalArgument] string Node) : KubernetesOptions { [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [CommandEqualsSeparatorSwitch("--dry-run", SwitchValueSeparator = " ")] public string? DryRun { get; set; } @@ -23,17 +23,17 @@ public record KubernetesTaintOptions([property: PositionalArgument] string Node) public string? Output { get; set; } [BooleanCommandSwitch("--overwrite")] - public bool? Overwrite { get; set; } + public virtual bool? Overwrite { get; set; } [CommandEqualsSeparatorSwitch("--selector", SwitchValueSeparator = " ")] public string? Selector { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--template", SwitchValueSeparator = " ")] public string? Template { get; set; } [BooleanCommandSwitch("--validate")] - public bool? Validate { get; set; } + public virtual bool? Validate { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesTopNodeOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesTopNodeOptions.cs index 800cd0c745..0b0cf3d951 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesTopNodeOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesTopNodeOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesTopNodeOptions([property: PositionalArgument] string Name) : KubernetesOptions { [BooleanCommandSwitch("--no-headers")] - public bool? NoHeaders { get; set; } + public virtual bool? NoHeaders { get; set; } [CommandEqualsSeparatorSwitch("--selector", SwitchValueSeparator = " ")] public string? Selector { get; set; } @@ -17,5 +17,5 @@ public record KubernetesTopNodeOptions([property: PositionalArgument] string Nam public string? SortBy { get; set; } [BooleanCommandSwitch("--use-protocol-buffers")] - public bool? UseProtocolBuffers { get; set; } + public virtual bool? UseProtocolBuffers { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesTopOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesTopOptions.cs index a1ee202176..d2a54f69b1 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesTopOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesTopOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesTopOptions : KubernetesOptions { [BooleanCommandSwitch("--no-headers")] - public bool? NoHeaders { get; set; } + public virtual bool? NoHeaders { get; set; } [CommandEqualsSeparatorSwitch("--selector", SwitchValueSeparator = " ")] public string? Selector { get; set; } @@ -17,5 +17,5 @@ public record KubernetesTopOptions : KubernetesOptions public string? SortBy { get; set; } [BooleanCommandSwitch("--use-protocol-buffers")] - public bool? UseProtocolBuffers { get; set; } + public virtual bool? UseProtocolBuffers { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesTopPodOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesTopPodOptions.cs index ec551b1bc4..6bb97043e1 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesTopPodOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesTopPodOptions.cs @@ -8,16 +8,16 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesTopPodOptions([property: PositionalArgument] string Name) : KubernetesOptions { [BooleanCommandSwitch("--all-namespaces")] - public bool? AllNamespaces { get; set; } + public virtual bool? AllNamespaces { get; set; } [BooleanCommandSwitch("--containers")] - public bool? Containers { get; set; } + public virtual bool? Containers { get; set; } [CommandEqualsSeparatorSwitch("--field-selector", SwitchValueSeparator = " ")] public string? FieldSelector { get; set; } [BooleanCommandSwitch("--no-headers")] - public bool? NoHeaders { get; set; } + public virtual bool? NoHeaders { get; set; } [CommandEqualsSeparatorSwitch("--selector", SwitchValueSeparator = " ")] public string? Selector { get; set; } @@ -26,5 +26,5 @@ public record KubernetesTopPodOptions([property: PositionalArgument] string Name public string? SortBy { get; set; } [BooleanCommandSwitch("--use-protocol-buffers")] - public bool? UseProtocolBuffers { get; set; } + public virtual bool? UseProtocolBuffers { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesVersionOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesVersionOptions.cs index bc06706e51..d7a5fd17c3 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesVersionOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesVersionOptions.cs @@ -8,11 +8,11 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesVersionOptions : KubernetesOptions { [BooleanCommandSwitch("--client")] - public bool? Client { get; set; } + public virtual bool? Client { get; set; } [CommandEqualsSeparatorSwitch("--output", SwitchValueSeparator = " ")] public string? Output { get; set; } [BooleanCommandSwitch("--short")] - public bool? Short { get; set; } + public virtual bool? Short { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Kubernetes/Options/KubernetesWaitOptions.cs b/src/ModularPipelines.Kubernetes/Options/KubernetesWaitOptions.cs index da9b1297b7..3e388fe600 100644 --- a/src/ModularPipelines.Kubernetes/Options/KubernetesWaitOptions.cs +++ b/src/ModularPipelines.Kubernetes/Options/KubernetesWaitOptions.cs @@ -8,13 +8,13 @@ namespace ModularPipelines.Kubernetes.Options; public record KubernetesWaitOptions([property: PositionalArgument] string Name) : KubernetesOptions { [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } [BooleanCommandSwitch("--all-namespaces")] - public bool? AllNamespaces { get; set; } + public virtual bool? AllNamespaces { get; set; } [BooleanCommandSwitch("--allow-missing-template-keys")] - public bool? AllowMissingTemplateKeys { get; set; } + public virtual bool? AllowMissingTemplateKeys { get; set; } [CommandEqualsSeparatorSwitch("--field-selector", SwitchValueSeparator = " ")] public string? FieldSelector { get; set; } @@ -26,19 +26,19 @@ public record KubernetesWaitOptions([property: PositionalArgument] string Name) public string? For { get; set; } [BooleanCommandSwitch("--local")] - public bool? Local { get; set; } + public virtual bool? Local { get; set; } [CommandEqualsSeparatorSwitch("--output", SwitchValueSeparator = " ")] public string? Output { get; set; } [BooleanCommandSwitch("--recursive")] - public bool? Recursive { get; set; } + public virtual bool? Recursive { get; set; } [CommandEqualsSeparatorSwitch("--selector", SwitchValueSeparator = " ")] public string? Selector { get; set; } [BooleanCommandSwitch("--show-managed-fields")] - public bool? ShowManagedFields { get; set; } + public virtual bool? ShowManagedFields { get; set; } [CommandEqualsSeparatorSwitch("--template", SwitchValueSeparator = " ")] public string? Template { get; set; } diff --git a/src/ModularPipelines.Node/Models/NpmAccessGetStatusOptions.cs b/src/ModularPipelines.Node/Models/NpmAccessGetStatusOptions.cs index 57a899d8ac..836547f3d9 100644 --- a/src/ModularPipelines.Node/Models/NpmAccessGetStatusOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmAccessGetStatusOptions.cs @@ -8,13 +8,13 @@ namespace ModularPipelines.Node.Models; public record NpmAccessGetStatusOptions : NpmOptions { [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } [CommandSwitch("--otp")] - public string? Otp { get; set; } + public virtual string? Otp { get; set; } [CommandSwitch("--registry")] - public Uri? Registry { get; set; } + public virtual Uri? Registry { get; set; } [PositionalArgument(Position = Position.BeforeSwitches)] public string? Package { get; set; } diff --git a/src/ModularPipelines.Node/Models/NpmAccessGrantOptions.cs b/src/ModularPipelines.Node/Models/NpmAccessGrantOptions.cs index 547a035b8d..9dc291578b 100644 --- a/src/ModularPipelines.Node/Models/NpmAccessGrantOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmAccessGrantOptions.cs @@ -11,13 +11,13 @@ public record NpmAccessGrantOptions( ) : NpmOptions { [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } [CommandSwitch("--otp")] - public string? Otp { get; set; } + public virtual string? Otp { get; set; } [CommandSwitch("--registry")] - public Uri? Registry { get; set; } + public virtual Uri? Registry { get; set; } [PositionalArgument(Position = Position.AfterSwitches)] public string? Package { get; set; } diff --git a/src/ModularPipelines.Node/Models/NpmAccessListCollaboratorsOptions.cs b/src/ModularPipelines.Node/Models/NpmAccessListCollaboratorsOptions.cs index 0bbcb20267..e9443eb26b 100644 --- a/src/ModularPipelines.Node/Models/NpmAccessListCollaboratorsOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmAccessListCollaboratorsOptions.cs @@ -8,13 +8,13 @@ namespace ModularPipelines.Node.Models; public record NpmAccessListCollaboratorsOptions : NpmOptions { [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } [CommandSwitch("--otp")] - public string? Otp { get; set; } + public virtual string? Otp { get; set; } [CommandSwitch("--registry")] - public Uri? Registry { get; set; } + public virtual Uri? Registry { get; set; } [PositionalArgument(Position = Position.BeforeSwitches)] public string? Package { get; set; } diff --git a/src/ModularPipelines.Node/Models/NpmAccessListPackagesOptions.cs b/src/ModularPipelines.Node/Models/NpmAccessListPackagesOptions.cs index 10ed17ddb3..2cc38a52ae 100644 --- a/src/ModularPipelines.Node/Models/NpmAccessListPackagesOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmAccessListPackagesOptions.cs @@ -8,13 +8,13 @@ namespace ModularPipelines.Node.Models; public record NpmAccessListPackagesOptions : NpmOptions { [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } [CommandSwitch("--otp")] - public string? Otp { get; set; } + public virtual string? Otp { get; set; } [CommandSwitch("--registry")] - public Uri? Registry { get; set; } + public virtual Uri? Registry { get; set; } [PositionalArgument(Position = Position.BeforeSwitches)] public string? User { get; set; } diff --git a/src/ModularPipelines.Node/Models/NpmAccessRevokeOptions.cs b/src/ModularPipelines.Node/Models/NpmAccessRevokeOptions.cs index 3aed6ff7a0..fccc1464a6 100644 --- a/src/ModularPipelines.Node/Models/NpmAccessRevokeOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmAccessRevokeOptions.cs @@ -10,13 +10,13 @@ public record NpmAccessRevokeOptions( ) : NpmOptions { [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } [CommandSwitch("--otp")] - public string? Otp { get; set; } + public virtual string? Otp { get; set; } [CommandSwitch("--registry")] - public Uri? Registry { get; set; } + public virtual Uri? Registry { get; set; } [PositionalArgument(Position = Position.AfterSwitches)] public string? Package { get; set; } diff --git a/src/ModularPipelines.Node/Models/NpmAccessSetOptions.cs b/src/ModularPipelines.Node/Models/NpmAccessSetOptions.cs index 0c1501e658..41831bb1f2 100644 --- a/src/ModularPipelines.Node/Models/NpmAccessSetOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmAccessSetOptions.cs @@ -10,13 +10,13 @@ public record NpmAccessSetOptions( ) : NpmOptions { [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } [CommandSwitch("--otp")] - public string? Otp { get; set; } + public virtual string? Otp { get; set; } [CommandSwitch("--registry")] - public Uri? Registry { get; set; } + public virtual Uri? Registry { get; set; } [PositionalArgument(Position = Position.AfterSwitches)] public string? Package { get; set; } diff --git a/src/ModularPipelines.Node/Models/NpmAdduserOptions.cs b/src/ModularPipelines.Node/Models/NpmAdduserOptions.cs index 4b524a5a55..af8901bb1c 100644 --- a/src/ModularPipelines.Node/Models/NpmAdduserOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmAdduserOptions.cs @@ -8,11 +8,11 @@ namespace ModularPipelines.Node.Models; public record NpmAdduserOptions : NpmOptions { [CommandSwitch("--registry")] - public Uri? Registry { get; set; } + public virtual Uri? Registry { get; set; } [CommandSwitch("--scope")] - public string? Scope { get; set; } + public virtual string? Scope { get; set; } [CommandSwitch("--auth-type")] - public string? AuthType { get; set; } + public virtual string? AuthType { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Models/NpmAuditOptions.cs b/src/ModularPipelines.Node/Models/NpmAuditOptions.cs index bad5d6fa7b..68ca359668 100644 --- a/src/ModularPipelines.Node/Models/NpmAuditOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmAuditOptions.cs @@ -8,44 +8,44 @@ namespace ModularPipelines.Node.Models; public record NpmAuditOptions : NpmOptions { [CommandSwitch("--audit-level")] - public string? AuditLevel { get; set; } + public virtual string? AuditLevel { get; set; } [BooleanCommandSwitch("--dry-run")] - public bool? DryRun { get; set; } + public virtual bool? DryRun { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } [BooleanCommandSwitch("--package-lock-only")] - public bool? PackageLockOnly { get; set; } + public virtual bool? PackageLockOnly { get; set; } [BooleanCommandSwitch("--package-lock")] - public bool? PackageLock { get; set; } + public virtual bool? PackageLock { get; set; } [CommandSwitch("--omit")] - public string? Omit { get; set; } + public virtual string? Omit { get; set; } [CommandSwitch("--include")] - public string? Include { get; set; } + public virtual string? Include { get; set; } [BooleanCommandSwitch("--foreground-scripts")] - public bool? ForegroundScripts { get; set; } + public virtual bool? ForegroundScripts { get; set; } [BooleanCommandSwitch("--ignore-scripts")] - public bool? IgnoreScripts { get; set; } + public virtual bool? IgnoreScripts { get; set; } [CommandSwitch("--workspace")] - public string[]? Workspace { get; set; } + public virtual string[]? Workspace { get; set; } [BooleanCommandSwitch("--workspaces")] - public bool? Workspaces { get; set; } + public virtual bool? Workspaces { get; set; } [BooleanCommandSwitch("--include-workspace-root")] - public bool? IncludeWorkspaceRoot { get; set; } + public virtual bool? IncludeWorkspaceRoot { get; set; } [BooleanCommandSwitch("--install-links")] - public bool? InstallLinks { get; set; } + public virtual bool? InstallLinks { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Models/NpmBugsOptions.cs b/src/ModularPipelines.Node/Models/NpmBugsOptions.cs index 14a9846dca..928444263e 100644 --- a/src/ModularPipelines.Node/Models/NpmBugsOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmBugsOptions.cs @@ -8,19 +8,19 @@ namespace ModularPipelines.Node.Models; public record NpmBugsOptions : NpmOptions { [CommandSwitch("--browser")] - public string? Browser { get; set; } + public virtual string? Browser { get; set; } [CommandSwitch("--registry")] - public Uri? Registry { get; set; } + public virtual Uri? Registry { get; set; } [CommandSwitch("--workspace")] - public string[]? Workspace { get; set; } + public virtual string[]? Workspace { get; set; } [BooleanCommandSwitch("--workspaces")] - public bool? Workspaces { get; set; } + public virtual bool? Workspaces { get; set; } [BooleanCommandSwitch("--include-workspace-root")] - public bool? IncludeWorkspaceRoot { get; set; } + public virtual bool? IncludeWorkspaceRoot { get; set; } [PositionalArgument(Position = Position.BeforeSwitches)] public string? Pkgname { get; set; } diff --git a/src/ModularPipelines.Node/Models/NpmCacheAddOptions.cs b/src/ModularPipelines.Node/Models/NpmCacheAddOptions.cs index 264e8197fa..67b8ad2237 100644 --- a/src/ModularPipelines.Node/Models/NpmCacheAddOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmCacheAddOptions.cs @@ -8,5 +8,5 @@ namespace ModularPipelines.Node.Models; public record NpmCacheAddOptions : NpmOptions { [CommandSwitch("--cache")] - public string? Cache { get; set; } + public virtual string? Cache { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Models/NpmCacheCleanOptions.cs b/src/ModularPipelines.Node/Models/NpmCacheCleanOptions.cs index a6e379ccce..591cffc9ed 100644 --- a/src/ModularPipelines.Node/Models/NpmCacheCleanOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmCacheCleanOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Node.Models; public record NpmCacheCleanOptions : NpmOptions { [CommandSwitch("--cache")] - public string? Cache { get; set; } + public virtual string? Cache { get; set; } [PositionalArgument(Position = Position.BeforeSwitches)] public string? Key { get; set; } diff --git a/src/ModularPipelines.Node/Models/NpmCacheLsOptions.cs b/src/ModularPipelines.Node/Models/NpmCacheLsOptions.cs index a6bc7a1d83..762ff852db 100644 --- a/src/ModularPipelines.Node/Models/NpmCacheLsOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmCacheLsOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Node.Models; public record NpmCacheLsOptions : NpmOptions { [CommandSwitch("--cache")] - public string? Cache { get; set; } + public virtual string? Cache { get; set; } [PositionalArgument(Position = Position.BeforeSwitches)] public string? Name { get; set; } diff --git a/src/ModularPipelines.Node/Models/NpmCacheVerifyOptions.cs b/src/ModularPipelines.Node/Models/NpmCacheVerifyOptions.cs index 0575b5dd73..54e6f7b0b5 100644 --- a/src/ModularPipelines.Node/Models/NpmCacheVerifyOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmCacheVerifyOptions.cs @@ -8,5 +8,5 @@ namespace ModularPipelines.Node.Models; public record NpmCacheVerifyOptions : NpmOptions { [CommandSwitch("--cache")] - public string? Cache { get; set; } + public virtual string? Cache { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Models/NpmCiOptions.cs b/src/ModularPipelines.Node/Models/NpmCiOptions.cs index 7be4095ea3..7e72edb538 100644 --- a/src/ModularPipelines.Node/Models/NpmCiOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmCiOptions.cs @@ -8,44 +8,44 @@ namespace ModularPipelines.Node.Models; public record NpmCiOptions : NpmOptions { [CommandSwitch("--install-strategy")] - public string? InstallStrategy { get; set; } + public virtual string? InstallStrategy { get; set; } [CommandSwitch("--omit")] - public string? Omit { get; set; } + public virtual string? Omit { get; set; } [CommandSwitch("--include")] - public string? Include { get; set; } + public virtual string? Include { get; set; } [BooleanCommandSwitch("--strict-peer-deps")] - public bool? StrictPeerDeps { get; set; } + public virtual bool? StrictPeerDeps { get; set; } [BooleanCommandSwitch("--foreground-scripts")] - public bool? ForegroundScripts { get; set; } + public virtual bool? ForegroundScripts { get; set; } [BooleanCommandSwitch("--ignore-scripts")] - public bool? IgnoreScripts { get; set; } + public virtual bool? IgnoreScripts { get; set; } [BooleanCommandSwitch("--audit")] - public bool? Audit { get; set; } + public virtual bool? Audit { get; set; } [BooleanCommandSwitch("--bin-links")] - public bool? BinLinks { get; set; } + public virtual bool? BinLinks { get; set; } [BooleanCommandSwitch("--fund")] - public bool? Fund { get; set; } + public virtual bool? Fund { get; set; } [BooleanCommandSwitch("--dry-run")] - public bool? DryRun { get; set; } + public virtual bool? DryRun { get; set; } [CommandSwitch("--workspace")] - public string[]? Workspace { get; set; } + public virtual string[]? Workspace { get; set; } [BooleanCommandSwitch("--workspaces")] - public bool? Workspaces { get; set; } + public virtual bool? Workspaces { get; set; } [BooleanCommandSwitch("--include-workspace-root")] - public bool? IncludeWorkspaceRoot { get; set; } + public virtual bool? IncludeWorkspaceRoot { get; set; } [BooleanCommandSwitch("--install-links")] - public bool? InstallLinks { get; set; } + public virtual bool? InstallLinks { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Models/NpmConfigDeleteOptions.cs b/src/ModularPipelines.Node/Models/NpmConfigDeleteOptions.cs index 04ea90999b..38c930b768 100644 --- a/src/ModularPipelines.Node/Models/NpmConfigDeleteOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmConfigDeleteOptions.cs @@ -10,17 +10,17 @@ public record NpmConfigDeleteOptions( ) : NpmOptions { [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } [BooleanCommandSwitch("--global")] - public bool? Global { get; set; } + public virtual bool? Global { get; set; } [CommandSwitch("--editor")] - public string? Editor { get; set; } + public virtual string? Editor { get; set; } [CommandSwitch("--location")] - public string? Location { get; set; } + public virtual string? Location { get; set; } [BooleanCommandSwitch("--long")] - public bool? Long { get; set; } + public virtual bool? Long { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Models/NpmConfigEditOptions.cs b/src/ModularPipelines.Node/Models/NpmConfigEditOptions.cs index ed634d730d..64c7be559a 100644 --- a/src/ModularPipelines.Node/Models/NpmConfigEditOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmConfigEditOptions.cs @@ -8,17 +8,17 @@ namespace ModularPipelines.Node.Models; public record NpmConfigEditOptions : NpmOptions { [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } [BooleanCommandSwitch("--global")] - public bool? Global { get; set; } + public virtual bool? Global { get; set; } [CommandSwitch("--editor")] - public string? Editor { get; set; } + public virtual string? Editor { get; set; } [CommandSwitch("--location")] - public string? Location { get; set; } + public virtual string? Location { get; set; } [BooleanCommandSwitch("--long")] - public bool? Long { get; set; } + public virtual bool? Long { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Models/NpmConfigFixOptions.cs b/src/ModularPipelines.Node/Models/NpmConfigFixOptions.cs index 35e0f5a6d0..638bda6865 100644 --- a/src/ModularPipelines.Node/Models/NpmConfigFixOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmConfigFixOptions.cs @@ -8,17 +8,17 @@ namespace ModularPipelines.Node.Models; public record NpmConfigFixOptions : NpmOptions { [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } [BooleanCommandSwitch("--global")] - public bool? Global { get; set; } + public virtual bool? Global { get; set; } [CommandSwitch("--editor")] - public string? Editor { get; set; } + public virtual string? Editor { get; set; } [CommandSwitch("--location")] - public string? Location { get; set; } + public virtual string? Location { get; set; } [BooleanCommandSwitch("--long")] - public bool? Long { get; set; } + public virtual bool? Long { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Models/NpmConfigGetOptions.cs b/src/ModularPipelines.Node/Models/NpmConfigGetOptions.cs index 323a4e90ba..5590338f71 100644 --- a/src/ModularPipelines.Node/Models/NpmConfigGetOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmConfigGetOptions.cs @@ -8,19 +8,19 @@ namespace ModularPipelines.Node.Models; public record NpmConfigGetOptions : NpmOptions { [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } [BooleanCommandSwitch("--global")] - public bool? Global { get; set; } + public virtual bool? Global { get; set; } [CommandSwitch("--editor")] - public string? Editor { get; set; } + public virtual string? Editor { get; set; } [CommandSwitch("--location")] - public string? Location { get; set; } + public virtual string? Location { get; set; } [BooleanCommandSwitch("--long")] - public bool? Long { get; set; } + public virtual bool? Long { get; set; } [PositionalArgument(Position = Position.BeforeSwitches)] public string? Key { get; set; } diff --git a/src/ModularPipelines.Node/Models/NpmConfigListOptions.cs b/src/ModularPipelines.Node/Models/NpmConfigListOptions.cs index 605c3100f9..60c9ab1a4a 100644 --- a/src/ModularPipelines.Node/Models/NpmConfigListOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmConfigListOptions.cs @@ -8,17 +8,17 @@ namespace ModularPipelines.Node.Models; public record NpmConfigListOptions : NpmOptions { [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } [BooleanCommandSwitch("--global")] - public bool? Global { get; set; } + public virtual bool? Global { get; set; } [CommandSwitch("--editor")] - public string? Editor { get; set; } + public virtual string? Editor { get; set; } [CommandSwitch("--location")] - public string? Location { get; set; } + public virtual string? Location { get; set; } [BooleanCommandSwitch("--long")] - public bool? Long { get; set; } + public virtual bool? Long { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Models/NpmConfigSetOptions.cs b/src/ModularPipelines.Node/Models/NpmConfigSetOptions.cs index 3e166881a2..0ac8ef7fb5 100644 --- a/src/ModularPipelines.Node/Models/NpmConfigSetOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmConfigSetOptions.cs @@ -10,19 +10,19 @@ public record NpmConfigSetOptions( ) : NpmOptions { [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } [BooleanCommandSwitch("--global")] - public bool? Global { get; set; } + public virtual bool? Global { get; set; } [CommandSwitch("--editor")] - public string? Editor { get; set; } + public virtual string? Editor { get; set; } [CommandSwitch("--location")] - public string? Location { get; set; } + public virtual string? Location { get; set; } [BooleanCommandSwitch("--long")] - public bool? Long { get; set; } + public virtual bool? Long { get; set; } [PositionalArgument(Position = Position.BeforeSwitches)] public string? Key { get; set; } diff --git a/src/ModularPipelines.Node/Models/NpmConfigSetRegistryOptions.cs b/src/ModularPipelines.Node/Models/NpmConfigSetRegistryOptions.cs index 1749fcd6c6..66b7164c63 100644 --- a/src/ModularPipelines.Node/Models/NpmConfigSetRegistryOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmConfigSetRegistryOptions.cs @@ -10,19 +10,19 @@ public record NpmConfigSetRegistryOptions( ) : NpmOptions { [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } [BooleanCommandSwitch("--global")] - public bool? Global { get; set; } + public virtual bool? Global { get; set; } [CommandSwitch("--editor")] - public string? Editor { get; set; } + public virtual string? Editor { get; set; } [CommandSwitch("--location")] - public string? Location { get; set; } + public virtual string? Location { get; set; } [BooleanCommandSwitch("--long")] - public bool? Long { get; set; } + public virtual bool? Long { get; set; } [PositionalArgument(Position = Position.BeforeSwitches)] public string? Key { get; set; } diff --git a/src/ModularPipelines.Node/Models/NpmDedupeOptions.cs b/src/ModularPipelines.Node/Models/NpmDedupeOptions.cs index d64a857b8e..e3cb4fce6c 100644 --- a/src/ModularPipelines.Node/Models/NpmDedupeOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmDedupeOptions.cs @@ -8,44 +8,44 @@ namespace ModularPipelines.Node.Models; public record NpmDedupeOptions : NpmOptions { [CommandSwitch("--install-strategy")] - public string? InstallStrategy { get; set; } + public virtual string? InstallStrategy { get; set; } [BooleanCommandSwitch("--strict-peer-deps")] - public bool? StrictPeerDeps { get; set; } + public virtual bool? StrictPeerDeps { get; set; } [BooleanCommandSwitch("--package-lock")] - public bool? PackageLock { get; set; } + public virtual bool? PackageLock { get; set; } [CommandSwitch("--omit")] - public string? Omit { get; set; } + public virtual string? Omit { get; set; } [CommandSwitch("--include")] - public string? Include { get; set; } + public virtual string? Include { get; set; } [BooleanCommandSwitch("--ignore-scripts")] - public bool? IgnoreScripts { get; set; } + public virtual bool? IgnoreScripts { get; set; } [BooleanCommandSwitch("--audit")] - public bool? Audit { get; set; } + public virtual bool? Audit { get; set; } [BooleanCommandSwitch("--bin-links")] - public bool? BinLinks { get; set; } + public virtual bool? BinLinks { get; set; } [BooleanCommandSwitch("--fund")] - public bool? Fund { get; set; } + public virtual bool? Fund { get; set; } [BooleanCommandSwitch("--dry-run")] - public bool? DryRun { get; set; } + public virtual bool? DryRun { get; set; } [CommandSwitch("--workspace")] - public string[]? Workspace { get; set; } + public virtual string[]? Workspace { get; set; } [BooleanCommandSwitch("--workspaces")] - public bool? Workspaces { get; set; } + public virtual bool? Workspaces { get; set; } [BooleanCommandSwitch("--include-workspace-root")] - public bool? IncludeWorkspaceRoot { get; set; } + public virtual bool? IncludeWorkspaceRoot { get; set; } [BooleanCommandSwitch("--install-links")] - public bool? InstallLinks { get; set; } + public virtual bool? InstallLinks { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Models/NpmDeprecateOptions.cs b/src/ModularPipelines.Node/Models/NpmDeprecateOptions.cs index 8815212673..fcdfe9a996 100644 --- a/src/ModularPipelines.Node/Models/NpmDeprecateOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmDeprecateOptions.cs @@ -10,8 +10,8 @@ public record NpmDeprecateOptions( ) : NpmOptions { [CommandSwitch("--registry")] - public Uri? Registry { get; set; } + public virtual Uri? Registry { get; set; } [CommandSwitch("--otp")] - public string? Otp { get; set; } + public virtual string? Otp { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Models/NpmDiffOptions.cs b/src/ModularPipelines.Node/Models/NpmDiffOptions.cs index b361338976..6fcf755c4c 100644 --- a/src/ModularPipelines.Node/Models/NpmDiffOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmDiffOptions.cs @@ -8,43 +8,43 @@ namespace ModularPipelines.Node.Models; public record NpmDiffOptions : NpmOptions { [CommandSwitch("--diff")] - public string[]? Diff { get; set; } + public virtual string[]? Diff { get; set; } [BooleanCommandSwitch("--diff-name-only")] - public bool? DiffNameOnly { get; set; } + public virtual bool? DiffNameOnly { get; set; } [CommandSwitch("--diff-unified")] - public int? DiffUnified { get; set; } + public virtual int? DiffUnified { get; set; } [BooleanCommandSwitch("--diff-ignore-all-space")] - public bool? DiffIgnoreAllSpace { get; set; } + public virtual bool? DiffIgnoreAllSpace { get; set; } [BooleanCommandSwitch("--diff-no-prefix")] - public bool? DiffNoPrefix { get; set; } + public virtual bool? DiffNoPrefix { get; set; } [CommandSwitch("--diff-src-prefix")] - public string? DiffSrcPrefix { get; set; } + public virtual string? DiffSrcPrefix { get; set; } [CommandSwitch("--diff-dst-prefix")] - public string? DiffDstPrefix { get; set; } + public virtual string? DiffDstPrefix { get; set; } [BooleanCommandSwitch("--diff-text")] - public bool? DiffText { get; set; } + public virtual bool? DiffText { get; set; } [BooleanCommandSwitch("--global")] - public bool? Global { get; set; } + public virtual bool? Global { get; set; } [CommandSwitch("--tag")] - public string? Tag { get; set; } + public virtual string? Tag { get; set; } [CommandSwitch("--workspace")] - public string[]? Workspace { get; set; } + public virtual string[]? Workspace { get; set; } [BooleanCommandSwitch("--workspaces")] - public bool? Workspaces { get; set; } + public virtual bool? Workspaces { get; set; } [BooleanCommandSwitch("--include-workspace-root")] - public bool? IncludeWorkspaceRoot { get; set; } + public virtual bool? IncludeWorkspaceRoot { get; set; } [PositionalArgument(Position = Position.BeforeSwitches)] public string? Paths { get; set; } diff --git a/src/ModularPipelines.Node/Models/NpmDocsOptions.cs b/src/ModularPipelines.Node/Models/NpmDocsOptions.cs index 96765a3679..6d920fb679 100644 --- a/src/ModularPipelines.Node/Models/NpmDocsOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmDocsOptions.cs @@ -8,19 +8,19 @@ namespace ModularPipelines.Node.Models; public record NpmDocsOptions : NpmOptions { [CommandSwitch("--browser")] - public string? Browser { get; set; } + public virtual string? Browser { get; set; } [CommandSwitch("--registry")] - public Uri? Registry { get; set; } + public virtual Uri? Registry { get; set; } [CommandSwitch("--workspace")] - public string[]? Workspace { get; set; } + public virtual string[]? Workspace { get; set; } [BooleanCommandSwitch("--workspaces")] - public bool? Workspaces { get; set; } + public virtual bool? Workspaces { get; set; } [BooleanCommandSwitch("--include-workspace-root")] - public bool? IncludeWorkspaceRoot { get; set; } + public virtual bool? IncludeWorkspaceRoot { get; set; } [PositionalArgument(Position = Position.BeforeSwitches)] public string? Pkgname { get; set; } diff --git a/src/ModularPipelines.Node/Models/NpmDoctorOptions.cs b/src/ModularPipelines.Node/Models/NpmDoctorOptions.cs index 3d51f3dbe8..561db0a78d 100644 --- a/src/ModularPipelines.Node/Models/NpmDoctorOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmDoctorOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Node.Models; public record NpmDoctorOptions : NpmOptions { [CommandSwitch("--registry")] - public Uri? Registry { get; set; } + public virtual Uri? Registry { get; set; } [PositionalArgument(Position = Position.BeforeSwitches)] public string? Ping { get; set; } diff --git a/src/ModularPipelines.Node/Models/NpmEditOptions.cs b/src/ModularPipelines.Node/Models/NpmEditOptions.cs index da530095a6..de670ada1e 100644 --- a/src/ModularPipelines.Node/Models/NpmEditOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmEditOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Node.Models; public record NpmEditOptions : NpmOptions { [CommandSwitch("--editor")] - public string? Editor { get; set; } + public virtual string? Editor { get; set; } [PositionalArgument(Position = Position.BeforeSwitches)] public string? Pkg { get; set; } diff --git a/src/ModularPipelines.Node/Models/NpmExecCOptions.cs b/src/ModularPipelines.Node/Models/NpmExecCOptions.cs index 35f9c9414d..4e87f67ace 100644 --- a/src/ModularPipelines.Node/Models/NpmExecCOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmExecCOptions.cs @@ -8,19 +8,19 @@ namespace ModularPipelines.Node.Models; public record NpmExecCOptions : NpmOptions { [CommandSwitch("--package")] - public string[]? Package { get; set; } + public virtual string[]? Package { get; set; } [CommandSwitch("--call")] - public string? Call { get; set; } + public virtual string? Call { get; set; } [CommandSwitch("--workspace")] - public string[]? Workspace { get; set; } + public virtual string[]? Workspace { get; set; } [BooleanCommandSwitch("--workspaces")] - public bool? Workspaces { get; set; } + public virtual bool? Workspaces { get; set; } [BooleanCommandSwitch("--include-workspace-root")] - public bool? IncludeWorkspaceRoot { get; set; } + public virtual bool? IncludeWorkspaceRoot { get; set; } [PositionalArgument(Position = Position.BeforeSwitches)] public string? Cmd { get; set; } diff --git a/src/ModularPipelines.Node/Models/NpmExecOptions.cs b/src/ModularPipelines.Node/Models/NpmExecOptions.cs index 260874d6dd..e62167cc46 100644 --- a/src/ModularPipelines.Node/Models/NpmExecOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmExecOptions.cs @@ -11,19 +11,19 @@ public record NpmExecOptions( ) : NpmOptions { [CommandSwitch("--package")] - public string[]? Package { get; set; } + public virtual string[]? Package { get; set; } [CommandSwitch("--call")] - public string? Call { get; set; } + public virtual string? Call { get; set; } [CommandSwitch("--workspace")] - public string[]? Workspace { get; set; } + public virtual string[]? Workspace { get; set; } [BooleanCommandSwitch("--workspaces")] - public bool? Workspaces { get; set; } + public virtual bool? Workspaces { get; set; } [BooleanCommandSwitch("--include-workspace-root")] - public bool? IncludeWorkspaceRoot { get; set; } + public virtual bool? IncludeWorkspaceRoot { get; set; } [PositionalArgument(Position = Position.BeforeSwitches)] public string? Pkg { get; set; } diff --git a/src/ModularPipelines.Node/Models/NpmExplainOptions.cs b/src/ModularPipelines.Node/Models/NpmExplainOptions.cs index 0fda3cc3d2..4b12f796bb 100644 --- a/src/ModularPipelines.Node/Models/NpmExplainOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmExplainOptions.cs @@ -8,8 +8,8 @@ namespace ModularPipelines.Node.Models; public record NpmExplainOptions : NpmOptions { [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } [CommandSwitch("--workspace")] - public string[]? Workspace { get; set; } + public virtual string[]? Workspace { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Models/NpmExploreOptions.cs b/src/ModularPipelines.Node/Models/NpmExploreOptions.cs index f8f0fde0b8..6145f56eaf 100644 --- a/src/ModularPipelines.Node/Models/NpmExploreOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmExploreOptions.cs @@ -8,5 +8,5 @@ namespace ModularPipelines.Node.Models; public record NpmExploreOptions : NpmOptions { [CommandSwitch("--shell")] - public string? Shell { get; set; } + public virtual string? Shell { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Models/NpmFundOptions.cs b/src/ModularPipelines.Node/Models/NpmFundOptions.cs index b459e1353b..05c7643c66 100644 --- a/src/ModularPipelines.Node/Models/NpmFundOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmFundOptions.cs @@ -8,17 +8,17 @@ namespace ModularPipelines.Node.Models; public record NpmFundOptions : NpmOptions { [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } [CommandSwitch("--browser")] - public string? Browser { get; set; } + public virtual string? Browser { get; set; } [BooleanCommandSwitch("--unicode")] - public bool? Unicode { get; set; } + public virtual bool? Unicode { get; set; } [CommandSwitch("--workspace")] - public string[]? Workspace { get; set; } + public virtual string[]? Workspace { get; set; } [CommandSwitch("--which")] - public int? Which { get; set; } + public virtual int? Which { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Models/NpmHelpOptions.cs b/src/ModularPipelines.Node/Models/NpmHelpOptions.cs index c1545bebd8..77c54a5db0 100644 --- a/src/ModularPipelines.Node/Models/NpmHelpOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmHelpOptions.cs @@ -10,5 +10,5 @@ public record NpmHelpOptions( ) : NpmOptions { [CommandSwitch("--viewer")] - public string? Viewer { get; set; } + public virtual string? Viewer { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Models/NpmHookAddOptions.cs b/src/ModularPipelines.Node/Models/NpmHookAddOptions.cs index 001d1b7dc8..9f133cae6c 100644 --- a/src/ModularPipelines.Node/Models/NpmHookAddOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmHookAddOptions.cs @@ -12,10 +12,10 @@ public record NpmHookAddOptions( ) : NpmOptions { [CommandSwitch("--registry")] - public Uri? Registry { get; set; } + public virtual Uri? Registry { get; set; } [CommandSwitch("--otp")] - public string? Otp { get; set; } + public virtual string? Otp { get; set; } [PositionalArgument(Position = Position.BeforeSwitches)] public string? Type { get; set; } diff --git a/src/ModularPipelines.Node/Models/NpmHookLsOptions.cs b/src/ModularPipelines.Node/Models/NpmHookLsOptions.cs index b035a577db..753d6e4cd5 100644 --- a/src/ModularPipelines.Node/Models/NpmHookLsOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmHookLsOptions.cs @@ -8,10 +8,10 @@ namespace ModularPipelines.Node.Models; public record NpmHookLsOptions : NpmOptions { [CommandSwitch("--registry")] - public Uri? Registry { get; set; } + public virtual Uri? Registry { get; set; } [CommandSwitch("--otp")] - public string? Otp { get; set; } + public virtual string? Otp { get; set; } [PositionalArgument(Position = Position.BeforeSwitches)] public string? Pkg { get; set; } diff --git a/src/ModularPipelines.Node/Models/NpmHookRmOptions.cs b/src/ModularPipelines.Node/Models/NpmHookRmOptions.cs index ae415e95ed..3d3342e261 100644 --- a/src/ModularPipelines.Node/Models/NpmHookRmOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmHookRmOptions.cs @@ -10,8 +10,8 @@ public record NpmHookRmOptions( ) : NpmOptions { [CommandSwitch("--registry")] - public Uri? Registry { get; set; } + public virtual Uri? Registry { get; set; } [CommandSwitch("--otp")] - public string? Otp { get; set; } + public virtual string? Otp { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Models/NpmHookUpdateOptions.cs b/src/ModularPipelines.Node/Models/NpmHookUpdateOptions.cs index a776ba77ce..6d51164fda 100644 --- a/src/ModularPipelines.Node/Models/NpmHookUpdateOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmHookUpdateOptions.cs @@ -12,8 +12,8 @@ public record NpmHookUpdateOptions( ) : NpmOptions { [CommandSwitch("--registry")] - public Uri? Registry { get; set; } + public virtual Uri? Registry { get; set; } [CommandSwitch("--otp")] - public string? Otp { get; set; } + public virtual string? Otp { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Models/NpmInitOptions.cs b/src/ModularPipelines.Node/Models/NpmInitOptions.cs index c51da14b53..80bf03fcb3 100644 --- a/src/ModularPipelines.Node/Models/NpmInitOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmInitOptions.cs @@ -11,38 +11,38 @@ public record NpmInitOptions ) : NpmOptions { [CommandSwitch("--init-author-name")] - public string? InitAuthorName { get; set; } + public virtual string? InitAuthorName { get; set; } [CommandSwitch("--init-author-url")] - public string? InitAuthorUrl { get; set; } + public virtual string? InitAuthorUrl { get; set; } [CommandSwitch("--init-license")] - public string? InitLicense { get; set; } + public virtual string? InitLicense { get; set; } [CommandSwitch("--init-module")] - public string? InitModule { get; set; } + public virtual string? InitModule { get; set; } [CommandSwitch("--init-version")] - public string? InitVersion { get; set; } + public virtual string? InitVersion { get; set; } [BooleanCommandSwitch("--yes")] - public bool? Yes { get; set; } + public virtual bool? Yes { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [CommandSwitch("--scope")] - public string? Scope { get; set; } + public virtual string? Scope { get; set; } [CommandSwitch("--workspace")] - public string[]? Workspace { get; set; } + public virtual string[]? Workspace { get; set; } [BooleanCommandSwitch("--workspaces")] - public bool? Workspaces { get; set; } + public virtual bool? Workspaces { get; set; } [BooleanCommandSwitch("--workspaces-update")] - public bool? WorkspacesUpdate { get; set; } + public virtual bool? WorkspacesUpdate { get; set; } [BooleanCommandSwitch("--include-workspace-root")] - public bool? IncludeWorkspaceRoot { get; set; } + public virtual bool? IncludeWorkspaceRoot { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Models/NpmInstallOptions.cs b/src/ModularPipelines.Node/Models/NpmInstallOptions.cs index a317a201ad..3db6205ad8 100644 --- a/src/ModularPipelines.Node/Models/NpmInstallOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmInstallOptions.cs @@ -8,83 +8,83 @@ namespace ModularPipelines.Node.Models; public record NpmInstallOptions : NpmOptions { [BooleanCommandSwitch("--save")] - public bool? Save { get; set; } + public virtual bool? Save { get; set; } [BooleanCommandSwitch("--save-exact")] - public bool? SaveExact { get; set; } + public virtual bool? SaveExact { get; set; } [BooleanCommandSwitch("--global")] - public bool? Global { get; set; } + public virtual bool? Global { get; set; } [CommandSwitch("--install-strategy")] - public string? InstallStrategy { get; set; } + public virtual string? InstallStrategy { get; set; } [CommandSwitch("--omit")] - public string? Omit { get; set; } + public virtual string? Omit { get; set; } [CommandSwitch("--include")] - public string? Include { get; set; } + public virtual string? Include { get; set; } [BooleanCommandSwitch("--strict-peer-deps")] - public bool? StrictPeerDeps { get; set; } + public virtual bool? StrictPeerDeps { get; set; } [BooleanCommandSwitch("--prefer-dedupe")] - public bool? PreferDedupe { get; set; } + public virtual bool? PreferDedupe { get; set; } [BooleanCommandSwitch("--package-lock")] - public bool? PackageLock { get; set; } + public virtual bool? PackageLock { get; set; } [BooleanCommandSwitch("--package-lock-only")] - public bool? PackageLockOnly { get; set; } + public virtual bool? PackageLockOnly { get; set; } [BooleanCommandSwitch("--foreground-scripts")] - public bool? ForegroundScripts { get; set; } + public virtual bool? ForegroundScripts { get; set; } [BooleanCommandSwitch("--ignore-scripts")] - public bool? IgnoreScripts { get; set; } + public virtual bool? IgnoreScripts { get; set; } [BooleanCommandSwitch("--audit")] - public bool? Audit { get; set; } + public virtual bool? Audit { get; set; } [BooleanCommandSwitch("--bin-links")] - public bool? BinLinks { get; set; } + public virtual bool? BinLinks { get; set; } [BooleanCommandSwitch("--fund")] - public bool? Fund { get; set; } + public virtual bool? Fund { get; set; } [BooleanCommandSwitch("--dry-run")] - public bool? DryRun { get; set; } + public virtual bool? DryRun { get; set; } [CommandSwitch("--cpu")] - public string? Cpu { get; set; } + public virtual string? Cpu { get; set; } [CommandSwitch("--os")] - public string? Os { get; set; } + public virtual string? Os { get; set; } [CommandSwitch("--workspace")] - public string[]? Workspace { get; set; } + public virtual string[]? Workspace { get; set; } [BooleanCommandSwitch("--workspaces")] - public bool? Workspaces { get; set; } + public virtual bool? Workspaces { get; set; } [BooleanCommandSwitch("--include-workspace-root")] - public bool? IncludeWorkspaceRoot { get; set; } + public virtual bool? IncludeWorkspaceRoot { get; set; } [BooleanCommandSwitch("--install-links")] - public bool? InstallLinks { get; set; } + public virtual bool? InstallLinks { get; set; } [BooleanCommandSwitch("--save-prod")] - public bool? SaveProd { get; set; } + public virtual bool? SaveProd { get; set; } [BooleanCommandSwitch("--save-dev")] - public bool? SaveDev { get; set; } + public virtual bool? SaveDev { get; set; } [BooleanCommandSwitch("--save-optional")] - public bool? SaveOptional { get; set; } + public virtual bool? SaveOptional { get; set; } [BooleanCommandSwitch("--no-save")] - public bool? NoSave { get; set; } + public virtual bool? NoSave { get; set; } [BooleanCommandSwitch("--save-bundle")] - public bool? SaveBundle { get; set; } + public virtual bool? SaveBundle { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Models/NpmLinkOptions.cs b/src/ModularPipelines.Node/Models/NpmLinkOptions.cs index 59a202860f..1c7c13b075 100644 --- a/src/ModularPipelines.Node/Models/NpmLinkOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmLinkOptions.cs @@ -8,53 +8,53 @@ namespace ModularPipelines.Node.Models; public record NpmLinkOptions : NpmOptions { [BooleanCommandSwitch("--save")] - public bool? Save { get; set; } + public virtual bool? Save { get; set; } [BooleanCommandSwitch("--save-exact")] - public bool? SaveExact { get; set; } + public virtual bool? SaveExact { get; set; } [BooleanCommandSwitch("--global")] - public bool? Global { get; set; } + public virtual bool? Global { get; set; } [CommandSwitch("--install-strategy")] - public string? InstallStrategy { get; set; } + public virtual string? InstallStrategy { get; set; } [BooleanCommandSwitch("--strict-peer-deps")] - public bool? StrictPeerDeps { get; set; } + public virtual bool? StrictPeerDeps { get; set; } [BooleanCommandSwitch("--package-lock")] - public bool? PackageLock { get; set; } + public virtual bool? PackageLock { get; set; } [CommandSwitch("--omit")] - public string? Omit { get; set; } + public virtual string? Omit { get; set; } [CommandSwitch("--include")] - public string? Include { get; set; } + public virtual string? Include { get; set; } [BooleanCommandSwitch("--ignore-scripts")] - public bool? IgnoreScripts { get; set; } + public virtual bool? IgnoreScripts { get; set; } [BooleanCommandSwitch("--audit")] - public bool? Audit { get; set; } + public virtual bool? Audit { get; set; } [BooleanCommandSwitch("--bin-links")] - public bool? BinLinks { get; set; } + public virtual bool? BinLinks { get; set; } [BooleanCommandSwitch("--fund")] - public bool? Fund { get; set; } + public virtual bool? Fund { get; set; } [BooleanCommandSwitch("--dry-run")] - public bool? DryRun { get; set; } + public virtual bool? DryRun { get; set; } [CommandSwitch("--workspace")] - public string[]? Workspace { get; set; } + public virtual string[]? Workspace { get; set; } [BooleanCommandSwitch("--workspaces")] - public bool? Workspaces { get; set; } + public virtual bool? Workspaces { get; set; } [BooleanCommandSwitch("--include-workspace-root")] - public bool? IncludeWorkspaceRoot { get; set; } + public virtual bool? IncludeWorkspaceRoot { get; set; } [BooleanCommandSwitch("--install-links")] - public bool? InstallLinks { get; set; } + public virtual bool? InstallLinks { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Models/NpmLoginOptions.cs b/src/ModularPipelines.Node/Models/NpmLoginOptions.cs index cb734682a2..7a64ed1ae5 100644 --- a/src/ModularPipelines.Node/Models/NpmLoginOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmLoginOptions.cs @@ -8,11 +8,11 @@ namespace ModularPipelines.Node.Models; public record NpmLoginOptions : NpmOptions { [CommandSwitch("--registry")] - public Uri? Registry { get; set; } + public virtual Uri? Registry { get; set; } [CommandSwitch("--scope")] - public string? Scope { get; set; } + public virtual string? Scope { get; set; } [CommandSwitch("--auth-type")] - public string? AuthType { get; set; } + public virtual string? AuthType { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Models/NpmLogoutOptions.cs b/src/ModularPipelines.Node/Models/NpmLogoutOptions.cs index 20dc9ac5fd..27ee177be8 100644 --- a/src/ModularPipelines.Node/Models/NpmLogoutOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmLogoutOptions.cs @@ -8,8 +8,8 @@ namespace ModularPipelines.Node.Models; public record NpmLogoutOptions : NpmOptions { [CommandSwitch("--registry")] - public Uri? Registry { get; set; } + public virtual Uri? Registry { get; set; } [CommandSwitch("--scope")] - public string? Scope { get; set; } + public virtual string? Scope { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Models/NpmLsOptions.cs b/src/ModularPipelines.Node/Models/NpmLsOptions.cs index 453981b779..4566f3ad8e 100644 --- a/src/ModularPipelines.Node/Models/NpmLsOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmLsOptions.cs @@ -8,47 +8,47 @@ namespace ModularPipelines.Node.Models; public record NpmLsOptions : NpmOptions { [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } [BooleanCommandSwitch("--long")] - public bool? Long { get; set; } + public virtual bool? Long { get; set; } [BooleanCommandSwitch("--parseable")] - public bool? Parseable { get; set; } + public virtual bool? Parseable { get; set; } [BooleanCommandSwitch("--global")] - public bool? Global { get; set; } + public virtual bool? Global { get; set; } [CommandSwitch("--depth")] - public int? Depth { get; set; } + public virtual int? Depth { get; set; } [CommandSwitch("--omit")] - public string? Omit { get; set; } + public virtual string? Omit { get; set; } [CommandSwitch("--include")] - public string? Include { get; set; } + public virtual string? Include { get; set; } [BooleanCommandSwitch("--link")] - public bool? Link { get; set; } + public virtual bool? Link { get; set; } [BooleanCommandSwitch("--package-lock-only")] - public bool? PackageLockOnly { get; set; } + public virtual bool? PackageLockOnly { get; set; } [BooleanCommandSwitch("--unicode")] - public bool? Unicode { get; set; } + public virtual bool? Unicode { get; set; } [CommandSwitch("--workspace")] - public string[]? Workspace { get; set; } + public virtual string[]? Workspace { get; set; } [BooleanCommandSwitch("--workspaces")] - public bool? Workspaces { get; set; } + public virtual bool? Workspaces { get; set; } [BooleanCommandSwitch("--include-workspace-root")] - public bool? IncludeWorkspaceRoot { get; set; } + public virtual bool? IncludeWorkspaceRoot { get; set; } [BooleanCommandSwitch("--install-links")] - public bool? InstallLinks { get; set; } + public virtual bool? InstallLinks { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Models/NpmOrgLsOptions.cs b/src/ModularPipelines.Node/Models/NpmOrgLsOptions.cs index 131c6758c2..eb173451af 100644 --- a/src/ModularPipelines.Node/Models/NpmOrgLsOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmOrgLsOptions.cs @@ -11,16 +11,16 @@ public record NpmOrgLsOptions ) : NpmOptions { [CommandSwitch("--registry")] - public Uri? Registry { get; set; } + public virtual Uri? Registry { get; set; } [CommandSwitch("--otp")] - public string? Otp { get; set; } + public virtual string? Otp { get; set; } [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } [BooleanCommandSwitch("--parseable")] - public bool? Parseable { get; set; } + public virtual bool? Parseable { get; set; } [PositionalArgument(Position = Position.BeforeSwitches)] public string? Username { get; set; } diff --git a/src/ModularPipelines.Node/Models/NpmOrgRmOptions.cs b/src/ModularPipelines.Node/Models/NpmOrgRmOptions.cs index e24b2b2590..39bb119bab 100644 --- a/src/ModularPipelines.Node/Models/NpmOrgRmOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmOrgRmOptions.cs @@ -12,14 +12,14 @@ public record NpmOrgRmOptions ) : NpmOptions { [CommandSwitch("--registry")] - public Uri? Registry { get; set; } + public virtual Uri? Registry { get; set; } [CommandSwitch("--otp")] - public string? Otp { get; set; } + public virtual string? Otp { get; set; } [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } [BooleanCommandSwitch("--parseable")] - public bool? Parseable { get; set; } + public virtual bool? Parseable { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Models/NpmOrgSetOptions.cs b/src/ModularPipelines.Node/Models/NpmOrgSetOptions.cs index 03c3ce32ec..2643af2956 100644 --- a/src/ModularPipelines.Node/Models/NpmOrgSetOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmOrgSetOptions.cs @@ -15,14 +15,14 @@ public record NpmOrgSetOptions public string? PermissionLevel { get; set; } [CommandSwitch("--registry")] - public Uri? Registry { get; set; } + public virtual Uri? Registry { get; set; } [CommandSwitch("--otp")] - public string? Otp { get; set; } + public virtual string? Otp { get; set; } [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } [BooleanCommandSwitch("--parseable")] - public bool? Parseable { get; set; } + public virtual bool? Parseable { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Models/NpmOutdatedOptions.cs b/src/ModularPipelines.Node/Models/NpmOutdatedOptions.cs index e460803497..3dc1d3cec0 100644 --- a/src/ModularPipelines.Node/Models/NpmOutdatedOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmOutdatedOptions.cs @@ -8,20 +8,20 @@ namespace ModularPipelines.Node.Models; public record NpmOutdatedOptions : NpmOptions { [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } [BooleanCommandSwitch("--long")] - public bool? Long { get; set; } + public virtual bool? Long { get; set; } [BooleanCommandSwitch("--parseable")] - public bool? Parseable { get; set; } + public virtual bool? Parseable { get; set; } [BooleanCommandSwitch("--global")] - public bool? Global { get; set; } + public virtual bool? Global { get; set; } [CommandSwitch("--workspace")] - public string[]? Workspace { get; set; } + public virtual string[]? Workspace { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Models/NpmOwnerAddOptions.cs b/src/ModularPipelines.Node/Models/NpmOwnerAddOptions.cs index 12ff898d9d..f511a41905 100644 --- a/src/ModularPipelines.Node/Models/NpmOwnerAddOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmOwnerAddOptions.cs @@ -10,14 +10,14 @@ public record NpmOwnerAddOptions( ) : NpmOptions { [CommandSwitch("--registry")] - public Uri? Registry { get; set; } + public virtual Uri? Registry { get; set; } [CommandSwitch("--otp")] - public string? Otp { get; set; } + public virtual string? Otp { get; set; } [CommandSwitch("--workspace")] - public string[]? Workspace { get; set; } + public virtual string[]? Workspace { get; set; } [BooleanCommandSwitch("--workspaces")] - public bool? Workspaces { get; set; } + public virtual bool? Workspaces { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Models/NpmOwnerLsOptions.cs b/src/ModularPipelines.Node/Models/NpmOwnerLsOptions.cs index 66dbd24095..9c5ebc2f23 100644 --- a/src/ModularPipelines.Node/Models/NpmOwnerLsOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmOwnerLsOptions.cs @@ -8,14 +8,14 @@ namespace ModularPipelines.Node.Models; public record NpmOwnerLsOptions : NpmOptions { [CommandSwitch("--registry")] - public Uri? Registry { get; set; } + public virtual Uri? Registry { get; set; } [CommandSwitch("--otp")] - public string? Otp { get; set; } + public virtual string? Otp { get; set; } [CommandSwitch("--workspace")] - public string[]? Workspace { get; set; } + public virtual string[]? Workspace { get; set; } [BooleanCommandSwitch("--workspaces")] - public bool? Workspaces { get; set; } + public virtual bool? Workspaces { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Models/NpmOwnerRmOptions.cs b/src/ModularPipelines.Node/Models/NpmOwnerRmOptions.cs index 05ddf0c15d..c7603ae590 100644 --- a/src/ModularPipelines.Node/Models/NpmOwnerRmOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmOwnerRmOptions.cs @@ -10,14 +10,14 @@ public record NpmOwnerRmOptions( ) : NpmOptions { [CommandSwitch("--registry")] - public Uri? Registry { get; set; } + public virtual Uri? Registry { get; set; } [CommandSwitch("--otp")] - public string? Otp { get; set; } + public virtual string? Otp { get; set; } [CommandSwitch("--workspace")] - public string[]? Workspace { get; set; } + public virtual string[]? Workspace { get; set; } [BooleanCommandSwitch("--workspaces")] - public bool? Workspaces { get; set; } + public virtual bool? Workspaces { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Models/NpmPackOptions.cs b/src/ModularPipelines.Node/Models/NpmPackOptions.cs index 8880bcadaf..a243bdd1ea 100644 --- a/src/ModularPipelines.Node/Models/NpmPackOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmPackOptions.cs @@ -8,20 +8,20 @@ namespace ModularPipelines.Node.Models; public record NpmPackOptions : NpmOptions { [BooleanCommandSwitch("--dry-run")] - public bool? DryRun { get; set; } + public virtual bool? DryRun { get; set; } [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } [CommandSwitch("--pack-destination")] - public string? PackDestination { get; set; } + public virtual string? PackDestination { get; set; } [CommandSwitch("--workspace")] - public string[]? Workspace { get; set; } + public virtual string[]? Workspace { get; set; } [BooleanCommandSwitch("--workspaces")] - public bool? Workspaces { get; set; } + public virtual bool? Workspaces { get; set; } [BooleanCommandSwitch("--include-workspace-root")] - public bool? IncludeWorkspaceRoot { get; set; } + public virtual bool? IncludeWorkspaceRoot { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Models/NpmPingOptions.cs b/src/ModularPipelines.Node/Models/NpmPingOptions.cs index 389706c149..7573153e16 100644 --- a/src/ModularPipelines.Node/Models/NpmPingOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmPingOptions.cs @@ -8,5 +8,5 @@ namespace ModularPipelines.Node.Models; public record NpmPingOptions : NpmOptions { [CommandSwitch("--registry")] - public Uri? Registry { get; set; } + public virtual Uri? Registry { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Models/NpmPkgDeleteOptions.cs b/src/ModularPipelines.Node/Models/NpmPkgDeleteOptions.cs index 120ed252b4..8cbd5b3bf3 100644 --- a/src/ModularPipelines.Node/Models/NpmPkgDeleteOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmPkgDeleteOptions.cs @@ -10,14 +10,14 @@ public record NpmPkgDeleteOptions( ) : NpmOptions { [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } [CommandSwitch("--workspace")] - public string[]? Workspace { get; set; } + public virtual string[]? Workspace { get; set; } [BooleanCommandSwitch("--workspaces")] - public bool? Workspaces { get; set; } + public virtual bool? Workspaces { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Models/NpmPkgFixOptions.cs b/src/ModularPipelines.Node/Models/NpmPkgFixOptions.cs index 884dc4fce2..3fb154c9ec 100644 --- a/src/ModularPipelines.Node/Models/NpmPkgFixOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmPkgFixOptions.cs @@ -8,14 +8,14 @@ namespace ModularPipelines.Node.Models; public record NpmPkgFixOptions : NpmOptions { [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } [CommandSwitch("--workspace")] - public string[]? Workspace { get; set; } + public virtual string[]? Workspace { get; set; } [BooleanCommandSwitch("--workspaces")] - public bool? Workspaces { get; set; } + public virtual bool? Workspaces { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Models/NpmPkgGetOptions.cs b/src/ModularPipelines.Node/Models/NpmPkgGetOptions.cs index 72bb198aa5..fdcf42ca68 100644 --- a/src/ModularPipelines.Node/Models/NpmPkgGetOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmPkgGetOptions.cs @@ -8,16 +8,16 @@ namespace ModularPipelines.Node.Models; public record NpmPkgGetOptions : NpmOptions { [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } [CommandSwitch("--workspace")] - public string[]? Workspace { get; set; } + public virtual string[]? Workspace { get; set; } [BooleanCommandSwitch("--workspaces")] - public bool? Workspaces { get; set; } + public virtual bool? Workspaces { get; set; } [PositionalArgument(Position = Position.BeforeSwitches)] public string? Key { get; set; } diff --git a/src/ModularPipelines.Node/Models/NpmPkgSetOptions.cs b/src/ModularPipelines.Node/Models/NpmPkgSetOptions.cs index 84911c6439..c09ae73d51 100644 --- a/src/ModularPipelines.Node/Models/NpmPkgSetOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmPkgSetOptions.cs @@ -10,16 +10,16 @@ public record NpmPkgSetOptions( ) : NpmOptions { [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } [CommandSwitch("--workspace")] - public string[]? Workspace { get; set; } + public virtual string[]? Workspace { get; set; } [BooleanCommandSwitch("--workspaces")] - public bool? Workspaces { get; set; } + public virtual bool? Workspaces { get; set; } [PositionalArgument(Position = Position.BeforeSwitches)] public string? Key { get; set; } diff --git a/src/ModularPipelines.Node/Models/NpmPrefixOptions.cs b/src/ModularPipelines.Node/Models/NpmPrefixOptions.cs index e086098cf7..57df35e738 100644 --- a/src/ModularPipelines.Node/Models/NpmPrefixOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmPrefixOptions.cs @@ -8,5 +8,5 @@ namespace ModularPipelines.Node.Models; public record NpmPrefixOptions : NpmOptions { [BooleanCommandSwitch("--global")] - public bool? Global { get; set; } + public virtual bool? Global { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Models/NpmProfileDisable2faOptions.cs b/src/ModularPipelines.Node/Models/NpmProfileDisable2faOptions.cs index 22dcc8b2c0..dc2598ebe8 100644 --- a/src/ModularPipelines.Node/Models/NpmProfileDisable2faOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmProfileDisable2faOptions.cs @@ -8,14 +8,14 @@ namespace ModularPipelines.Node.Models; public record NpmProfileDisable2faOptions : NpmOptions { [CommandSwitch("--registry")] - public Uri? Registry { get; set; } + public virtual Uri? Registry { get; set; } [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } [BooleanCommandSwitch("--parseable")] - public bool? Parseable { get; set; } + public virtual bool? Parseable { get; set; } [CommandSwitch("--otp")] - public string? Otp { get; set; } + public virtual string? Otp { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Models/NpmProfileEnable2faOptions.cs b/src/ModularPipelines.Node/Models/NpmProfileEnable2faOptions.cs index 8b344968c8..35b33e747c 100644 --- a/src/ModularPipelines.Node/Models/NpmProfileEnable2faOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmProfileEnable2faOptions.cs @@ -8,14 +8,14 @@ namespace ModularPipelines.Node.Models; public record NpmProfileEnable2faOptions : NpmOptions { [CommandSwitch("--registry")] - public Uri? Registry { get; set; } + public virtual Uri? Registry { get; set; } [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } [BooleanCommandSwitch("--parseable")] - public bool? Parseable { get; set; } + public virtual bool? Parseable { get; set; } [CommandSwitch("--otp")] - public string? Otp { get; set; } + public virtual string? Otp { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Models/NpmProfileGetOptions.cs b/src/ModularPipelines.Node/Models/NpmProfileGetOptions.cs index 4a84563ee3..62bf889807 100644 --- a/src/ModularPipelines.Node/Models/NpmProfileGetOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmProfileGetOptions.cs @@ -8,16 +8,16 @@ namespace ModularPipelines.Node.Models; public record NpmProfileGetOptions : NpmOptions { [CommandSwitch("--registry")] - public Uri? Registry { get; set; } + public virtual Uri? Registry { get; set; } [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } [BooleanCommandSwitch("--parseable")] - public bool? Parseable { get; set; } + public virtual bool? Parseable { get; set; } [CommandSwitch("--otp")] - public string? Otp { get; set; } + public virtual string? Otp { get; set; } [PositionalArgument(Position = Position.BeforeSwitches)] public string? Key { get; set; } diff --git a/src/ModularPipelines.Node/Models/NpmProfileSetOptions.cs b/src/ModularPipelines.Node/Models/NpmProfileSetOptions.cs index 47b928470e..aabe198e2a 100644 --- a/src/ModularPipelines.Node/Models/NpmProfileSetOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmProfileSetOptions.cs @@ -11,14 +11,14 @@ public record NpmProfileSetOptions( ) : NpmOptions { [CommandSwitch("--registry")] - public Uri? Registry { get; set; } + public virtual Uri? Registry { get; set; } [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } [BooleanCommandSwitch("--parseable")] - public bool? Parseable { get; set; } + public virtual bool? Parseable { get; set; } [CommandSwitch("--otp")] - public string? Otp { get; set; } + public virtual string? Otp { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Models/NpmPruneOptions.cs b/src/ModularPipelines.Node/Models/NpmPruneOptions.cs index 15279b48bf..e2e41a9baf 100644 --- a/src/ModularPipelines.Node/Models/NpmPruneOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmPruneOptions.cs @@ -8,34 +8,34 @@ namespace ModularPipelines.Node.Models; public record NpmPruneOptions : NpmOptions { [CommandSwitch("--omit")] - public string? Omit { get; set; } + public virtual string? Omit { get; set; } [CommandSwitch("--include")] - public string? Include { get; set; } + public virtual string? Include { get; set; } [BooleanCommandSwitch("--dry-run")] - public bool? DryRun { get; set; } + public virtual bool? DryRun { get; set; } [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } [BooleanCommandSwitch("--foreground-scripts")] - public bool? ForegroundScripts { get; set; } + public virtual bool? ForegroundScripts { get; set; } [BooleanCommandSwitch("--ignore-scripts")] - public bool? IgnoreScripts { get; set; } + public virtual bool? IgnoreScripts { get; set; } [CommandSwitch("--workspace")] - public string[]? Workspace { get; set; } + public virtual string[]? Workspace { get; set; } [BooleanCommandSwitch("--workspaces")] - public bool? Workspaces { get; set; } + public virtual bool? Workspaces { get; set; } [BooleanCommandSwitch("--include-workspace-root")] - public bool? IncludeWorkspaceRoot { get; set; } + public virtual bool? IncludeWorkspaceRoot { get; set; } [BooleanCommandSwitch("--install-links")] - public bool? InstallLinks { get; set; } + public virtual bool? InstallLinks { get; set; } [PositionalArgument(Position = Position.BeforeSwitches)] public string? Pkg { get; set; } diff --git a/src/ModularPipelines.Node/Models/NpmPublishOptions.cs b/src/ModularPipelines.Node/Models/NpmPublishOptions.cs index 4882f111ed..25fe1ef751 100644 --- a/src/ModularPipelines.Node/Models/NpmPublishOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmPublishOptions.cs @@ -8,29 +8,29 @@ namespace ModularPipelines.Node.Models; public record NpmPublishOptions : NpmOptions { [CommandSwitch("--tag")] - public string? Tag { get; set; } + public virtual string? Tag { get; set; } [CommandSwitch("--access")] - public string? Access { get; set; } + public virtual string? Access { get; set; } [BooleanCommandSwitch("--dry-run")] - public bool? DryRun { get; set; } + public virtual bool? DryRun { get; set; } [CommandSwitch("--otp")] - public string? Otp { get; set; } + public virtual string? Otp { get; set; } [CommandSwitch("--workspace")] - public string[]? Workspace { get; set; } + public virtual string[]? Workspace { get; set; } [BooleanCommandSwitch("--workspaces")] - public bool? Workspaces { get; set; } + public virtual bool? Workspaces { get; set; } [BooleanCommandSwitch("--include-workspace-root")] - public bool? IncludeWorkspaceRoot { get; set; } + public virtual bool? IncludeWorkspaceRoot { get; set; } [BooleanCommandSwitch("--provenance")] - public bool? Provenance { get; set; } + public virtual bool? Provenance { get; set; } [CommandSwitch("--provenance-file")] - public string? ProvenanceFile { get; set; } + public virtual string? ProvenanceFile { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Models/NpmQueryOptions.cs b/src/ModularPipelines.Node/Models/NpmQueryOptions.cs index 9fd7cd9ec6..43e3107842 100644 --- a/src/ModularPipelines.Node/Models/NpmQueryOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmQueryOptions.cs @@ -10,17 +10,17 @@ public record NpmQueryOptions( ) : NpmOptions { [BooleanCommandSwitch("--global")] - public bool? Global { get; set; } + public virtual bool? Global { get; set; } [CommandSwitch("--workspace")] - public string[]? Workspace { get; set; } + public virtual string[]? Workspace { get; set; } [BooleanCommandSwitch("--workspaces")] - public bool? Workspaces { get; set; } + public virtual bool? Workspaces { get; set; } [BooleanCommandSwitch("--include-workspace-root")] - public bool? IncludeWorkspaceRoot { get; set; } + public virtual bool? IncludeWorkspaceRoot { get; set; } [BooleanCommandSwitch("--package-lock-only")] - public bool? PackageLockOnly { get; set; } + public virtual bool? PackageLockOnly { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Models/NpmRebuildOptions.cs b/src/ModularPipelines.Node/Models/NpmRebuildOptions.cs index a3a950e615..5ed83cd735 100644 --- a/src/ModularPipelines.Node/Models/NpmRebuildOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmRebuildOptions.cs @@ -8,26 +8,26 @@ namespace ModularPipelines.Node.Models; public record NpmRebuildOptions : NpmOptions { [BooleanCommandSwitch("--global")] - public bool? Global { get; set; } + public virtual bool? Global { get; set; } [BooleanCommandSwitch("--bin-links")] - public bool? BinLinks { get; set; } + public virtual bool? BinLinks { get; set; } [BooleanCommandSwitch("--foreground-scripts")] - public bool? ForegroundScripts { get; set; } + public virtual bool? ForegroundScripts { get; set; } [BooleanCommandSwitch("--ignore-scripts")] - public bool? IgnoreScripts { get; set; } + public virtual bool? IgnoreScripts { get; set; } [CommandSwitch("--workspace")] - public string[]? Workspace { get; set; } + public virtual string[]? Workspace { get; set; } [BooleanCommandSwitch("--workspaces")] - public bool? Workspaces { get; set; } + public virtual bool? Workspaces { get; set; } [BooleanCommandSwitch("--include-workspace-root")] - public bool? IncludeWorkspaceRoot { get; set; } + public virtual bool? IncludeWorkspaceRoot { get; set; } [BooleanCommandSwitch("--install-links")] - public bool? InstallLinks { get; set; } + public virtual bool? InstallLinks { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Models/NpmRepoOptions.cs b/src/ModularPipelines.Node/Models/NpmRepoOptions.cs index 5f318fa886..595f19abeb 100644 --- a/src/ModularPipelines.Node/Models/NpmRepoOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmRepoOptions.cs @@ -8,19 +8,19 @@ namespace ModularPipelines.Node.Models; public record NpmRepoOptions : NpmOptions { [CommandSwitch("--browser")] - public string? Browser { get; set; } + public virtual string? Browser { get; set; } [CommandSwitch("--registry")] - public Uri? Registry { get; set; } + public virtual Uri? Registry { get; set; } [CommandSwitch("--workspace")] - public string[]? Workspace { get; set; } + public virtual string[]? Workspace { get; set; } [BooleanCommandSwitch("--workspaces")] - public bool? Workspaces { get; set; } + public virtual bool? Workspaces { get; set; } [BooleanCommandSwitch("--include-workspace-root")] - public bool? IncludeWorkspaceRoot { get; set; } + public virtual bool? IncludeWorkspaceRoot { get; set; } [PositionalArgument(Position = Position.BeforeSwitches)] public string? Pkgname { get; set; } diff --git a/src/ModularPipelines.Node/Models/NpmRestartOptions.cs b/src/ModularPipelines.Node/Models/NpmRestartOptions.cs index 8694f1079b..8342936f62 100644 --- a/src/ModularPipelines.Node/Models/NpmRestartOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmRestartOptions.cs @@ -10,8 +10,8 @@ public record NpmRestartOptions( ) : NpmOptions { [BooleanCommandSwitch("--ignore-scripts")] - public bool? IgnoreScripts { get; set; } + public virtual bool? IgnoreScripts { get; set; } [CommandSwitch("--script-shell")] - public string? ScriptShell { get; set; } + public virtual string? ScriptShell { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Models/NpmRootOptions.cs b/src/ModularPipelines.Node/Models/NpmRootOptions.cs index 79721aa2e0..9c018cabfa 100644 --- a/src/ModularPipelines.Node/Models/NpmRootOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmRootOptions.cs @@ -8,5 +8,5 @@ namespace ModularPipelines.Node.Models; public record NpmRootOptions : NpmOptions { [BooleanCommandSwitch("--global")] - public bool? Global { get; set; } + public virtual bool? Global { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Models/NpmSbomOptions.cs b/src/ModularPipelines.Node/Models/NpmSbomOptions.cs index c8ff2d02a4..269a35d195 100644 --- a/src/ModularPipelines.Node/Models/NpmSbomOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmSbomOptions.cs @@ -8,20 +8,20 @@ namespace ModularPipelines.Node.Models; public record NpmSbomOptions : NpmOptions { [CommandSwitch("--omit")] - public string? Omit { get; set; } + public virtual string? Omit { get; set; } [BooleanCommandSwitch("--package-lock-only")] - public bool? PackageLockOnly { get; set; } + public virtual bool? PackageLockOnly { get; set; } [CommandSwitch("--sbom-format")] - public string? SbomFormat { get; set; } + public virtual string? SbomFormat { get; set; } [CommandSwitch("--sbom-type")] - public string? SbomType { get; set; } + public virtual string? SbomType { get; set; } [CommandSwitch("--workspace")] - public string[]? Workspace { get; set; } + public virtual string[]? Workspace { get; set; } [BooleanCommandSwitch("--workspaces")] - public bool? Workspaces { get; set; } + public virtual bool? Workspaces { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Models/NpmSearchOptions.cs b/src/ModularPipelines.Node/Models/NpmSearchOptions.cs index f45aec46d0..34b5c73355 100644 --- a/src/ModularPipelines.Node/Models/NpmSearchOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmSearchOptions.cs @@ -11,35 +11,35 @@ public record NpmSearchOptions ) : NpmOptions { [BooleanCommandSwitch("--long")] - public bool? Long { get; set; } + public virtual bool? Long { get; set; } [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } [CommandSwitch("--color")] - public string? Color { get; set; } + public virtual string? Color { get; set; } [BooleanCommandSwitch("--parseable")] - public bool? Parseable { get; set; } + public virtual bool? Parseable { get; set; } [BooleanCommandSwitch("--description")] - public bool? Description { get; set; } + public virtual bool? Description { get; set; } [CommandSwitch("--searchopts")] - public string? Searchopts { get; set; } + public virtual string? Searchopts { get; set; } [CommandSwitch("--searchexclude")] - public string? Searchexclude { get; set; } + public virtual string? Searchexclude { get; set; } [CommandSwitch("--registry")] - public Uri? Registry { get; set; } + public virtual Uri? Registry { get; set; } [BooleanCommandSwitch("--prefer-online")] - public bool? PreferOnline { get; set; } + public virtual bool? PreferOnline { get; set; } [BooleanCommandSwitch("--prefer-offline")] - public bool? PreferOffline { get; set; } + public virtual bool? PreferOffline { get; set; } [BooleanCommandSwitch("--offline")] - public bool? Offline { get; set; } + public virtual bool? Offline { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Models/NpmStarOptions.cs b/src/ModularPipelines.Node/Models/NpmStarOptions.cs index 7e0fca6ff9..a6f20fe287 100644 --- a/src/ModularPipelines.Node/Models/NpmStarOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmStarOptions.cs @@ -8,11 +8,11 @@ namespace ModularPipelines.Node.Models; public record NpmStarOptions : NpmOptions { [CommandSwitch("--registry")] - public Uri? Registry { get; set; } + public virtual Uri? Registry { get; set; } [BooleanCommandSwitch("--unicode")] - public bool? Unicode { get; set; } + public virtual bool? Unicode { get; set; } [CommandSwitch("--otp")] - public string? Otp { get; set; } + public virtual string? Otp { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Models/NpmStarsOptions.cs b/src/ModularPipelines.Node/Models/NpmStarsOptions.cs index 6fb3dabb4b..4882a9f5db 100644 --- a/src/ModularPipelines.Node/Models/NpmStarsOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmStarsOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Node.Models; public record NpmStarsOptions : NpmOptions { [CommandSwitch("--registry")] - public Uri? Registry { get; set; } + public virtual Uri? Registry { get; set; } [PositionalArgument(Position = Position.BeforeSwitches)] public string? User { get; set; } diff --git a/src/ModularPipelines.Node/Models/NpmStartOptions.cs b/src/ModularPipelines.Node/Models/NpmStartOptions.cs index d5df75b1f8..803eb4a7ff 100644 --- a/src/ModularPipelines.Node/Models/NpmStartOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmStartOptions.cs @@ -10,8 +10,8 @@ public record NpmStartOptions( ) : NpmOptions { [BooleanCommandSwitch("--ignore-scripts")] - public bool? IgnoreScripts { get; set; } + public virtual bool? IgnoreScripts { get; set; } [CommandSwitch("--script-shell")] - public string? ScriptShell { get; set; } + public virtual string? ScriptShell { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Models/NpmStopOptions.cs b/src/ModularPipelines.Node/Models/NpmStopOptions.cs index 94d6023c67..0884f41820 100644 --- a/src/ModularPipelines.Node/Models/NpmStopOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmStopOptions.cs @@ -10,8 +10,8 @@ public record NpmStopOptions( ) : NpmOptions { [BooleanCommandSwitch("--ignore-scripts")] - public bool? IgnoreScripts { get; set; } + public virtual bool? IgnoreScripts { get; set; } [CommandSwitch("--script-shell")] - public string? ScriptShell { get; set; } + public virtual string? ScriptShell { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Models/NpmTeamAddOptions.cs b/src/ModularPipelines.Node/Models/NpmTeamAddOptions.cs index 14b7063b1c..960484b781 100644 --- a/src/ModularPipelines.Node/Models/NpmTeamAddOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmTeamAddOptions.cs @@ -12,14 +12,14 @@ public record NpmTeamAddOptions( ) : NpmOptions { [CommandSwitch("--registry")] - public Uri? Registry { get; set; } + public virtual Uri? Registry { get; set; } [CommandSwitch("--otp")] - public string? Otp { get; set; } + public virtual string? Otp { get; set; } [BooleanCommandSwitch("--parseable")] - public bool? Parseable { get; set; } + public virtual bool? Parseable { get; set; } [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Models/NpmTeamCreateOptions.cs b/src/ModularPipelines.Node/Models/NpmTeamCreateOptions.cs index 68bdc46fc4..7926e80768 100644 --- a/src/ModularPipelines.Node/Models/NpmTeamCreateOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmTeamCreateOptions.cs @@ -11,14 +11,14 @@ public record NpmTeamCreateOptions( ) : NpmOptions { [CommandSwitch("--registry")] - public Uri? Registry { get; set; } + public virtual Uri? Registry { get; set; } [CommandSwitch("--otp")] - public string? Otp { get; set; } + public virtual string? Otp { get; set; } [BooleanCommandSwitch("--parseable")] - public bool? Parseable { get; set; } + public virtual bool? Parseable { get; set; } [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Models/NpmTeamDestroyOptions.cs b/src/ModularPipelines.Node/Models/NpmTeamDestroyOptions.cs index 175aca65d4..2ca7eef488 100644 --- a/src/ModularPipelines.Node/Models/NpmTeamDestroyOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmTeamDestroyOptions.cs @@ -11,14 +11,14 @@ public record NpmTeamDestroyOptions( ) : NpmOptions { [CommandSwitch("--registry")] - public Uri? Registry { get; set; } + public virtual Uri? Registry { get; set; } [CommandSwitch("--otp")] - public string? Otp { get; set; } + public virtual string? Otp { get; set; } [BooleanCommandSwitch("--parseable")] - public bool? Parseable { get; set; } + public virtual bool? Parseable { get; set; } [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Models/NpmTeamLsOptions.cs b/src/ModularPipelines.Node/Models/NpmTeamLsOptions.cs index 929deecd83..46cc2fcf3c 100644 --- a/src/ModularPipelines.Node/Models/NpmTeamLsOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmTeamLsOptions.cs @@ -10,16 +10,16 @@ public record NpmTeamLsOptions( ) : NpmOptions { [CommandSwitch("--registry")] - public Uri? Registry { get; set; } + public virtual Uri? Registry { get; set; } [CommandSwitch("--otp")] - public string? Otp { get; set; } + public virtual string? Otp { get; set; } [BooleanCommandSwitch("--parseable")] - public bool? Parseable { get; set; } + public virtual bool? Parseable { get; set; } [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } [PositionalArgument(Position = Position.AfterSwitches)] public string? Scope { get; set; } diff --git a/src/ModularPipelines.Node/Models/NpmTeamRmOptions.cs b/src/ModularPipelines.Node/Models/NpmTeamRmOptions.cs index fe4ba9c8dd..de9d5dc972 100644 --- a/src/ModularPipelines.Node/Models/NpmTeamRmOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmTeamRmOptions.cs @@ -12,14 +12,14 @@ public record NpmTeamRmOptions( ) : NpmOptions { [CommandSwitch("--registry")] - public Uri? Registry { get; set; } + public virtual Uri? Registry { get; set; } [CommandSwitch("--otp")] - public string? Otp { get; set; } + public virtual string? Otp { get; set; } [BooleanCommandSwitch("--parseable")] - public bool? Parseable { get; set; } + public virtual bool? Parseable { get; set; } [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Models/NpmTestOptions.cs b/src/ModularPipelines.Node/Models/NpmTestOptions.cs index 2bd63749be..8cbc6b7e74 100644 --- a/src/ModularPipelines.Node/Models/NpmTestOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmTestOptions.cs @@ -10,8 +10,8 @@ public record NpmTestOptions( ) : NpmOptions { [BooleanCommandSwitch("--ignore-scripts")] - public bool? IgnoreScripts { get; set; } + public virtual bool? IgnoreScripts { get; set; } [CommandSwitch("--script-shell")] - public string? ScriptShell { get; set; } + public virtual string? ScriptShell { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Models/NpmTokenCreateOptions.cs b/src/ModularPipelines.Node/Models/NpmTokenCreateOptions.cs index 53cd988a3d..b5a13ec9a0 100644 --- a/src/ModularPipelines.Node/Models/NpmTokenCreateOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmTokenCreateOptions.cs @@ -8,14 +8,14 @@ namespace ModularPipelines.Node.Models; public record NpmTokenCreateOptions : NpmOptions { [BooleanCommandSwitch("--read-only")] - public bool? ReadOnly { get; set; } + public virtual bool? ReadOnly { get; set; } [CommandSwitch("--cidr")] - public string? Cidr { get; set; } + public virtual string? Cidr { get; set; } [CommandSwitch("--registry")] - public Uri? Registry { get; set; } + public virtual Uri? Registry { get; set; } [CommandSwitch("--otp")] - public string? Otp { get; set; } + public virtual string? Otp { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Models/NpmTokenListOptions.cs b/src/ModularPipelines.Node/Models/NpmTokenListOptions.cs index cb559c1542..57b7b38ae8 100644 --- a/src/ModularPipelines.Node/Models/NpmTokenListOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmTokenListOptions.cs @@ -8,14 +8,14 @@ namespace ModularPipelines.Node.Models; public record NpmTokenListOptions : NpmOptions { [BooleanCommandSwitch("--read-only")] - public bool? ReadOnly { get; set; } + public virtual bool? ReadOnly { get; set; } [CommandSwitch("--cidr")] - public string? Cidr { get; set; } + public virtual string? Cidr { get; set; } [CommandSwitch("--registry")] - public Uri? Registry { get; set; } + public virtual Uri? Registry { get; set; } [CommandSwitch("--otp")] - public string? Otp { get; set; } + public virtual string? Otp { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Models/NpmTokenRevokeOptions.cs b/src/ModularPipelines.Node/Models/NpmTokenRevokeOptions.cs index 124a2db45e..3299e65034 100644 --- a/src/ModularPipelines.Node/Models/NpmTokenRevokeOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmTokenRevokeOptions.cs @@ -10,14 +10,14 @@ public record NpmTokenRevokeOptions( ) : NpmOptions { [BooleanCommandSwitch("--read-only")] - public bool? ReadOnly { get; set; } + public virtual bool? ReadOnly { get; set; } [CommandSwitch("--cidr")] - public string? Cidr { get; set; } + public virtual string? Cidr { get; set; } [CommandSwitch("--registry")] - public Uri? Registry { get; set; } + public virtual Uri? Registry { get; set; } [CommandSwitch("--otp")] - public string? Otp { get; set; } + public virtual string? Otp { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Models/NpmUninstallOptions.cs b/src/ModularPipelines.Node/Models/NpmUninstallOptions.cs index 8907a889d5..aee3e0cbce 100644 --- a/src/ModularPipelines.Node/Models/NpmUninstallOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmUninstallOptions.cs @@ -8,22 +8,22 @@ namespace ModularPipelines.Node.Models; public record NpmUninstallOptions : NpmOptions { [BooleanCommandSwitch("--save")] - public bool? Save { get; set; } + public virtual bool? Save { get; set; } [BooleanCommandSwitch("--global")] - public bool? Global { get; set; } + public virtual bool? Global { get; set; } [CommandSwitch("--workspace")] - public string[]? Workspace { get; set; } + public virtual string[]? Workspace { get; set; } [BooleanCommandSwitch("--workspaces")] - public bool? Workspaces { get; set; } + public virtual bool? Workspaces { get; set; } [BooleanCommandSwitch("--include-workspace-root")] - public bool? IncludeWorkspaceRoot { get; set; } + public virtual bool? IncludeWorkspaceRoot { get; set; } [BooleanCommandSwitch("--install-links")] - public bool? InstallLinks { get; set; } + public virtual bool? InstallLinks { get; set; } [PositionalArgument(Position = Position.BeforeSwitches)] public string? Pkg { get; set; } diff --git a/src/ModularPipelines.Node/Models/NpmUnpublishOptions.cs b/src/ModularPipelines.Node/Models/NpmUnpublishOptions.cs index 6d560653e9..25a200ef9e 100644 --- a/src/ModularPipelines.Node/Models/NpmUnpublishOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmUnpublishOptions.cs @@ -8,14 +8,14 @@ namespace ModularPipelines.Node.Models; public record NpmUnpublishOptions : NpmOptions { [BooleanCommandSwitch("--dry-run")] - public bool? DryRun { get; set; } + public virtual bool? DryRun { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [CommandSwitch("--workspace")] - public string[]? Workspace { get; set; } + public virtual string[]? Workspace { get; set; } [BooleanCommandSwitch("--workspaces")] - public bool? Workspaces { get; set; } + public virtual bool? Workspaces { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Models/NpmUnstarOptions.cs b/src/ModularPipelines.Node/Models/NpmUnstarOptions.cs index 82ecf223c1..a0a2f3d1fe 100644 --- a/src/ModularPipelines.Node/Models/NpmUnstarOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmUnstarOptions.cs @@ -8,11 +8,11 @@ namespace ModularPipelines.Node.Models; public record NpmUnstarOptions : NpmOptions { [CommandSwitch("--registry")] - public Uri? Registry { get; set; } + public virtual Uri? Registry { get; set; } [BooleanCommandSwitch("--unicode")] - public bool? Unicode { get; set; } + public virtual bool? Unicode { get; set; } [CommandSwitch("--otp")] - public string? Otp { get; set; } + public virtual string? Otp { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Models/NpmUpdateOptions.cs b/src/ModularPipelines.Node/Models/NpmUpdateOptions.cs index 92109dd0a2..1c99489f1a 100644 --- a/src/ModularPipelines.Node/Models/NpmUpdateOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmUpdateOptions.cs @@ -8,55 +8,55 @@ namespace ModularPipelines.Node.Models; public record NpmUpdateOptions : NpmOptions { [BooleanCommandSwitch("--save")] - public bool? Save { get; set; } + public virtual bool? Save { get; set; } [BooleanCommandSwitch("--global")] - public bool? Global { get; set; } + public virtual bool? Global { get; set; } [CommandSwitch("--install-strategy")] - public string? InstallStrategy { get; set; } + public virtual string? InstallStrategy { get; set; } [CommandSwitch("--omit")] - public string? Omit { get; set; } + public virtual string? Omit { get; set; } [CommandSwitch("--include")] - public string? Include { get; set; } + public virtual string? Include { get; set; } [BooleanCommandSwitch("--strict-peer-deps")] - public bool? StrictPeerDeps { get; set; } + public virtual bool? StrictPeerDeps { get; set; } [BooleanCommandSwitch("--package-lock")] - public bool? PackageLock { get; set; } + public virtual bool? PackageLock { get; set; } [BooleanCommandSwitch("--foreground-scripts")] - public bool? ForegroundScripts { get; set; } + public virtual bool? ForegroundScripts { get; set; } [BooleanCommandSwitch("--ignore-scripts")] - public bool? IgnoreScripts { get; set; } + public virtual bool? IgnoreScripts { get; set; } [BooleanCommandSwitch("--audit")] - public bool? Audit { get; set; } + public virtual bool? Audit { get; set; } [BooleanCommandSwitch("--bin-links")] - public bool? BinLinks { get; set; } + public virtual bool? BinLinks { get; set; } [BooleanCommandSwitch("--fund")] - public bool? Fund { get; set; } + public virtual bool? Fund { get; set; } [BooleanCommandSwitch("--dry-run")] - public bool? DryRun { get; set; } + public virtual bool? DryRun { get; set; } [CommandSwitch("--workspace")] - public string[]? Workspace { get; set; } + public virtual string[]? Workspace { get; set; } [BooleanCommandSwitch("--workspaces")] - public bool? Workspaces { get; set; } + public virtual bool? Workspaces { get; set; } [BooleanCommandSwitch("--include-workspace-root")] - public bool? IncludeWorkspaceRoot { get; set; } + public virtual bool? IncludeWorkspaceRoot { get; set; } [BooleanCommandSwitch("--install-links")] - public bool? InstallLinks { get; set; } + public virtual bool? InstallLinks { get; set; } [PositionalArgument(Position = Position.BeforeSwitches)] public string? Pkg { get; set; } diff --git a/src/ModularPipelines.Node/Models/NpmVersionOptions.cs b/src/ModularPipelines.Node/Models/NpmVersionOptions.cs index ec9c13282e..808da31a85 100644 --- a/src/ModularPipelines.Node/Models/NpmVersionOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmVersionOptions.cs @@ -10,32 +10,32 @@ public record NpmVersionOptions( ) : NpmOptions { [BooleanCommandSwitch("--allow-same-version")] - public bool? AllowSameVersion { get; set; } + public virtual bool? AllowSameVersion { get; set; } [BooleanCommandSwitch("--commit-hooks")] - public bool? CommitHooks { get; set; } + public virtual bool? CommitHooks { get; set; } [BooleanCommandSwitch("--git-tag-version")] - public bool? GitTagVersion { get; set; } + public virtual bool? GitTagVersion { get; set; } [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } [CommandSwitch("--preid")] - public string? Preid { get; set; } + public virtual string? Preid { get; set; } [BooleanCommandSwitch("--sign-git-tag")] - public bool? SignGitTag { get; set; } + public virtual bool? SignGitTag { get; set; } [CommandSwitch("--workspace")] - public string[]? Workspace { get; set; } + public virtual string[]? Workspace { get; set; } [BooleanCommandSwitch("--workspaces")] - public bool? Workspaces { get; set; } + public virtual bool? Workspaces { get; set; } [BooleanCommandSwitch("--workspaces-update")] - public bool? WorkspacesUpdate { get; set; } + public virtual bool? WorkspacesUpdate { get; set; } [BooleanCommandSwitch("--include-workspace-root")] - public bool? IncludeWorkspaceRoot { get; set; } + public virtual bool? IncludeWorkspaceRoot { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Models/NpmViewOptions.cs b/src/ModularPipelines.Node/Models/NpmViewOptions.cs index 21f460ffc5..2ada703a7e 100644 --- a/src/ModularPipelines.Node/Models/NpmViewOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmViewOptions.cs @@ -8,16 +8,16 @@ namespace ModularPipelines.Node.Models; public record NpmViewOptions : NpmOptions { [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } [CommandSwitch("--workspace")] - public string[]? Workspace { get; set; } + public virtual string[]? Workspace { get; set; } [BooleanCommandSwitch("--workspaces")] - public bool? Workspaces { get; set; } + public virtual bool? Workspaces { get; set; } [BooleanCommandSwitch("--include-workspace-root")] - public bool? IncludeWorkspaceRoot { get; set; } + public virtual bool? IncludeWorkspaceRoot { get; set; } [PositionalArgument(Position = Position.BeforeSwitches)] public string? Field { get; set; } diff --git a/src/ModularPipelines.Node/Models/NpmWhoamiOptions.cs b/src/ModularPipelines.Node/Models/NpmWhoamiOptions.cs index 687dd88e04..9ac93a622b 100644 --- a/src/ModularPipelines.Node/Models/NpmWhoamiOptions.cs +++ b/src/ModularPipelines.Node/Models/NpmWhoamiOptions.cs @@ -8,5 +8,5 @@ namespace ModularPipelines.Node.Models; public record NpmWhoamiOptions : NpmOptions { [CommandSwitch("--registry")] - public Uri? Registry { get; set; } + public virtual Uri? Registry { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Node/Node.cs b/src/ModularPipelines.Node/Node.cs index b29f4d78ac..fe499d5d1f 100644 --- a/src/ModularPipelines.Node/Node.cs +++ b/src/ModularPipelines.Node/Node.cs @@ -22,7 +22,7 @@ public Node(INpm npm, INvm nvm, IPipelineContext context, INpx npx) Nvm = nvm; } - public Task Version(CancellationToken cancellationToken = default) + public virtual Task Version(CancellationToken cancellationToken = default) { return _context.Command.ExecuteCommandLineTool(new CommandLineToolOptions("node") { diff --git a/src/ModularPipelines.Node/Npm.cs b/src/ModularPipelines.Node/Npm.cs index 491ebdad9c..8f63028c4f 100644 --- a/src/ModularPipelines.Node/Npm.cs +++ b/src/ModularPipelines.Node/Npm.cs @@ -15,500 +15,500 @@ public Npm(ICommand command) _command = command; } - public async Task AccessListPackages(NpmAccessListPackagesOptions? options = default, + public virtual async Task AccessListPackages(NpmAccessListPackagesOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpmAccessListPackagesOptions(), token); } - public async Task AccessListCollaborators(NpmAccessListCollaboratorsOptions? options = default, + public virtual async Task AccessListCollaborators(NpmAccessListCollaboratorsOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpmAccessListCollaboratorsOptions(), token); } - public async Task AccessGetStatus(NpmAccessGetStatusOptions? options = default, + public virtual async Task AccessGetStatus(NpmAccessGetStatusOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpmAccessGetStatusOptions(), token); } - public async Task AccessSet(NpmAccessSetOptions options, CancellationToken token = default) + public virtual async Task AccessSet(NpmAccessSetOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task AccessGrant(NpmAccessGrantOptions options, CancellationToken token = default) + public virtual async Task AccessGrant(NpmAccessGrantOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task AccessRevoke(NpmAccessRevokeOptions options, CancellationToken token = default) + public virtual async Task AccessRevoke(NpmAccessRevokeOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Adduser(NpmAdduserOptions? options = default, CancellationToken token = default) + public virtual async Task Adduser(NpmAdduserOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpmAdduserOptions(), token); } - public async Task Audit(NpmAuditOptions? options = default, CancellationToken token = default) + public virtual async Task Audit(NpmAuditOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpmAuditOptions(), token); } - public async Task Bugs(NpmBugsOptions? options = default, CancellationToken token = default) + public virtual async Task Bugs(NpmBugsOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpmBugsOptions(), token); } - public async Task CacheAdd(NpmCacheAddOptions? options = default, + public virtual async Task CacheAdd(NpmCacheAddOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpmCacheAddOptions(), token); } - public async Task CacheClean(NpmCacheCleanOptions? options = default, + public virtual async Task CacheClean(NpmCacheCleanOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpmCacheCleanOptions(), token); } - public async Task CacheLs(NpmCacheLsOptions? options = default, CancellationToken token = default) + public virtual async Task CacheLs(NpmCacheLsOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpmCacheLsOptions(), token); } - public async Task CacheVerify(NpmCacheVerifyOptions? options = default, + public virtual async Task CacheVerify(NpmCacheVerifyOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpmCacheVerifyOptions(), token); } - public async Task Ci(NpmCiOptions? options = default, CancellationToken token = default) + public virtual async Task Ci(NpmCiOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpmCiOptions(), token); } - public async Task Completion(NpmCompletionOptions? options = default, + public virtual async Task Completion(NpmCompletionOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpmCompletionOptions(), token); } - public async Task ConfigSet(NpmConfigSetOptions options, CancellationToken token = default) + public virtual async Task ConfigSet(NpmConfigSetOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task ConfigSetRegistry(NpmConfigSetRegistryOptions options, CancellationToken token = default) + public virtual async Task ConfigSetRegistry(NpmConfigSetRegistryOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task ConfigGet(NpmConfigGetOptions? options = default, + public virtual async Task ConfigGet(NpmConfigGetOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpmConfigGetOptions(), token); } - public async Task ConfigDelete(NpmConfigDeleteOptions options, CancellationToken token = default) + public virtual async Task ConfigDelete(NpmConfigDeleteOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task ConfigList(NpmConfigListOptions? options = default, + public virtual async Task ConfigList(NpmConfigListOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpmConfigListOptions(), token); } - public async Task ConfigEdit(NpmConfigEditOptions? options = default, + public virtual async Task ConfigEdit(NpmConfigEditOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpmConfigEditOptions(), token); } - public async Task ConfigFix(NpmConfigFixOptions? options = default, + public virtual async Task ConfigFix(NpmConfigFixOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpmConfigFixOptions(), token); } - public async Task Dedupe(NpmDedupeOptions? options = default, CancellationToken token = default) + public virtual async Task Dedupe(NpmDedupeOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpmDedupeOptions(), token); } - public async Task Deprecate(NpmDeprecateOptions options, CancellationToken token = default) + public virtual async Task Deprecate(NpmDeprecateOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Diff(NpmDiffOptions? options = default, CancellationToken token = default) + public virtual async Task Diff(NpmDiffOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpmDiffOptions(), token); } - public async Task Docs(NpmDocsOptions? options = default, CancellationToken token = default) + public virtual async Task Docs(NpmDocsOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpmDocsOptions(), token); } - public async Task Doctor(NpmDoctorOptions? options = default, CancellationToken token = default) + public virtual async Task Doctor(NpmDoctorOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpmDoctorOptions(), token); } - public async Task Edit(NpmEditOptions? options = default, CancellationToken token = default) + public virtual async Task Edit(NpmEditOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpmEditOptions(), token); } - public async Task Exec(NpmExecOptions options, CancellationToken token = default) + public virtual async Task Exec(NpmExecOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task ExecC(NpmExecCOptions? options = default, CancellationToken token = default) + public virtual async Task ExecC(NpmExecCOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpmExecCOptions(), token); } - public async Task Explain(NpmExplainOptions? options = default, CancellationToken token = default) + public virtual async Task Explain(NpmExplainOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpmExplainOptions(), token); } - public async Task Explore(NpmExploreOptions? options = default, CancellationToken token = default) + public virtual async Task Explore(NpmExploreOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpmExploreOptions(), token); } - public async Task Fund(NpmFundOptions? options = default, CancellationToken token = default) + public virtual async Task Fund(NpmFundOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpmFundOptions(), token); } - public async Task Help(NpmHelpOptions options, CancellationToken token = default) + public virtual async Task Help(NpmHelpOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task HookAdd(NpmHookAddOptions options, CancellationToken token = default) + public virtual async Task HookAdd(NpmHookAddOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task HookLs(NpmHookLsOptions? options = default, CancellationToken token = default) + public virtual async Task HookLs(NpmHookLsOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpmHookLsOptions(), token); } - public async Task HookRm(NpmHookRmOptions options, CancellationToken token = default) + public virtual async Task HookRm(NpmHookRmOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task HookUpdate(NpmHookUpdateOptions options, CancellationToken token = default) + public virtual async Task HookUpdate(NpmHookUpdateOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Init(NpmInitOptions options, CancellationToken token = default) + public virtual async Task Init(NpmInitOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Install(NpmInstallOptions? options = default, CancellationToken token = default) + public virtual async Task Install(NpmInstallOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpmInstallOptions(), token); } - public async Task Link(NpmLinkOptions? options = default, CancellationToken token = default) + public virtual async Task Link(NpmLinkOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpmLinkOptions(), token); } - public async Task Login(NpmLoginOptions? options = default, CancellationToken token = default) + public virtual async Task Login(NpmLoginOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpmLoginOptions(), token); } - public async Task Logout(NpmLogoutOptions? options = default, CancellationToken token = default) + public virtual async Task Logout(NpmLogoutOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpmLogoutOptions(), token); } - public async Task Ls(NpmLsOptions? options = default, CancellationToken token = default) + public virtual async Task Ls(NpmLsOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpmLsOptions(), token); } - public async Task OrgSet(NpmOrgSetOptions options, CancellationToken token = default) + public virtual async Task OrgSet(NpmOrgSetOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task OrgRm(NpmOrgRmOptions options, + public virtual async Task OrgRm(NpmOrgRmOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task OrgLs(NpmOrgLsOptions options, + public virtual async Task OrgLs(NpmOrgLsOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Outdated(NpmOutdatedOptions? options = default, + public virtual async Task Outdated(NpmOutdatedOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpmOutdatedOptions(), token); } - public async Task OwnerAdd(NpmOwnerAddOptions options, CancellationToken token = default) + public virtual async Task OwnerAdd(NpmOwnerAddOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task OwnerRm(NpmOwnerRmOptions options, CancellationToken token = default) + public virtual async Task OwnerRm(NpmOwnerRmOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task OwnerLs(NpmOwnerLsOptions? options = default, CancellationToken token = default) + public virtual async Task OwnerLs(NpmOwnerLsOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpmOwnerLsOptions(), token); } - public async Task Pack(NpmPackOptions? options = default, CancellationToken token = default) + public virtual async Task Pack(NpmPackOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpmPackOptions(), token); } - public async Task Ping(NpmPingOptions? options = default, CancellationToken token = default) + public virtual async Task Ping(NpmPingOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpmPingOptions(), token); } - public async Task PkgSet(NpmPkgSetOptions options, CancellationToken token = default) + public virtual async Task PkgSet(NpmPkgSetOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task PkgGet(NpmPkgGetOptions? options = default, CancellationToken token = default) + public virtual async Task PkgGet(NpmPkgGetOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpmPkgGetOptions(), token); } - public async Task PkgDelete(NpmPkgDeleteOptions options, CancellationToken token = default) + public virtual async Task PkgDelete(NpmPkgDeleteOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task PkgFix(NpmPkgFixOptions? options = default, CancellationToken token = default) + public virtual async Task PkgFix(NpmPkgFixOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpmPkgFixOptions(), token); } - public async Task Prefix(NpmPrefixOptions? options = default, CancellationToken token = default) + public virtual async Task Prefix(NpmPrefixOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpmPrefixOptions(), token); } - public async Task ProfileEnable2fa(NpmProfileEnable2faOptions? options = default, + public virtual async Task ProfileEnable2fa(NpmProfileEnable2faOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpmProfileEnable2faOptions(), token); } - public async Task ProfileDisable2fa(NpmProfileDisable2faOptions? options = default, + public virtual async Task ProfileDisable2fa(NpmProfileDisable2faOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpmProfileDisable2faOptions(), token); } - public async Task ProfileGet(NpmProfileGetOptions? options = default, + public virtual async Task ProfileGet(NpmProfileGetOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpmProfileGetOptions(), token); } - public async Task ProfileSet(NpmProfileSetOptions options, CancellationToken token = default) + public virtual async Task ProfileSet(NpmProfileSetOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Prune(NpmPruneOptions? options = default, CancellationToken token = default) + public virtual async Task Prune(NpmPruneOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpmPruneOptions(), token); } - public async Task Publish(NpmPublishOptions? options = default, CancellationToken token = default) + public virtual async Task Publish(NpmPublishOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpmPublishOptions(), token); } - public async Task Query(NpmQueryOptions options, CancellationToken token = default) + public virtual async Task Query(NpmQueryOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Rebuild(NpmRebuildOptions? options = default, CancellationToken token = default) + public virtual async Task Rebuild(NpmRebuildOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpmRebuildOptions(), token); } - public async Task Repo(NpmRepoOptions? options = default, CancellationToken token = default) + public virtual async Task Repo(NpmRepoOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpmRepoOptions(), token); } - public async Task Restart(NpmRestartOptions options, CancellationToken token = default) + public virtual async Task Restart(NpmRestartOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Root(NpmRootOptions? options = default, CancellationToken token = default) + public virtual async Task Root(NpmRootOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpmRootOptions(), token); } - public async Task Run(NpmRunOptions options, CancellationToken token = default) + public virtual async Task Run(NpmRunOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Sbom(NpmSbomOptions? options = default, CancellationToken token = default) + public virtual async Task Sbom(NpmSbomOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpmSbomOptions(), token); } - public async Task Search(NpmSearchOptions options, + public virtual async Task Search(NpmSearchOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Shrinkwrap(NpmShrinkwrapOptions? options = default, + public virtual async Task Shrinkwrap(NpmShrinkwrapOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpmShrinkwrapOptions(), token); } - public async Task Star(NpmStarOptions? options = default, CancellationToken token = default) + public virtual async Task Star(NpmStarOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpmStarOptions(), token); } - public async Task Stars(NpmStarsOptions? options = default, CancellationToken token = default) + public virtual async Task Stars(NpmStarsOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpmStarsOptions(), token); } - public async Task Start(NpmStartOptions options, CancellationToken token = default) + public virtual async Task Start(NpmStartOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Stop(NpmStopOptions options, CancellationToken token = default) + public virtual async Task Stop(NpmStopOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task TeamCreate(NpmTeamCreateOptions options, CancellationToken token = default) + public virtual async Task TeamCreate(NpmTeamCreateOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task TeamDestroy(NpmTeamDestroyOptions options, CancellationToken token = default) + public virtual async Task TeamDestroy(NpmTeamDestroyOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task TeamAdd(NpmTeamAddOptions options, CancellationToken token = default) + public virtual async Task TeamAdd(NpmTeamAddOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task TeamRm(NpmTeamRmOptions options, CancellationToken token = default) + public virtual async Task TeamRm(NpmTeamRmOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task TeamLs(NpmTeamLsOptions options, CancellationToken token = default) + public virtual async Task TeamLs(NpmTeamLsOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Test(NpmTestOptions options, CancellationToken token = default) + public virtual async Task Test(NpmTestOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task TokenList(NpmTokenListOptions? options = default, + public virtual async Task TokenList(NpmTokenListOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpmTokenListOptions(), token); } - public async Task TokenRevoke(NpmTokenRevokeOptions options, CancellationToken token = default) + public virtual async Task TokenRevoke(NpmTokenRevokeOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task TokenCreate(NpmTokenCreateOptions? options = default, + public virtual async Task TokenCreate(NpmTokenCreateOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpmTokenCreateOptions(), token); } - public async Task Uninstall(NpmUninstallOptions? options = default, + public virtual async Task Uninstall(NpmUninstallOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpmUninstallOptions(), token); } - public async Task Unpublish(NpmUnpublishOptions? options = default, + public virtual async Task Unpublish(NpmUnpublishOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpmUnpublishOptions(), token); } - public async Task Unstar(NpmUnstarOptions? options = default, CancellationToken token = default) + public virtual async Task Unstar(NpmUnstarOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpmUnstarOptions(), token); } - public async Task Update(NpmUpdateOptions? options = default, CancellationToken token = default) + public virtual async Task Update(NpmUpdateOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpmUpdateOptions(), token); } - public async Task Version(NpmVersionOptions options, CancellationToken token = default) + public virtual async Task Version(NpmVersionOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task View(NpmViewOptions? options = default, CancellationToken token = default) + public virtual async Task View(NpmViewOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpmViewOptions(), token); } - public async Task Whoami(NpmWhoamiOptions? options = default, CancellationToken token = default) + public virtual async Task Whoami(NpmWhoamiOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpmWhoamiOptions(), token); } - public async Task Npx(NpxOptions options, CancellationToken token = default) + public virtual async Task Npx(NpxOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task NpxC(NpxCOptions? options = default, CancellationToken token = default) + public virtual async Task NpxC(NpxCOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new NpxCOptions(), token); } diff --git a/src/ModularPipelines.Node/Npx.cs b/src/ModularPipelines.Node/Npx.cs index 77c0324a46..e620a11e8a 100644 --- a/src/ModularPipelines.Node/Npx.cs +++ b/src/ModularPipelines.Node/Npx.cs @@ -15,7 +15,7 @@ public Npx(ICommand command) _command = command; } - public async Task ExecuteAsync(NpxOptions npxOptions, CancellationToken cancellationToken = default) + public virtual async Task ExecuteAsync(NpxOptions npxOptions, CancellationToken cancellationToken = default) { return await _command.ExecuteCommandLineTool(npxOptions, cancellationToken); } diff --git a/src/ModularPipelines.Node/Nvm.cs b/src/ModularPipelines.Node/Nvm.cs index 485547f1f3..3921c5cc25 100644 --- a/src/ModularPipelines.Node/Nvm.cs +++ b/src/ModularPipelines.Node/Nvm.cs @@ -15,7 +15,7 @@ public Nvm(IPipelineContext context) _context = context; } - public Task Use(string version, CancellationToken cancellationToken = default) + public virtual Task Use(string version, CancellationToken cancellationToken = default) { return _context.Command.ExecuteCommandLineTool(new CommandLineToolOptions("nvm") { @@ -23,7 +23,7 @@ public Task Use(string version, CancellationToken cancellationTok }, cancellationToken); } - public Task Install(string version, CancellationToken cancellationToken = default) + public virtual Task Install(string version, CancellationToken cancellationToken = default) { return _context.Command.ExecuteCommandLineTool(new CommandLineToolOptions("nvm") { @@ -31,7 +31,7 @@ public Task Install(string version, CancellationToken cancellatio }, cancellationToken); } - public Task Version(CancellationToken cancellationToken = default) + public virtual Task Version(CancellationToken cancellationToken = default) { return _context.Command.ExecuteCommandLineTool(new CommandLineToolOptions("nvm") { @@ -39,7 +39,7 @@ public Task Version(CancellationToken cancellationToken = default }, cancellationToken); } - public Task Which(CancellationToken cancellationToken = default) + public virtual Task Which(CancellationToken cancellationToken = default) { return _context.Command.ExecuteCommandLineTool(new CommandLineToolOptions("nvm") { diff --git a/src/ModularPipelines.Terraform/Options/TerraformApplyOptions.cs b/src/ModularPipelines.Terraform/Options/TerraformApplyOptions.cs index 41c0c87983..8eeb2732d2 100644 --- a/src/ModularPipelines.Terraform/Options/TerraformApplyOptions.cs +++ b/src/ModularPipelines.Terraform/Options/TerraformApplyOptions.cs @@ -8,44 +8,44 @@ namespace ModularPipelines.Terraform.Options; public record TerraformApplyOptions : TerraformOptions { [BooleanCommandSwitch("-auto-approve")] - public bool? AutoApprove { get; set; } + public virtual bool? AutoApprove { get; set; } [BooleanCommandSwitch("-destroy")] - public bool? Destroy { get; set; } + public virtual bool? Destroy { get; set; } [BooleanCommandSwitch("-refresh-only")] - public bool? RefreshOnly { get; set; } + public virtual bool? RefreshOnly { get; set; } [BooleanCommandSwitch("-compact-warnings")] - public bool? CompactWarnings { get; set; } + public virtual bool? CompactWarnings { get; set; } [BooleanCommandSwitch("-input")] - public bool? Input { get; set; } + public virtual bool? Input { get; set; } [BooleanCommandSwitch("-json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } [BooleanCommandSwitch("-lock")] - public bool? Lock { get; set; } + public virtual bool? Lock { get; set; } [CommandSwitch("-lock-timeout")] - public string? LockTimeout { get; set; } + public virtual string? LockTimeout { get; set; } [BooleanCommandSwitch("-no-color")] - public bool? NoColor { get; set; } + public virtual bool? NoColor { get; set; } [CommandSwitch("-parallelism")] - public int? Parallelism { get; set; } + public virtual int? Parallelism { get; set; } [BooleanCommandSwitch("-state")] - public bool? State { get; set; } + public virtual bool? State { get; set; } [BooleanCommandSwitch("-state-out")] - public bool? StateOut { get; set; } + public virtual bool? StateOut { get; set; } [BooleanCommandSwitch("-backup")] - public bool? Backup { get; set; } + public virtual bool? Backup { get; set; } [BooleanCommandSwitch("-chdir")] - public bool? Chdir { get; set; } + public virtual bool? Chdir { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Terraform/Options/TerraformConsoleOptions.cs b/src/ModularPipelines.Terraform/Options/TerraformConsoleOptions.cs index 4db8cd9150..25aa43aa54 100644 --- a/src/ModularPipelines.Terraform/Options/TerraformConsoleOptions.cs +++ b/src/ModularPipelines.Terraform/Options/TerraformConsoleOptions.cs @@ -8,5 +8,5 @@ namespace ModularPipelines.Terraform.Options; public record TerraformConsoleOptions : TerraformOptions { [BooleanCommandSwitch("-state")] - public bool? State { get; set; } + public virtual bool? State { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Terraform/Options/TerraformDestroyOptions.cs b/src/ModularPipelines.Terraform/Options/TerraformDestroyOptions.cs index 9516b3295f..a970281087 100644 --- a/src/ModularPipelines.Terraform/Options/TerraformDestroyOptions.cs +++ b/src/ModularPipelines.Terraform/Options/TerraformDestroyOptions.cs @@ -8,5 +8,5 @@ namespace ModularPipelines.Terraform.Options; public record TerraformDestroyOptions : TerraformOptions { [BooleanCommandSwitch("-destroy")] - public bool? Destroy { get; set; } + public virtual bool? Destroy { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Terraform/Options/TerraformFmtOptions.cs b/src/ModularPipelines.Terraform/Options/TerraformFmtOptions.cs index f65b00a436..675e6f2791 100644 --- a/src/ModularPipelines.Terraform/Options/TerraformFmtOptions.cs +++ b/src/ModularPipelines.Terraform/Options/TerraformFmtOptions.cs @@ -8,17 +8,17 @@ namespace ModularPipelines.Terraform.Options; public record TerraformFmtOptions : TerraformOptions { [BooleanCommandSwitch("-list")] - public bool? List { get; set; } + public virtual bool? List { get; set; } [BooleanCommandSwitch("-write")] - public bool? Write { get; set; } + public virtual bool? Write { get; set; } [BooleanCommandSwitch("-check")] - public bool? Check { get; set; } + public virtual bool? Check { get; set; } [BooleanCommandSwitch("-diff")] - public bool? Diff { get; set; } + public virtual bool? Diff { get; set; } [BooleanCommandSwitch("-recursive")] - public bool? Recursive { get; set; } + public virtual bool? Recursive { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Terraform/Options/TerraformForceUnlockOptions.cs b/src/ModularPipelines.Terraform/Options/TerraformForceUnlockOptions.cs index 85e5a74831..6f8ec56a53 100644 --- a/src/ModularPipelines.Terraform/Options/TerraformForceUnlockOptions.cs +++ b/src/ModularPipelines.Terraform/Options/TerraformForceUnlockOptions.cs @@ -9,5 +9,5 @@ public record TerraformForceUnlockOptions([property: PositionalArgument(Position string Lockid) : TerraformOptions { [BooleanCommandSwitch("-force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Terraform/Options/TerraformGetOptions.cs b/src/ModularPipelines.Terraform/Options/TerraformGetOptions.cs index ebf5e7b185..973a6deebb 100644 --- a/src/ModularPipelines.Terraform/Options/TerraformGetOptions.cs +++ b/src/ModularPipelines.Terraform/Options/TerraformGetOptions.cs @@ -9,8 +9,8 @@ public record TerraformGetOptions([property: PositionalArgument(Position = Posit string Path) : TerraformOptions { [BooleanCommandSwitch("-update")] - public bool? Update { get; set; } + public virtual bool? Update { get; set; } [BooleanCommandSwitch("-no-color")] - public bool? NoColor { get; set; } + public virtual bool? NoColor { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Terraform/Options/TerraformGraphOptions.cs b/src/ModularPipelines.Terraform/Options/TerraformGraphOptions.cs index 96e7bb13ca..0b77d65f14 100644 --- a/src/ModularPipelines.Terraform/Options/TerraformGraphOptions.cs +++ b/src/ModularPipelines.Terraform/Options/TerraformGraphOptions.cs @@ -8,14 +8,14 @@ namespace ModularPipelines.Terraform.Options; public record TerraformGraphOptions : TerraformOptions { [BooleanCommandSwitch("-type")] - public bool? Type { get; set; } + public virtual bool? Type { get; set; } [CommandSwitch("-plan")] - public string? Plan { get; set; } + public virtual string? Plan { get; set; } [BooleanCommandSwitch("-draw-cycles")] - public bool? DrawCycles { get; set; } + public virtual bool? DrawCycles { get; set; } [CommandSwitch("-module-depth")] - public int? ModuleDepth { get; set; } + public virtual int? ModuleDepth { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Terraform/Options/TerraformImportOptions.cs b/src/ModularPipelines.Terraform/Options/TerraformImportOptions.cs index 095d951adc..1f1c4c2329 100644 --- a/src/ModularPipelines.Terraform/Options/TerraformImportOptions.cs +++ b/src/ModularPipelines.Terraform/Options/TerraformImportOptions.cs @@ -11,41 +11,41 @@ public record TerraformImportOptions([property: PositionalArgument(Position = Po string Id) : TerraformOptions { [CommandSwitch("-config")] - public string? Config { get; set; } + public virtual string? Config { get; set; } [BooleanCommandSwitch("-input")] - public bool? Input { get; set; } + public virtual bool? Input { get; set; } [BooleanCommandSwitch("-lock")] - public bool? Lock { get; set; } + public virtual bool? Lock { get; set; } [CommandSwitch("-lock-timeout")] - public string? LockTimeout { get; set; } + public virtual string? LockTimeout { get; set; } [BooleanCommandSwitch("-no-color")] - public bool? NoColor { get; set; } + public virtual bool? NoColor { get; set; } [CommandSwitch("-parallelism")] - public int? Parallelism { get; set; } + public virtual int? Parallelism { get; set; } [CommandSwitch("-provider")] - public string? Provider { get; set; } + public virtual string? Provider { get; set; } [CommandSwitch("-var")] - public IEnumerable? Vars { get; set; } + public virtual IEnumerable? Vars { get; set; } [CommandSwitch("-var-file")] - public string? VarFile { get; set; } + public virtual string? VarFile { get; set; } [BooleanCommandSwitch("-ignore-remote-version")] - public bool? IgnoreRemoteVersion { get; set; } + public virtual bool? IgnoreRemoteVersion { get; set; } [BooleanCommandSwitch("-state")] - public bool? State { get; set; } + public virtual bool? State { get; set; } [BooleanCommandSwitch("-state-out")] - public bool? StateOut { get; set; } + public virtual bool? StateOut { get; set; } [BooleanCommandSwitch("-backup")] - public bool? Backup { get; set; } + public virtual bool? Backup { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Terraform/Options/TerraformInitOptions.cs b/src/ModularPipelines.Terraform/Options/TerraformInitOptions.cs index 570d0c1209..57ea2c5ee5 100644 --- a/src/ModularPipelines.Terraform/Options/TerraformInitOptions.cs +++ b/src/ModularPipelines.Terraform/Options/TerraformInitOptions.cs @@ -8,50 +8,50 @@ namespace ModularPipelines.Terraform.Options; public record TerraformInitOptions : TerraformOptions { [BooleanCommandSwitch("-input")] - public bool? Input { get; set; } + public virtual bool? Input { get; set; } [BooleanCommandSwitch("-lock")] - public bool? Lock { get; set; } + public virtual bool? Lock { get; set; } [CommandSwitch("-lock-timeout")] - public string? LockTimeout { get; set; } + public virtual string? LockTimeout { get; set; } [BooleanCommandSwitch("-no-color")] - public bool? NoColor { get; set; } + public virtual bool? NoColor { get; set; } [BooleanCommandSwitch("-upgrade")] - public bool? Upgrade { get; set; } + public virtual bool? Upgrade { get; set; } [CommandSwitch("-from-module")] - public string? FromModule { get; set; } + public virtual string? FromModule { get; set; } [BooleanCommandSwitch("-reconfigure")] - public bool? Reconfigure { get; set; } + public virtual bool? Reconfigure { get; set; } [BooleanCommandSwitch("-migrate-state")] - public bool? MigrateState { get; set; } + public virtual bool? MigrateState { get; set; } [BooleanCommandSwitch("-force-copy")] - public bool? ForceCopy { get; set; } + public virtual bool? ForceCopy { get; set; } [BooleanCommandSwitch("-backend")] - public bool? Backend { get; set; } + public virtual bool? Backend { get; set; } [CommandSwitch("-backend-config")] - public string? BackendConfig { get; set; } + public virtual string? BackendConfig { get; set; } [BooleanCommandSwitch("-get")] - public bool? Get { get; set; } + public virtual bool? Get { get; set; } [BooleanCommandSwitch("-get-plugins")] - public bool? GetPlugins { get; set; } + public virtual bool? GetPlugins { get; set; } [CommandSwitch("-plugin-dir")] - public string? PluginDir { get; set; } + public virtual string? PluginDir { get; set; } [CommandSwitch("-lockfile")] - public string? Lockfile { get; set; } + public virtual string? Lockfile { get; set; } [BooleanCommandSwitch("-chdir")] - public bool? Chdir { get; set; } + public virtual bool? Chdir { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Terraform/Options/TerraformOutputOptions.cs b/src/ModularPipelines.Terraform/Options/TerraformOutputOptions.cs index 8f2e0b3941..6cd0c23382 100644 --- a/src/ModularPipelines.Terraform/Options/TerraformOutputOptions.cs +++ b/src/ModularPipelines.Terraform/Options/TerraformOutputOptions.cs @@ -11,14 +11,14 @@ public record TerraformOutputOptions : TerraformOptions public string? Name { get; set; } [BooleanCommandSwitch("-json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } [BooleanCommandSwitch("-raw")] - public bool? Raw { get; set; } + public virtual bool? Raw { get; set; } [BooleanCommandSwitch("-no-color")] - public bool? NoColor { get; set; } + public virtual bool? NoColor { get; set; } [CommandSwitch("-state")] - public string? State { get; set; } + public virtual string? State { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Terraform/Options/TerraformPlanOptions.cs b/src/ModularPipelines.Terraform/Options/TerraformPlanOptions.cs index acc5158803..6d52552a97 100644 --- a/src/ModularPipelines.Terraform/Options/TerraformPlanOptions.cs +++ b/src/ModularPipelines.Terraform/Options/TerraformPlanOptions.cs @@ -9,59 +9,59 @@ namespace ModularPipelines.Terraform.Options; public record TerraformPlanOptions : TerraformOptions { [CommandSwitch("-out")] - public string? Out { get; set; } + public virtual string? Out { get; set; } [BooleanCommandSwitch("-destroy")] - public bool? Destroy { get; set; } + public virtual bool? Destroy { get; set; } [BooleanCommandSwitch("-refresh-only")] - public bool? RefreshOnly { get; set; } + public virtual bool? RefreshOnly { get; set; } [BooleanCommandSwitch("-refresh")] - public bool? Refresh { get; set; } + public virtual bool? Refresh { get; set; } [CommandSwitch("-replace")] - public string? Replace { get; set; } + public virtual string? Replace { get; set; } [CommandSwitch("-target")] - public string? Target { get; set; } + public virtual string? Target { get; set; } [CommandSwitch("-var")] - public IEnumerable? Vars { get; set; } + public virtual IEnumerable? Vars { get; set; } [CommandSwitch("-var-file")] - public string? VarFile { get; set; } + public virtual string? VarFile { get; set; } [BooleanCommandSwitch("-compact-warnings")] - public bool? CompactWarnings { get; set; } + public virtual bool? CompactWarnings { get; set; } [BooleanCommandSwitch("-detailed-exitcode")] - public bool? DetailedExitcode { get; set; } + public virtual bool? DetailedExitcode { get; set; } [CommandSwitch("-generate-config-out")] - public string? GenerateConfigOut { get; set; } + public virtual string? GenerateConfigOut { get; set; } [BooleanCommandSwitch("-input")] - public bool? Input { get; set; } + public virtual bool? Input { get; set; } [BooleanCommandSwitch("-json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } [BooleanCommandSwitch("-lock")] - public bool? Lock { get; set; } + public virtual bool? Lock { get; set; } [CommandSwitch("-lock-timeout")] - public string? LockTimeout { get; set; } + public virtual string? LockTimeout { get; set; } [BooleanCommandSwitch("-no-color")] - public bool? NoColor { get; set; } + public virtual bool? NoColor { get; set; } [CommandSwitch("-parallelism")] - public int? Parallelism { get; set; } + public virtual int? Parallelism { get; set; } [BooleanCommandSwitch("-state")] - public bool? State { get; set; } + public virtual bool? State { get; set; } [BooleanCommandSwitch("-chdir")] - public bool? Chdir { get; set; } + public virtual bool? Chdir { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Terraform/Options/TerraformRefreshOptions.cs b/src/ModularPipelines.Terraform/Options/TerraformRefreshOptions.cs index 1422cdfd0c..75ed9c2690 100644 --- a/src/ModularPipelines.Terraform/Options/TerraformRefreshOptions.cs +++ b/src/ModularPipelines.Terraform/Options/TerraformRefreshOptions.cs @@ -8,8 +8,8 @@ namespace ModularPipelines.Terraform.Options; public record TerraformRefreshOptions : TerraformOptions { [BooleanCommandSwitch("-auto-approve")] - public bool? AutoApprove { get; set; } + public virtual bool? AutoApprove { get; set; } [BooleanCommandSwitch("-refresh-only")] - public bool? RefreshOnly { get; set; } + public virtual bool? RefreshOnly { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Terraform/Options/TerraformShowOptions.cs b/src/ModularPipelines.Terraform/Options/TerraformShowOptions.cs index b6722d0dc8..fe0b1a96c8 100644 --- a/src/ModularPipelines.Terraform/Options/TerraformShowOptions.cs +++ b/src/ModularPipelines.Terraform/Options/TerraformShowOptions.cs @@ -8,11 +8,11 @@ namespace ModularPipelines.Terraform.Options; public record TerraformShowOptions : TerraformOptions { [BooleanCommandSwitch("-json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } [BooleanCommandSwitch("-refresh")] - public bool? Refresh { get; set; } + public virtual bool? Refresh { get; set; } [BooleanCommandSwitch("-no-color")] - public bool? NoColor { get; set; } + public virtual bool? NoColor { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Terraform/Options/TerraformStateCommandOptions.cs b/src/ModularPipelines.Terraform/Options/TerraformStateCommandOptions.cs index d960bc34b6..6ab1e16479 100644 --- a/src/ModularPipelines.Terraform/Options/TerraformStateCommandOptions.cs +++ b/src/ModularPipelines.Terraform/Options/TerraformStateCommandOptions.cs @@ -8,5 +8,5 @@ namespace ModularPipelines.Terraform.Options; public record TerraformStateCommandOptions : TerraformOptions { [BooleanCommandSwitch("-backup")] - public bool? Backup { get; set; } + public virtual bool? Backup { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Terraform/Options/TerraformStateListOptions.cs b/src/ModularPipelines.Terraform/Options/TerraformStateListOptions.cs index aec2d0c829..6b38889824 100644 --- a/src/ModularPipelines.Terraform/Options/TerraformStateListOptions.cs +++ b/src/ModularPipelines.Terraform/Options/TerraformStateListOptions.cs @@ -8,8 +8,8 @@ namespace ModularPipelines.Terraform.Options; public record TerraformStateListOptions : TerraformOptions { [CommandSwitch("-state")] - public string? State { get; set; } + public virtual string? State { get; set; } [CommandSwitch("-id")] - public string? Id { get; set; } + public virtual string? Id { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Terraform/Options/TerraformStateMvOptions.cs b/src/ModularPipelines.Terraform/Options/TerraformStateMvOptions.cs index 298f958a51..aa98236680 100644 --- a/src/ModularPipelines.Terraform/Options/TerraformStateMvOptions.cs +++ b/src/ModularPipelines.Terraform/Options/TerraformStateMvOptions.cs @@ -10,29 +10,29 @@ public record TerraformStateMvOptions([property: PositionalArgument(Position = P string Destination) : TerraformOptions { [BooleanCommandSwitch("-dry-run")] - public bool? DryRun { get; set; } + public virtual bool? DryRun { get; set; } [BooleanCommandSwitch("-lock")] - public bool? Lock { get; set; } + public virtual bool? Lock { get; set; } [CommandSwitch("-lock-timeout")] - public string? LockTimeout { get; set; } + public virtual string? LockTimeout { get; set; } [BooleanCommandSwitch("-ignore-remote-version")] - public bool? IgnoreRemoteVersion { get; set; } + public virtual bool? IgnoreRemoteVersion { get; set; } [BooleanCommandSwitch("-backup")] - public bool? Backup { get; set; } + public virtual bool? Backup { get; set; } [BooleanCommandSwitch("-backup-out")] - public bool? BackupOut { get; set; } + public virtual bool? BackupOut { get; set; } [BooleanCommandSwitch("-state")] - public bool? State { get; set; } + public virtual bool? State { get; set; } [BooleanCommandSwitch("-state-out")] - public bool? StateOut { get; set; } + public virtual bool? StateOut { get; set; } [CommandSwitch("-resource")] - public string? Resource { get; set; } + public virtual string? Resource { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Terraform/Options/TerraformStatePushOptions.cs b/src/ModularPipelines.Terraform/Options/TerraformStatePushOptions.cs index 533e27ebc7..de63a74b24 100644 --- a/src/ModularPipelines.Terraform/Options/TerraformStatePushOptions.cs +++ b/src/ModularPipelines.Terraform/Options/TerraformStatePushOptions.cs @@ -9,8 +9,8 @@ public record TerraformStatePushOptions([property: PositionalArgument(Position = string Path) : TerraformOptions { [BooleanCommandSwitch("-force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [BooleanCommandSwitch("-ignore-remote-version")] - public bool? IgnoreRemoteVersion { get; set; } + public virtual bool? IgnoreRemoteVersion { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Terraform/Options/TerraformStateReplaceProviderOptions.cs b/src/ModularPipelines.Terraform/Options/TerraformStateReplaceProviderOptions.cs index 48cb2fe9b0..f7e1200836 100644 --- a/src/ModularPipelines.Terraform/Options/TerraformStateReplaceProviderOptions.cs +++ b/src/ModularPipelines.Terraform/Options/TerraformStateReplaceProviderOptions.cs @@ -11,23 +11,23 @@ public record TerraformStateReplaceProviderOptions( string Toproviderfqn) : TerraformOptions { [BooleanCommandSwitch("-auto-approve")] - public bool? AutoApprove { get; set; } + public virtual bool? AutoApprove { get; set; } [BooleanCommandSwitch("-lock")] - public bool? Lock { get; set; } + public virtual bool? Lock { get; set; } [CommandSwitch("-lock-timeout")] - public string? LockTimeout { get; set; } + public virtual string? LockTimeout { get; set; } [BooleanCommandSwitch("-ignore-remote-version")] - public bool? IgnoreRemoteVersion { get; set; } + public virtual bool? IgnoreRemoteVersion { get; set; } [BooleanCommandSwitch("-state")] - public bool? State { get; set; } + public virtual bool? State { get; set; } [BooleanCommandSwitch("-state-out")] - public bool? StateOut { get; set; } + public virtual bool? StateOut { get; set; } [BooleanCommandSwitch("-backup")] - public bool? Backup { get; set; } + public virtual bool? Backup { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Terraform/Options/TerraformStateRmOptions.cs b/src/ModularPipelines.Terraform/Options/TerraformStateRmOptions.cs index ed2e81d039..694e456029 100644 --- a/src/ModularPipelines.Terraform/Options/TerraformStateRmOptions.cs +++ b/src/ModularPipelines.Terraform/Options/TerraformStateRmOptions.cs @@ -9,23 +9,23 @@ public record TerraformStateRmOptions([property: PositionalArgument(Position = P IEnumerable Address) : TerraformOptions { [BooleanCommandSwitch("-dry-run")] - public bool? DryRun { get; set; } + public virtual bool? DryRun { get; set; } [BooleanCommandSwitch("-lock")] - public bool? Lock { get; set; } + public virtual bool? Lock { get; set; } [CommandSwitch("-lock-timeout")] - public string? LockTimeout { get; set; } + public virtual string? LockTimeout { get; set; } [BooleanCommandSwitch("-ignore-remote-version")] - public bool? IgnoreRemoteVersion { get; set; } + public virtual bool? IgnoreRemoteVersion { get; set; } [BooleanCommandSwitch("-state")] - public bool? State { get; set; } + public virtual bool? State { get; set; } [BooleanCommandSwitch("-state-out")] - public bool? StateOut { get; set; } + public virtual bool? StateOut { get; set; } [BooleanCommandSwitch("-backup")] - public bool? Backup { get; set; } + public virtual bool? Backup { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Terraform/Options/TerraformStateShowOptions.cs b/src/ModularPipelines.Terraform/Options/TerraformStateShowOptions.cs index 58ac661439..44373fc537 100644 --- a/src/ModularPipelines.Terraform/Options/TerraformStateShowOptions.cs +++ b/src/ModularPipelines.Terraform/Options/TerraformStateShowOptions.cs @@ -9,5 +9,5 @@ public record TerraformStateShowOptions([property: PositionalArgument(Position = string Address) : TerraformOptions { [CommandSwitch("-state")] - public string? State { get; set; } + public virtual string? State { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Terraform/Options/TerraformTaintOptions.cs b/src/ModularPipelines.Terraform/Options/TerraformTaintOptions.cs index e05ec3a6b9..1a9c2b3938 100644 --- a/src/ModularPipelines.Terraform/Options/TerraformTaintOptions.cs +++ b/src/ModularPipelines.Terraform/Options/TerraformTaintOptions.cs @@ -8,26 +8,26 @@ namespace ModularPipelines.Terraform.Options; public record TerraformTaintOptions : TerraformOptions { [BooleanCommandSwitch("-replace")] - public bool? Replace { get; set; } + public virtual bool? Replace { get; set; } [BooleanCommandSwitch("-allow-missing")] - public bool? AllowMissing { get; set; } + public virtual bool? AllowMissing { get; set; } [BooleanCommandSwitch("-lock")] - public bool? Lock { get; set; } + public virtual bool? Lock { get; set; } [CommandSwitch("-lock-timeout")] - public string? LockTimeout { get; set; } + public virtual string? LockTimeout { get; set; } [BooleanCommandSwitch("-ignore-remote-version")] - public bool? IgnoreRemoteVersion { get; set; } + public virtual bool? IgnoreRemoteVersion { get; set; } [BooleanCommandSwitch("-state")] - public bool? State { get; set; } + public virtual bool? State { get; set; } [BooleanCommandSwitch("-state-out")] - public bool? StateOut { get; set; } + public virtual bool? StateOut { get; set; } [BooleanCommandSwitch("-backup")] - public bool? Backup { get; set; } + public virtual bool? Backup { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Terraform/Options/TerraformTerraformProvidersLockOptions.cs b/src/ModularPipelines.Terraform/Options/TerraformTerraformProvidersLockOptions.cs index 52ef6b6ae0..0320eed474 100644 --- a/src/ModularPipelines.Terraform/Options/TerraformTerraformProvidersLockOptions.cs +++ b/src/ModularPipelines.Terraform/Options/TerraformTerraformProvidersLockOptions.cs @@ -8,11 +8,11 @@ namespace ModularPipelines.Terraform.Options; public record TerraformTerraformProvidersLockOptions : TerraformOptions { [CommandSwitch("-fs-mirror")] - public string? FsMirror { get; set; } + public virtual string? FsMirror { get; set; } [CommandSwitch("-net-mirror")] - public string? NetMirror { get; set; } + public virtual string? NetMirror { get; set; } [CommandSwitch("-platform")] - public string? Platform { get; set; } + public virtual string? Platform { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Terraform/Options/TerraformTerraformProvidersMirrorOptions.cs b/src/ModularPipelines.Terraform/Options/TerraformTerraformProvidersMirrorOptions.cs index f17200cb87..f06e73b104 100644 --- a/src/ModularPipelines.Terraform/Options/TerraformTerraformProvidersMirrorOptions.cs +++ b/src/ModularPipelines.Terraform/Options/TerraformTerraformProvidersMirrorOptions.cs @@ -8,5 +8,5 @@ namespace ModularPipelines.Terraform.Options; public record TerraformTerraformProvidersMirrorOptions : TerraformOptions { [CommandSwitch("-platform")] - public string? Platform { get; set; } + public virtual string? Platform { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Terraform/Options/TerraformTerraformProvidersSchemaOptions.cs b/src/ModularPipelines.Terraform/Options/TerraformTerraformProvidersSchemaOptions.cs index 3fcab8eda0..e657310153 100644 --- a/src/ModularPipelines.Terraform/Options/TerraformTerraformProvidersSchemaOptions.cs +++ b/src/ModularPipelines.Terraform/Options/TerraformTerraformProvidersSchemaOptions.cs @@ -8,5 +8,5 @@ namespace ModularPipelines.Terraform.Options; public record TerraformTerraformProvidersSchemaOptions : TerraformOptions { [BooleanCommandSwitch("-json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Terraform/Options/TerraformUntaintOptions.cs b/src/ModularPipelines.Terraform/Options/TerraformUntaintOptions.cs index 9682f29b88..4515b474a0 100644 --- a/src/ModularPipelines.Terraform/Options/TerraformUntaintOptions.cs +++ b/src/ModularPipelines.Terraform/Options/TerraformUntaintOptions.cs @@ -8,26 +8,26 @@ namespace ModularPipelines.Terraform.Options; public record TerraformUntaintOptions : TerraformOptions { [BooleanCommandSwitch("-allow-missing")] - public bool? AllowMissing { get; set; } + public virtual bool? AllowMissing { get; set; } [BooleanCommandSwitch("-lock")] - public bool? Lock { get; set; } + public virtual bool? Lock { get; set; } [CommandSwitch("-lock-timeout")] - public string? LockTimeout { get; set; } + public virtual string? LockTimeout { get; set; } [BooleanCommandSwitch("-no-color")] - public bool? NoColor { get; set; } + public virtual bool? NoColor { get; set; } [BooleanCommandSwitch("-ignore-remote-version")] - public bool? IgnoreRemoteVersion { get; set; } + public virtual bool? IgnoreRemoteVersion { get; set; } [BooleanCommandSwitch("-state")] - public bool? State { get; set; } + public virtual bool? State { get; set; } [BooleanCommandSwitch("-state-out")] - public bool? StateOut { get; set; } + public virtual bool? StateOut { get; set; } [BooleanCommandSwitch("-backup")] - public bool? Backup { get; set; } + public virtual bool? Backup { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Terraform/Options/TerraformValidateOptions.cs b/src/ModularPipelines.Terraform/Options/TerraformValidateOptions.cs index 91a7a4d8ad..c22ecd914d 100644 --- a/src/ModularPipelines.Terraform/Options/TerraformValidateOptions.cs +++ b/src/ModularPipelines.Terraform/Options/TerraformValidateOptions.cs @@ -8,8 +8,8 @@ namespace ModularPipelines.Terraform.Options; public record TerraformValidateOptions : TerraformOptions { [BooleanCommandSwitch("-json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } [BooleanCommandSwitch("-no-color")] - public bool? NoColor { get; set; } + public virtual bool? NoColor { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Terraform/Options/TerraformVersionOptions.cs b/src/ModularPipelines.Terraform/Options/TerraformVersionOptions.cs index 7eced7492b..98aba03f03 100644 --- a/src/ModularPipelines.Terraform/Options/TerraformVersionOptions.cs +++ b/src/ModularPipelines.Terraform/Options/TerraformVersionOptions.cs @@ -8,5 +8,5 @@ namespace ModularPipelines.Terraform.Options; public record TerraformVersionOptions : TerraformOptions { [BooleanCommandSwitch("-json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Terraform/Options/TerraformWorkspaceDeleteOptions.cs b/src/ModularPipelines.Terraform/Options/TerraformWorkspaceDeleteOptions.cs index a144d5ad91..2f1f18d27c 100644 --- a/src/ModularPipelines.Terraform/Options/TerraformWorkspaceDeleteOptions.cs +++ b/src/ModularPipelines.Terraform/Options/TerraformWorkspaceDeleteOptions.cs @@ -12,11 +12,11 @@ public record TerraformWorkspaceDeleteOptions([property: PositionalArgument(Posi public string? Directory { get; set; } [BooleanCommandSwitch("-force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [BooleanCommandSwitch("-lock")] - public bool? Lock { get; set; } + public virtual bool? Lock { get; set; } [CommandSwitch("-lock-timeout")] - public string? LockTimeout { get; set; } + public virtual string? LockTimeout { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Terraform/Options/TerraformWorkspaceNewOptions.cs b/src/ModularPipelines.Terraform/Options/TerraformWorkspaceNewOptions.cs index fa864163e3..477691ae16 100644 --- a/src/ModularPipelines.Terraform/Options/TerraformWorkspaceNewOptions.cs +++ b/src/ModularPipelines.Terraform/Options/TerraformWorkspaceNewOptions.cs @@ -12,11 +12,11 @@ public record TerraformWorkspaceNewOptions([property: PositionalArgument(Positio public string? Directory { get; set; } [BooleanCommandSwitch("-state")] - public bool? State { get; set; } + public virtual bool? State { get; set; } [BooleanCommandSwitch("-lock")] - public bool? Lock { get; set; } + public virtual bool? Lock { get; set; } [CommandSwitch("-lock-timeout")] - public string? LockTimeout { get; set; } + public virtual string? LockTimeout { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Terraform/Options/TerraformWorkspaceSelectOptions.cs b/src/ModularPipelines.Terraform/Options/TerraformWorkspaceSelectOptions.cs index 55f16cafa1..89127ec4aa 100644 --- a/src/ModularPipelines.Terraform/Options/TerraformWorkspaceSelectOptions.cs +++ b/src/ModularPipelines.Terraform/Options/TerraformWorkspaceSelectOptions.cs @@ -12,5 +12,5 @@ public record TerraformWorkspaceSelectOptions([property: PositionalArgument(Posi public string? Directory { get; set; } [BooleanCommandSwitch("-or-create")] - public bool? OrCreate { get; set; } + public virtual bool? OrCreate { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Terraform/Terraform.cs b/src/ModularPipelines.Terraform/Terraform.cs index 251713c69d..8e98343990 100644 --- a/src/ModularPipelines.Terraform/Terraform.cs +++ b/src/ModularPipelines.Terraform/Terraform.cs @@ -16,203 +16,203 @@ public Terraform(ICommand command) } /// - public async Task Apply(TerraformApplyOptions? options = default, CancellationToken token = default) + public virtual async Task Apply(TerraformApplyOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new TerraformApplyOptions(), token); } /// - public async Task Console(TerraformConsoleOptions? options = default, + public virtual async Task Console(TerraformConsoleOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new TerraformConsoleOptions(), token); } /// - public async Task Destroy(TerraformDestroyOptions? options = default, + public virtual async Task Destroy(TerraformDestroyOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new TerraformDestroyOptions(), token); } /// - public async Task Fmt(TerraformFmtOptions? options = default, CancellationToken token = default) + public virtual async Task Fmt(TerraformFmtOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new TerraformFmtOptions(), token); } /// - public async Task ForceUnlock(TerraformForceUnlockOptions options, CancellationToken token = default) + public virtual async Task ForceUnlock(TerraformForceUnlockOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task Get(TerraformGetOptions options, CancellationToken token = default) + public virtual async Task Get(TerraformGetOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task Graph(TerraformGraphOptions? options = default, CancellationToken token = default) + public virtual async Task Graph(TerraformGraphOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new TerraformGraphOptions(), token); } /// - public async Task Import(TerraformImportOptions options, CancellationToken token = default) + public virtual async Task Import(TerraformImportOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task Init(TerraformInitOptions? options = default, CancellationToken token = default) + public virtual async Task Init(TerraformInitOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new TerraformInitOptions(), token); } /// - public async Task Output(TerraformOutputOptions? options = default, + public virtual async Task Output(TerraformOutputOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new TerraformOutputOptions(), token); } /// - public async Task Plan(TerraformPlanOptions? options = default, CancellationToken token = default) + public virtual async Task Plan(TerraformPlanOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new TerraformPlanOptions(), token); } /// - public async Task Refresh(TerraformRefreshOptions? options = default, + public virtual async Task Refresh(TerraformRefreshOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new TerraformRefreshOptions(), token); } /// - public async Task Show(TerraformShowOptions? options = default, CancellationToken token = default) + public virtual async Task Show(TerraformShowOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new TerraformShowOptions(), token); } /// - public async Task StateCommand(TerraformStateCommandOptions? options = default, + public virtual async Task StateCommand(TerraformStateCommandOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new TerraformStateCommandOptions(), token); } /// - public async Task StateList(TerraformStateListOptions? options = default, + public virtual async Task StateList(TerraformStateListOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new TerraformStateListOptions(), token); } /// - public async Task StateMv(TerraformStateMvOptions options, CancellationToken token = default) + public virtual async Task StateMv(TerraformStateMvOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task StatePush(TerraformStatePushOptions options, CancellationToken token = default) + public virtual async Task StatePush(TerraformStatePushOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task StateReplaceProvider(TerraformStateReplaceProviderOptions options, + public virtual async Task StateReplaceProvider(TerraformStateReplaceProviderOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task StateRm(TerraformStateRmOptions options, CancellationToken token = default) + public virtual async Task StateRm(TerraformStateRmOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task StateShow(TerraformStateShowOptions options, CancellationToken token = default) + public virtual async Task StateShow(TerraformStateShowOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task Taint(TerraformTaintOptions? options = default, CancellationToken token = default) + public virtual async Task Taint(TerraformTaintOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new TerraformTaintOptions(), token); } /// - public async Task ProvidersLock(TerraformTerraformProvidersLockOptions? options = default, + public virtual async Task ProvidersLock(TerraformTerraformProvidersLockOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new TerraformTerraformProvidersLockOptions(), token); } /// - public async Task ProvidersMirror(TerraformTerraformProvidersMirrorOptions? options = default, + public virtual async Task ProvidersMirror(TerraformTerraformProvidersMirrorOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new TerraformTerraformProvidersMirrorOptions(), token); } /// - public async Task ProvidersSchema(TerraformTerraformProvidersSchemaOptions? options = default, + public virtual async Task ProvidersSchema(TerraformTerraformProvidersSchemaOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new TerraformTerraformProvidersSchemaOptions(), token); } /// - public async Task Untaint(TerraformUntaintOptions? options = default, + public virtual async Task Untaint(TerraformUntaintOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new TerraformUntaintOptions(), token); } /// - public async Task Validate(TerraformValidateOptions? options = default, + public virtual async Task Validate(TerraformValidateOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new TerraformValidateOptions(), token); } /// - public async Task Version(TerraformVersionOptions? options = default, + public virtual async Task Version(TerraformVersionOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new TerraformVersionOptions(), token); } /// - public async Task WorkspaceDelete(TerraformWorkspaceDeleteOptions options, + public virtual async Task WorkspaceDelete(TerraformWorkspaceDeleteOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task WorkspaceList(TerraformWorkspaceListOptions? options = default, + public virtual async Task WorkspaceList(TerraformWorkspaceListOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new TerraformWorkspaceListOptions(), token); } /// - public async Task WorkspaceNew(TerraformWorkspaceNewOptions options, + public virtual async Task WorkspaceNew(TerraformWorkspaceNewOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task WorkspaceSelect(TerraformWorkspaceSelectOptions options, + public virtual async Task WorkspaceSelect(TerraformWorkspaceSelectOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); diff --git a/src/ModularPipelines.WinGet/Options/DownloadOptions.cs b/src/ModularPipelines.WinGet/Options/DownloadOptions.cs index d2a448b756..bd51a9680d 100644 --- a/src/ModularPipelines.WinGet/Options/DownloadOptions.cs +++ b/src/ModularPipelines.WinGet/Options/DownloadOptions.cs @@ -10,62 +10,62 @@ public record DownloadOptions( ) : WingetOptions { [CommandSwitch("--download-directory")] - public string? DownloadDirectory { get; set; } + public virtual string? DownloadDirectory { get; set; } [CommandSwitch("--manifest")] - public string? Manifest { get; set; } + public virtual string? Manifest { get; set; } [CommandSwitch("--id")] - public string? Id { get; set; } + public virtual string? Id { get; set; } [CommandSwitch("--name")] - public string? Name { get; set; } + public virtual string? Name { get; set; } [CommandSwitch("--moniker")] - public string? Moniker { get; set; } + public virtual string? Moniker { get; set; } [BooleanCommandSwitch("--version")] - public bool? Version { get; set; } + public virtual bool? Version { get; set; } [CommandSwitch("--source")] - public string? Source { get; set; } + public virtual string? Source { get; set; } [CommandSwitch("--scope")] - public string? Scope { get; set; } + public virtual string? Scope { get; set; } [CommandSwitch("--architecture")] - public string? Architecture { get; set; } + public virtual string? Architecture { get; set; } [CommandSwitch("--installer-type")] - public string? InstallerType { get; set; } + public virtual string? InstallerType { get; set; } [BooleanCommandSwitch("--exact")] - public bool? Exact { get; set; } + public virtual bool? Exact { get; set; } [CommandSwitch("--locale")] - public string? Locale { get; set; } + public virtual string? Locale { get; set; } [CommandSwitch("--log")] - public string? Log { get; set; } + public virtual string? Log { get; set; } [BooleanCommandSwitch("--ignore-security-hash")] - public bool? IgnoreSecurityHash { get; set; } + public virtual bool? IgnoreSecurityHash { get; set; } [BooleanCommandSwitch("--accept-package-agreements")] - public bool? AcceptPackageAgreements { get; set; } + public virtual bool? AcceptPackageAgreements { get; set; } [CommandSwitch("--accept-source-agreements")] - public string? AcceptSourceAgreements { get; set; } + public virtual string? AcceptSourceAgreements { get; set; } [BooleanCommandSwitch("--wait")] - public bool? Wait { get; set; } + public virtual bool? Wait { get; set; } [BooleanCommandSwitch("--open-logs")] - public bool? OpenLogs { get; set; } + public virtual bool? OpenLogs { get; set; } [BooleanCommandSwitch("--verbose-logs")] - public bool? VerboseLogs { get; set; } + public virtual bool? VerboseLogs { get; set; } [BooleanCommandSwitch("--disable-interactivity")] - public bool? DisableInteractivity { get; set; } + public virtual bool? DisableInteractivity { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.WinGet/Options/ExportOptions.cs b/src/ModularPipelines.WinGet/Options/ExportOptions.cs index 85132f38c3..c7d308a08f 100644 --- a/src/ModularPipelines.WinGet/Options/ExportOptions.cs +++ b/src/ModularPipelines.WinGet/Options/ExportOptions.cs @@ -10,23 +10,23 @@ public record ExportOptions( ) : WingetOptions { [CommandSwitch("--source")] - public string? Source { get; set; } + public virtual string? Source { get; set; } [BooleanCommandSwitch("--include-versions")] - public bool? IncludeVersions { get; set; } + public virtual bool? IncludeVersions { get; set; } [CommandSwitch("--accept-source-agreements")] - public string? AcceptSourceAgreements { get; set; } + public virtual string? AcceptSourceAgreements { get; set; } [BooleanCommandSwitch("--wait")] - public bool? Wait { get; set; } + public virtual bool? Wait { get; set; } [BooleanCommandSwitch("--open-logs")] - public bool? OpenLogs { get; set; } + public virtual bool? OpenLogs { get; set; } [BooleanCommandSwitch("--verbose-logs")] - public bool? VerboseLogs { get; set; } + public virtual bool? VerboseLogs { get; set; } [BooleanCommandSwitch("--disable-interactivity")] - public bool? DisableInteractivity { get; set; } + public virtual bool? DisableInteractivity { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.WinGet/Options/HashOptions.cs b/src/ModularPipelines.WinGet/Options/HashOptions.cs index fc66eb5b64..dd88e7974f 100644 --- a/src/ModularPipelines.WinGet/Options/HashOptions.cs +++ b/src/ModularPipelines.WinGet/Options/HashOptions.cs @@ -10,17 +10,17 @@ public record HashOptions( ) : WingetOptions { [BooleanCommandSwitch("--msix")] - public bool? Msix { get; set; } + public virtual bool? Msix { get; set; } [BooleanCommandSwitch("--wait")] - public bool? Wait { get; set; } + public virtual bool? Wait { get; set; } [BooleanCommandSwitch("--open-logs")] - public bool? OpenLogs { get; set; } + public virtual bool? OpenLogs { get; set; } [BooleanCommandSwitch("--verbose-logs")] - public bool? VerboseLogs { get; set; } + public virtual bool? VerboseLogs { get; set; } [BooleanCommandSwitch("--disable-interactivity")] - public bool? DisableInteractivity { get; set; } + public virtual bool? DisableInteractivity { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.WinGet/Options/ImportOptions.cs b/src/ModularPipelines.WinGet/Options/ImportOptions.cs index 04930b7630..c4d41695a5 100644 --- a/src/ModularPipelines.WinGet/Options/ImportOptions.cs +++ b/src/ModularPipelines.WinGet/Options/ImportOptions.cs @@ -10,29 +10,29 @@ public record ImportOptions( ) : WingetOptions { [BooleanCommandSwitch("--ignore-unavailable")] - public bool? IgnoreUnavailable { get; set; } + public virtual bool? IgnoreUnavailable { get; set; } [BooleanCommandSwitch("--ignore-versions")] - public bool? IgnoreVersions { get; set; } + public virtual bool? IgnoreVersions { get; set; } [BooleanCommandSwitch("--no-upgrade")] - public bool? NoUpgrade { get; set; } + public virtual bool? NoUpgrade { get; set; } [BooleanCommandSwitch("--accept-package-agreements")] - public bool? AcceptPackageAgreements { get; set; } + public virtual bool? AcceptPackageAgreements { get; set; } [CommandSwitch("--accept-source-agreements")] - public string? AcceptSourceAgreements { get; set; } + public virtual string? AcceptSourceAgreements { get; set; } [BooleanCommandSwitch("--wait")] - public bool? Wait { get; set; } + public virtual bool? Wait { get; set; } [BooleanCommandSwitch("--open-logs")] - public bool? OpenLogs { get; set; } + public virtual bool? OpenLogs { get; set; } [BooleanCommandSwitch("--verbose-logs")] - public bool? VerboseLogs { get; set; } + public virtual bool? VerboseLogs { get; set; } [BooleanCommandSwitch("--disable-interactivity")] - public bool? DisableInteractivity { get; set; } + public virtual bool? DisableInteractivity { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.WinGet/Options/InstallOptions.cs b/src/ModularPipelines.WinGet/Options/InstallOptions.cs index 21f3988c73..e7e6e41fa4 100644 --- a/src/ModularPipelines.WinGet/Options/InstallOptions.cs +++ b/src/ModularPipelines.WinGet/Options/InstallOptions.cs @@ -10,95 +10,95 @@ public record InstallOptions( ) : WingetOptions { [CommandSwitch("--manifest")] - public string? Manifest { get; set; } + public virtual string? Manifest { get; set; } [CommandSwitch("--id")] - public string? Id { get; set; } + public virtual string? Id { get; set; } [CommandSwitch("--name")] - public string? Name { get; set; } + public virtual string? Name { get; set; } [CommandSwitch("--moniker")] - public string? Moniker { get; set; } + public virtual string? Moniker { get; set; } [BooleanCommandSwitch("--version")] - public bool? Version { get; set; } + public virtual bool? Version { get; set; } [CommandSwitch("--source")] - public string? Source { get; set; } + public virtual string? Source { get; set; } [CommandSwitch("--scope")] - public string? Scope { get; set; } + public virtual string? Scope { get; set; } [CommandSwitch("--architecture")] - public string? Architecture { get; set; } + public virtual string? Architecture { get; set; } [CommandSwitch("--installer-type")] - public string? InstallerType { get; set; } + public virtual string? InstallerType { get; set; } [BooleanCommandSwitch("--exact")] - public bool? Exact { get; set; } + public virtual bool? Exact { get; set; } [BooleanCommandSwitch("--interactive")] - public bool? Interactive { get; set; } + public virtual bool? Interactive { get; set; } [BooleanCommandSwitch("--silent")] - public bool? Silent { get; set; } = true; + public virtual bool? Silent { get; set; } = true; [CommandSwitch("--locale")] - public string? Locale { get; set; } + public virtual string? Locale { get; set; } [CommandSwitch("--log")] - public string? Log { get; set; } + public virtual string? Log { get; set; } [CommandSwitch("--custom")] - public string[]? Custom { get; set; } + public virtual string[]? Custom { get; set; } [CommandSwitch("--override")] - public string? Override { get; set; } + public virtual string? Override { get; set; } [CommandSwitch("--location")] - public string? Location { get; set; } + public virtual string? Location { get; set; } [BooleanCommandSwitch("--ignore-security-hash")] - public bool? IgnoreSecurityHash { get; set; } + public virtual bool? IgnoreSecurityHash { get; set; } [BooleanCommandSwitch("--ignore-local-archive-malware-scan")] - public bool? IgnoreLocalArchiveMalwareScan { get; set; } + public virtual bool? IgnoreLocalArchiveMalwareScan { get; set; } [CommandSwitch("--dependency-source")] - public string? DependencySource { get; set; } + public virtual string? DependencySource { get; set; } [BooleanCommandSwitch("--accept-package-agreements")] - public bool? AcceptPackageAgreements { get; set; } + public virtual bool? AcceptPackageAgreements { get; set; } [CommandSwitch("--accept-source-agreements")] - public string? AcceptSourceAgreements { get; set; } + public virtual string? AcceptSourceAgreements { get; set; } [BooleanCommandSwitch("--no-upgrade")] - public bool? NoUpgrade { get; set; } + public virtual bool? NoUpgrade { get; set; } [CommandSwitch("--header")] - public string? Header { get; set; } + public virtual string? Header { get; set; } [CommandSwitch("--rename")] - public string? Rename { get; set; } + public virtual string? Rename { get; set; } [BooleanCommandSwitch("--uninstall-previous")] - public bool? UninstallPrevious { get; set; } + public virtual bool? UninstallPrevious { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [BooleanCommandSwitch("--wait")] - public bool? Wait { get; set; } + public virtual bool? Wait { get; set; } [BooleanCommandSwitch("--open-logs")] - public bool? OpenLogs { get; set; } + public virtual bool? OpenLogs { get; set; } [BooleanCommandSwitch("--verbose-logs")] - public bool? VerboseLogs { get; set; } + public virtual bool? VerboseLogs { get; set; } [BooleanCommandSwitch("--disable-interactivity")] - public bool? DisableInteractivity { get; set; } + public virtual bool? DisableInteractivity { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.WinGet/Options/ListOptions.cs b/src/ModularPipelines.WinGet/Options/ListOptions.cs index 5081828275..de29f5a30b 100644 --- a/src/ModularPipelines.WinGet/Options/ListOptions.cs +++ b/src/ModularPipelines.WinGet/Options/ListOptions.cs @@ -10,50 +10,50 @@ public record ListOptions( ) : WingetOptions { [CommandSwitch("--id")] - public string? Id { get; set; } + public virtual string? Id { get; set; } [CommandSwitch("--name")] - public string? Name { get; set; } + public virtual string? Name { get; set; } [CommandSwitch("--moniker")] - public string? Moniker { get; set; } + public virtual string? Moniker { get; set; } [CommandSwitch("--source")] - public string? Source { get; set; } + public virtual string? Source { get; set; } [BooleanCommandSwitch("--tag")] - public bool? Tag { get; set; } + public virtual bool? Tag { get; set; } [BooleanCommandSwitch("--command")] - public bool? Command { get; set; } + public virtual bool? Command { get; set; } [BooleanCommandSwitch("--count")] - public bool? Count { get; set; } + public virtual bool? Count { get; set; } [BooleanCommandSwitch("--exact")] - public bool? Exact { get; set; } + public virtual bool? Exact { get; set; } [CommandSwitch("--scope")] - public string? Scope { get; set; } + public virtual string? Scope { get; set; } [CommandSwitch("--header")] - public string? Header { get; set; } + public virtual string? Header { get; set; } [CommandSwitch("--accept-source-agreements")] - public string? AcceptSourceAgreements { get; set; } + public virtual string? AcceptSourceAgreements { get; set; } [BooleanCommandSwitch("--upgrade-available")] - public bool? UpgradeAvailable { get; set; } + public virtual bool? UpgradeAvailable { get; set; } [BooleanCommandSwitch("--wait")] - public bool? Wait { get; set; } + public virtual bool? Wait { get; set; } [BooleanCommandSwitch("--open-logs")] - public bool? OpenLogs { get; set; } + public virtual bool? OpenLogs { get; set; } [BooleanCommandSwitch("--verbose-logs")] - public bool? VerboseLogs { get; set; } + public virtual bool? VerboseLogs { get; set; } [BooleanCommandSwitch("--disable-interactivity")] - public bool? DisableInteractivity { get; set; } + public virtual bool? DisableInteractivity { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.WinGet/Options/PinOptions.cs b/src/ModularPipelines.WinGet/Options/PinOptions.cs index b289a41d00..ce754c9c37 100644 --- a/src/ModularPipelines.WinGet/Options/PinOptions.cs +++ b/src/ModularPipelines.WinGet/Options/PinOptions.cs @@ -8,14 +8,14 @@ namespace ModularPipelines.WinGet.Options; public record PinOptions : WingetOptions { [BooleanCommandSwitch("--wait")] - public bool? Wait { get; set; } + public virtual bool? Wait { get; set; } [BooleanCommandSwitch("--open-logs")] - public bool? OpenLogs { get; set; } + public virtual bool? OpenLogs { get; set; } [BooleanCommandSwitch("--verbose-logs")] - public bool? VerboseLogs { get; set; } + public virtual bool? VerboseLogs { get; set; } [BooleanCommandSwitch("--disable-interactivity")] - public bool? DisableInteractivity { get; set; } + public virtual bool? DisableInteractivity { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.WinGet/Options/ShowOptions.cs b/src/ModularPipelines.WinGet/Options/ShowOptions.cs index 7dc1b41527..0b233d9bc4 100644 --- a/src/ModularPipelines.WinGet/Options/ShowOptions.cs +++ b/src/ModularPipelines.WinGet/Options/ShowOptions.cs @@ -10,56 +10,56 @@ public record ShowOptions( ) : WingetOptions { [CommandSwitch("--manifest")] - public string? Manifest { get; set; } + public virtual string? Manifest { get; set; } [CommandSwitch("--id")] - public string? Id { get; set; } + public virtual string? Id { get; set; } [CommandSwitch("--name")] - public string? Name { get; set; } + public virtual string? Name { get; set; } [CommandSwitch("--moniker")] - public string? Moniker { get; set; } + public virtual string? Moniker { get; set; } [BooleanCommandSwitch("--version")] - public bool? Version { get; set; } + public virtual bool? Version { get; set; } [CommandSwitch("--source")] - public string? Source { get; set; } + public virtual string? Source { get; set; } [BooleanCommandSwitch("--exact")] - public bool? Exact { get; set; } + public virtual bool? Exact { get; set; } [CommandSwitch("--scope")] - public string? Scope { get; set; } + public virtual string? Scope { get; set; } [CommandSwitch("--architecture")] - public string? Architecture { get; set; } + public virtual string? Architecture { get; set; } [CommandSwitch("--installer-type")] - public string? InstallerType { get; set; } + public virtual string? InstallerType { get; set; } [CommandSwitch("--locale")] - public string? Locale { get; set; } + public virtual string? Locale { get; set; } [BooleanCommandSwitch("--versions")] - public bool? Versions { get; set; } + public virtual bool? Versions { get; set; } [CommandSwitch("--header")] - public string? Header { get; set; } + public virtual string? Header { get; set; } [CommandSwitch("--accept-source-agreements")] - public string? AcceptSourceAgreements { get; set; } + public virtual string? AcceptSourceAgreements { get; set; } [BooleanCommandSwitch("--wait")] - public bool? Wait { get; set; } + public virtual bool? Wait { get; set; } [BooleanCommandSwitch("--open-logs")] - public bool? OpenLogs { get; set; } + public virtual bool? OpenLogs { get; set; } [BooleanCommandSwitch("--verbose-logs")] - public bool? VerboseLogs { get; set; } + public virtual bool? VerboseLogs { get; set; } [BooleanCommandSwitch("--disable-interactivity")] - public bool? DisableInteractivity { get; set; } + public virtual bool? DisableInteractivity { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.WinGet/Options/SourceAddOptions.cs b/src/ModularPipelines.WinGet/Options/SourceAddOptions.cs index 719211bd95..d661724f32 100644 --- a/src/ModularPipelines.WinGet/Options/SourceAddOptions.cs +++ b/src/ModularPipelines.WinGet/Options/SourceAddOptions.cs @@ -12,20 +12,20 @@ public record SourceAddOptions( ) : WingetOptions { [CommandSwitch("--header")] - public string? Header { get; set; } + public virtual string? Header { get; set; } [CommandSwitch("--accept-source-agreements")] - public string? AcceptSourceAgreements { get; set; } + public virtual string? AcceptSourceAgreements { get; set; } [BooleanCommandSwitch("--wait")] - public bool? Wait { get; set; } + public virtual bool? Wait { get; set; } [BooleanCommandSwitch("--open-logs")] - public bool? OpenLogs { get; set; } + public virtual bool? OpenLogs { get; set; } [BooleanCommandSwitch("--verbose-logs")] - public bool? VerboseLogs { get; set; } + public virtual bool? VerboseLogs { get; set; } [BooleanCommandSwitch("--disable-interactivity")] - public bool? DisableInteractivity { get; set; } + public virtual bool? DisableInteractivity { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.WinGet/Options/SourceExportOptions.cs b/src/ModularPipelines.WinGet/Options/SourceExportOptions.cs index bce8761c6d..476503042d 100644 --- a/src/ModularPipelines.WinGet/Options/SourceExportOptions.cs +++ b/src/ModularPipelines.WinGet/Options/SourceExportOptions.cs @@ -10,14 +10,14 @@ public record SourceExportOptions( ) : WingetOptions { [BooleanCommandSwitch("--wait")] - public bool? Wait { get; set; } + public virtual bool? Wait { get; set; } [BooleanCommandSwitch("--open-logs")] - public bool? OpenLogs { get; set; } + public virtual bool? OpenLogs { get; set; } [BooleanCommandSwitch("--verbose-logs")] - public bool? VerboseLogs { get; set; } + public virtual bool? VerboseLogs { get; set; } [BooleanCommandSwitch("--disable-interactivity")] - public bool? DisableInteractivity { get; set; } + public virtual bool? DisableInteractivity { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.WinGet/Options/SourceListOptions.cs b/src/ModularPipelines.WinGet/Options/SourceListOptions.cs index 15972f4009..4cc4198198 100644 --- a/src/ModularPipelines.WinGet/Options/SourceListOptions.cs +++ b/src/ModularPipelines.WinGet/Options/SourceListOptions.cs @@ -10,14 +10,14 @@ public record SourceListOptions( ) : WingetOptions { [BooleanCommandSwitch("--wait")] - public bool? Wait { get; set; } + public virtual bool? Wait { get; set; } [BooleanCommandSwitch("--open-logs")] - public bool? OpenLogs { get; set; } + public virtual bool? OpenLogs { get; set; } [BooleanCommandSwitch("--verbose-logs")] - public bool? VerboseLogs { get; set; } + public virtual bool? VerboseLogs { get; set; } [BooleanCommandSwitch("--disable-interactivity")] - public bool? DisableInteractivity { get; set; } + public virtual bool? DisableInteractivity { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.WinGet/Options/SourceRemoveOptions.cs b/src/ModularPipelines.WinGet/Options/SourceRemoveOptions.cs index 12d3b472d9..2714cbd8c1 100644 --- a/src/ModularPipelines.WinGet/Options/SourceRemoveOptions.cs +++ b/src/ModularPipelines.WinGet/Options/SourceRemoveOptions.cs @@ -10,14 +10,14 @@ public record SourceRemoveOptions( ) : WingetOptions { [BooleanCommandSwitch("--wait")] - public bool? Wait { get; set; } + public virtual bool? Wait { get; set; } [BooleanCommandSwitch("--open-logs")] - public bool? OpenLogs { get; set; } + public virtual bool? OpenLogs { get; set; } [BooleanCommandSwitch("--verbose-logs")] - public bool? VerboseLogs { get; set; } + public virtual bool? VerboseLogs { get; set; } [BooleanCommandSwitch("--disable-interactivity")] - public bool? DisableInteractivity { get; set; } + public virtual bool? DisableInteractivity { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.WinGet/Options/SourceResetOptions.cs b/src/ModularPipelines.WinGet/Options/SourceResetOptions.cs index cc63800296..683a0c6b29 100644 --- a/src/ModularPipelines.WinGet/Options/SourceResetOptions.cs +++ b/src/ModularPipelines.WinGet/Options/SourceResetOptions.cs @@ -10,14 +10,14 @@ public record SourceResetOptions( ) : WingetOptions { [BooleanCommandSwitch("--wait")] - public bool? Wait { get; set; } + public virtual bool? Wait { get; set; } [BooleanCommandSwitch("--open-logs")] - public bool? OpenLogs { get; set; } + public virtual bool? OpenLogs { get; set; } [BooleanCommandSwitch("--verbose-logs")] - public bool? VerboseLogs { get; set; } + public virtual bool? VerboseLogs { get; set; } [BooleanCommandSwitch("--disable-interactivity")] - public bool? DisableInteractivity { get; set; } + public virtual bool? DisableInteractivity { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.WinGet/Options/SourceUpdateOptions.cs b/src/ModularPipelines.WinGet/Options/SourceUpdateOptions.cs index 768de1ab16..f5e062283d 100644 --- a/src/ModularPipelines.WinGet/Options/SourceUpdateOptions.cs +++ b/src/ModularPipelines.WinGet/Options/SourceUpdateOptions.cs @@ -10,14 +10,14 @@ public record SourceUpdateOptions( ) : WingetOptions { [BooleanCommandSwitch("--wait")] - public bool? Wait { get; set; } + public virtual bool? Wait { get; set; } [BooleanCommandSwitch("--open-logs")] - public bool? OpenLogs { get; set; } + public virtual bool? OpenLogs { get; set; } [BooleanCommandSwitch("--verbose-logs")] - public bool? VerboseLogs { get; set; } + public virtual bool? VerboseLogs { get; set; } [BooleanCommandSwitch("--disable-interactivity")] - public bool? DisableInteractivity { get; set; } + public virtual bool? DisableInteractivity { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.WinGet/Options/UninstallOptions.cs b/src/ModularPipelines.WinGet/Options/UninstallOptions.cs index 84487ebc56..1277756592 100644 --- a/src/ModularPipelines.WinGet/Options/UninstallOptions.cs +++ b/src/ModularPipelines.WinGet/Options/UninstallOptions.cs @@ -10,65 +10,65 @@ public record UninstallOptions( ) : WingetOptions { [CommandSwitch("--manifest")] - public string? Manifest { get; set; } + public virtual string? Manifest { get; set; } [CommandSwitch("--id")] - public string? Id { get; set; } + public virtual string? Id { get; set; } [CommandSwitch("--name")] - public string? Name { get; set; } + public virtual string? Name { get; set; } [CommandSwitch("--moniker")] - public string? Moniker { get; set; } + public virtual string? Moniker { get; set; } [BooleanCommandSwitch("--product-code")] - public bool? ProductCode { get; set; } + public virtual bool? ProductCode { get; set; } [BooleanCommandSwitch("--version")] - public bool? Version { get; set; } + public virtual bool? Version { get; set; } [CommandSwitch("--source")] - public string? Source { get; set; } + public virtual string? Source { get; set; } [BooleanCommandSwitch("--exact")] - public bool? Exact { get; set; } + public virtual bool? Exact { get; set; } [CommandSwitch("--scope")] - public string? Scope { get; set; } + public virtual string? Scope { get; set; } [BooleanCommandSwitch("--interactive")] - public bool? Interactive { get; set; } + public virtual bool? Interactive { get; set; } [BooleanCommandSwitch("--silent")] - public bool? Silent { get; set; } = true; + public virtual bool? Silent { get; set; } = true; [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [BooleanCommandSwitch("--purge")] - public bool? Purge { get; set; } + public virtual bool? Purge { get; set; } [BooleanCommandSwitch("--preserve")] - public bool? Preserve { get; set; } + public virtual bool? Preserve { get; set; } [CommandSwitch("--log")] - public string? Log { get; set; } + public virtual string? Log { get; set; } [CommandSwitch("--header")] - public string? Header { get; set; } + public virtual string? Header { get; set; } [CommandSwitch("--accept-source-agreements")] - public string? AcceptSourceAgreements { get; set; } + public virtual string? AcceptSourceAgreements { get; set; } [BooleanCommandSwitch("--wait")] - public bool? Wait { get; set; } + public virtual bool? Wait { get; set; } [BooleanCommandSwitch("--open-logs")] - public bool? OpenLogs { get; set; } + public virtual bool? OpenLogs { get; set; } [BooleanCommandSwitch("--verbose-logs")] - public bool? VerboseLogs { get; set; } + public virtual bool? VerboseLogs { get; set; } [BooleanCommandSwitch("--disable-interactivity")] - public bool? DisableInteractivity { get; set; } + public virtual bool? DisableInteractivity { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.WinGet/Options/UpgradeOptions.cs b/src/ModularPipelines.WinGet/Options/UpgradeOptions.cs index d095d80573..a92809a10c 100644 --- a/src/ModularPipelines.WinGet/Options/UpgradeOptions.cs +++ b/src/ModularPipelines.WinGet/Options/UpgradeOptions.cs @@ -10,98 +10,98 @@ public record UpgradeOptions( ) : WingetOptions { [CommandSwitch("--manifest")] - public string? Manifest { get; set; } + public virtual string? Manifest { get; set; } [CommandSwitch("--id")] - public string? Id { get; set; } + public virtual string? Id { get; set; } [CommandSwitch("--name")] - public string? Name { get; set; } + public virtual string? Name { get; set; } [CommandSwitch("--moniker")] - public string? Moniker { get; set; } + public virtual string? Moniker { get; set; } [BooleanCommandSwitch("--version")] - public bool? Version { get; set; } + public virtual bool? Version { get; set; } [CommandSwitch("--source")] - public string? Source { get; set; } + public virtual string? Source { get; set; } [BooleanCommandSwitch("--exact")] - public bool? Exact { get; set; } + public virtual bool? Exact { get; set; } [BooleanCommandSwitch("--interactive")] - public bool? Interactive { get; set; } + public virtual bool? Interactive { get; set; } [BooleanCommandSwitch("--silent")] - public bool? Silent { get; set; } = true; + public virtual bool? Silent { get; set; } = true; [BooleanCommandSwitch("--purge")] - public bool? Purge { get; set; } + public virtual bool? Purge { get; set; } [CommandSwitch("--log")] - public string? Log { get; set; } + public virtual string? Log { get; set; } [CommandSwitch("--custom")] - public string[]? Custom { get; set; } + public virtual string[]? Custom { get; set; } [CommandSwitch("--override")] - public string? Override { get; set; } + public virtual string? Override { get; set; } [CommandSwitch("--location")] - public string? Location { get; set; } + public virtual string? Location { get; set; } [CommandSwitch("-scope")] - public string? Scope { get; set; } + public virtual string? Scope { get; set; } [CommandSwitch("--architecture")] - public string? Architecture { get; set; } + public virtual string? Architecture { get; set; } [CommandSwitch("--installer-type")] - public string? InstallerType { get; set; } + public virtual string? InstallerType { get; set; } [CommandSwitch("--locale")] - public string? Locale { get; set; } + public virtual string? Locale { get; set; } [BooleanCommandSwitch("--ignore-security-hash")] - public bool? IgnoreSecurityHash { get; set; } + public virtual bool? IgnoreSecurityHash { get; set; } [BooleanCommandSwitch("--ignore-local-archive-malware-scan")] - public bool? IgnoreLocalArchiveMalwareScan { get; set; } + public virtual bool? IgnoreLocalArchiveMalwareScan { get; set; } [BooleanCommandSwitch("--accept-package-agreements")] - public bool? AcceptPackageAgreements { get; set; } + public virtual bool? AcceptPackageAgreements { get; set; } [CommandSwitch("--accept-source-agreements")] - public string? AcceptSourceAgreements { get; set; } + public virtual string? AcceptSourceAgreements { get; set; } [CommandSwitch("--header")] - public string? Header { get; set; } + public virtual string? Header { get; set; } [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } [BooleanCommandSwitch("--include-unknown")] - public bool? IncludeUnknown { get; set; } + public virtual bool? IncludeUnknown { get; set; } [BooleanCommandSwitch("--include-pinned")] - public bool? IncludePinned { get; set; } + public virtual bool? IncludePinned { get; set; } [BooleanCommandSwitch("--uninstall-previous")] - public bool? UninstallPrevious { get; set; } + public virtual bool? UninstallPrevious { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [BooleanCommandSwitch("--wait")] - public bool? Wait { get; set; } + public virtual bool? Wait { get; set; } [BooleanCommandSwitch("--open-logs")] - public bool? OpenLogs { get; set; } + public virtual bool? OpenLogs { get; set; } [BooleanCommandSwitch("--verbose-logs")] - public bool? VerboseLogs { get; set; } + public virtual bool? VerboseLogs { get; set; } [BooleanCommandSwitch("--disable-interactivity")] - public bool? DisableInteractivity { get; set; } + public virtual bool? DisableInteractivity { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.WinGet/Options/ValidateOptions.cs b/src/ModularPipelines.WinGet/Options/ValidateOptions.cs index 9e7799b657..491b391736 100644 --- a/src/ModularPipelines.WinGet/Options/ValidateOptions.cs +++ b/src/ModularPipelines.WinGet/Options/ValidateOptions.cs @@ -10,14 +10,14 @@ public record ValidateOptions( ) : WingetOptions { [BooleanCommandSwitch("--wait")] - public bool? Wait { get; set; } + public virtual bool? Wait { get; set; } [BooleanCommandSwitch("--open-logs")] - public bool? OpenLogs { get; set; } + public virtual bool? OpenLogs { get; set; } [BooleanCommandSwitch("--verbose-logs")] - public bool? VerboseLogs { get; set; } + public virtual bool? VerboseLogs { get; set; } [BooleanCommandSwitch("--disable-interactivity")] - public bool? DisableInteractivity { get; set; } + public virtual bool? DisableInteractivity { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.WinGet/WinGet.cs b/src/ModularPipelines.WinGet/WinGet.cs index 8e2a149b0c..a9645f909a 100644 --- a/src/ModularPipelines.WinGet/WinGet.cs +++ b/src/ModularPipelines.WinGet/WinGet.cs @@ -15,117 +15,117 @@ public WinGet(ICommand command) _command = command; } - public async Task Configure(ConfigureOptions options, CancellationToken token = default) + public virtual async Task Configure(ConfigureOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Download(DownloadOptions options, CancellationToken token = default) + public virtual async Task Download(DownloadOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Export(ExportOptions options, CancellationToken token = default) + public virtual async Task Export(ExportOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Features(FeaturesOptions? options = default, CancellationToken token = default) + public virtual async Task Features(FeaturesOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new FeaturesOptions(), token); } - public async Task Hash(HashOptions options, CancellationToken token = default) + public virtual async Task Hash(HashOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Help(HelpOptions? options = default, CancellationToken token = default) + public virtual async Task Help(HelpOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new HelpOptions(), token); } - public async Task Import(ImportOptions options, CancellationToken token = default) + public virtual async Task Import(ImportOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Info(InfoOptions? options = default, CancellationToken token = default) + public virtual async Task Info(InfoOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new InfoOptions(), token); } - public async Task Install(InstallOptions options, CancellationToken token = default) + public virtual async Task Install(InstallOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task List(ListOptions options, CancellationToken token = default) + public virtual async Task List(ListOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Pin(PinOptions? options = default, CancellationToken token = default) + public virtual async Task Pin(PinOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new PinOptions(), token); } - public async Task Search(SearchOptions options, CancellationToken token = default) + public virtual async Task Search(SearchOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Settings(SettingsOptions? options = default, CancellationToken token = default) + public virtual async Task Settings(SettingsOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new SettingsOptions(), token); } - public async Task Show(ShowOptions options, CancellationToken token = default) + public virtual async Task Show(ShowOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task SourceAdd(SourceAddOptions options, CancellationToken token = default) + public virtual async Task SourceAdd(SourceAddOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task SourceList(SourceListOptions options, CancellationToken token = default) + public virtual async Task SourceList(SourceListOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task SourceUpdate(SourceUpdateOptions options, CancellationToken token = default) + public virtual async Task SourceUpdate(SourceUpdateOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task SourceRemove(SourceRemoveOptions options, CancellationToken token = default) + public virtual async Task SourceRemove(SourceRemoveOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task SourceReset(SourceResetOptions options, CancellationToken token = default) + public virtual async Task SourceReset(SourceResetOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task SourceExport(SourceExportOptions options, CancellationToken token = default) + public virtual async Task SourceExport(SourceExportOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Uninstall(UninstallOptions options, CancellationToken token = default) + public virtual async Task Uninstall(UninstallOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Upgrade(UpgradeOptions options, CancellationToken token = default) + public virtual async Task Upgrade(UpgradeOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Validate(ValidateOptions options, CancellationToken token = default) + public virtual async Task Validate(ValidateOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } diff --git a/src/ModularPipelines.Yarn/Models/YarnAddOptions.cs b/src/ModularPipelines.Yarn/Models/YarnAddOptions.cs index 9100e9cde7..543e0c6734 100644 --- a/src/ModularPipelines.Yarn/Models/YarnAddOptions.cs +++ b/src/ModularPipelines.Yarn/Models/YarnAddOptions.cs @@ -8,38 +8,38 @@ namespace ModularPipelines.Yarn.Models; public record YarnAddOptions : YarnOptions { [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } [BooleanCommandSwitch("--fixed")] - public bool? Fixed { get; set; } + public virtual bool? Fixed { get; set; } [BooleanCommandSwitch("--exact")] - public bool? Exact { get; set; } + public virtual bool? Exact { get; set; } [BooleanCommandSwitch("--tilde")] - public bool? Tilde { get; set; } + public virtual bool? Tilde { get; set; } [BooleanCommandSwitch("--caret")] - public bool? Caret { get; set; } + public virtual bool? Caret { get; set; } [BooleanCommandSwitch("--dev")] - public bool? Dev { get; set; } + public virtual bool? Dev { get; set; } [BooleanCommandSwitch("--peer")] - public bool? Peer { get; set; } + public virtual bool? Peer { get; set; } [BooleanCommandSwitch("--optional")] - public bool? Optional { get; set; } + public virtual bool? Optional { get; set; } [BooleanCommandSwitch("--prefer-dev")] - public bool? PreferDev { get; set; } + public virtual bool? PreferDev { get; set; } [BooleanCommandSwitch("--interactive")] - public bool? Interactive { get; set; } + public virtual bool? Interactive { get; set; } [BooleanCommandSwitch("--cached")] - public bool? Cached { get; set; } + public virtual bool? Cached { get; set; } [CommandSwitch("--mode")] - public string? Mode { get; set; } + public virtual string? Mode { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Yarn/Models/YarnBinOptions.cs b/src/ModularPipelines.Yarn/Models/YarnBinOptions.cs index 80f3a2040c..7fec7a9baa 100644 --- a/src/ModularPipelines.Yarn/Models/YarnBinOptions.cs +++ b/src/ModularPipelines.Yarn/Models/YarnBinOptions.cs @@ -8,10 +8,10 @@ namespace ModularPipelines.Yarn.Models; public record YarnBinOptions : YarnOptions { [BooleanCommandSwitch("--verbose")] - public bool? Verbose { get; set; } + public virtual bool? Verbose { get; set; } [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } [PositionalArgument(Position = Position.BeforeSwitches)] public string? Name { get; set; } diff --git a/src/ModularPipelines.Yarn/Models/YarnCacheCleanOptions.cs b/src/ModularPipelines.Yarn/Models/YarnCacheCleanOptions.cs index 72d630b5c3..2225da2965 100644 --- a/src/ModularPipelines.Yarn/Models/YarnCacheCleanOptions.cs +++ b/src/ModularPipelines.Yarn/Models/YarnCacheCleanOptions.cs @@ -8,8 +8,8 @@ namespace ModularPipelines.Yarn.Models; public record YarnCacheCleanOptions : YarnOptions { [BooleanCommandSwitch("--mirror")] - public bool? Mirror { get; set; } + public virtual bool? Mirror { get; set; } [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Yarn/Models/YarnConfigGetOptions.cs b/src/ModularPipelines.Yarn/Models/YarnConfigGetOptions.cs index 6840c0723f..d39de7cdea 100644 --- a/src/ModularPipelines.Yarn/Models/YarnConfigGetOptions.cs +++ b/src/ModularPipelines.Yarn/Models/YarnConfigGetOptions.cs @@ -10,11 +10,11 @@ public record YarnConfigGetOptions( ) : YarnOptions { [BooleanCommandSwitch("--why")] - public bool? Why { get; set; } + public virtual bool? Why { get; set; } [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } [BooleanCommandSwitch("--no-redacted")] - public bool? NoRedacted { get; set; } + public virtual bool? NoRedacted { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Yarn/Models/YarnConfigOptions.cs b/src/ModularPipelines.Yarn/Models/YarnConfigOptions.cs index 7b40c6e633..c50670033a 100644 --- a/src/ModularPipelines.Yarn/Models/YarnConfigOptions.cs +++ b/src/ModularPipelines.Yarn/Models/YarnConfigOptions.cs @@ -8,8 +8,8 @@ namespace ModularPipelines.Yarn.Models; public record YarnConfigOptions : YarnOptions { [BooleanCommandSwitch("--no-defaults")] - public bool? NoDefaults { get; set; } + public virtual bool? NoDefaults { get; set; } [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Yarn/Models/YarnConfigSetOptions.cs b/src/ModularPipelines.Yarn/Models/YarnConfigSetOptions.cs index cb180faf78..36a3b4e942 100644 --- a/src/ModularPipelines.Yarn/Models/YarnConfigSetOptions.cs +++ b/src/ModularPipelines.Yarn/Models/YarnConfigSetOptions.cs @@ -11,8 +11,8 @@ public record YarnConfigSetOptions( ) : YarnOptions { [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } [BooleanCommandSwitch("--home")] - public bool? Home { get; set; } + public virtual bool? Home { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Yarn/Models/YarnConfigUnsetOptions.cs b/src/ModularPipelines.Yarn/Models/YarnConfigUnsetOptions.cs index 9d016d7d4d..b0097b9041 100644 --- a/src/ModularPipelines.Yarn/Models/YarnConfigUnsetOptions.cs +++ b/src/ModularPipelines.Yarn/Models/YarnConfigUnsetOptions.cs @@ -10,5 +10,5 @@ public record YarnConfigUnsetOptions( ) : YarnOptions { [BooleanCommandSwitch("--home")] - public bool? Home { get; set; } + public virtual bool? Home { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Yarn/Models/YarnConstraintsOptions.cs b/src/ModularPipelines.Yarn/Models/YarnConstraintsOptions.cs index 3622e9ea34..75faea6f37 100644 --- a/src/ModularPipelines.Yarn/Models/YarnConstraintsOptions.cs +++ b/src/ModularPipelines.Yarn/Models/YarnConstraintsOptions.cs @@ -8,8 +8,8 @@ namespace ModularPipelines.Yarn.Models; public record YarnConstraintsOptions : YarnOptions { [BooleanCommandSwitch("--fix")] - public bool? Fix { get; set; } + public virtual bool? Fix { get; set; } [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Yarn/Models/YarnConstraintsQueryOptions.cs b/src/ModularPipelines.Yarn/Models/YarnConstraintsQueryOptions.cs index c09e821181..effd87022f 100644 --- a/src/ModularPipelines.Yarn/Models/YarnConstraintsQueryOptions.cs +++ b/src/ModularPipelines.Yarn/Models/YarnConstraintsQueryOptions.cs @@ -10,5 +10,5 @@ public record YarnConstraintsQueryOptions( ) : YarnOptions { [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Yarn/Models/YarnConstraintsSourceOptions.cs b/src/ModularPipelines.Yarn/Models/YarnConstraintsSourceOptions.cs index 925f11f7c2..f81c593dbf 100644 --- a/src/ModularPipelines.Yarn/Models/YarnConstraintsSourceOptions.cs +++ b/src/ModularPipelines.Yarn/Models/YarnConstraintsSourceOptions.cs @@ -8,5 +8,5 @@ namespace ModularPipelines.Yarn.Models; public record YarnConstraintsSourceOptions : YarnOptions { [BooleanCommandSwitch("--verbose")] - public bool? Verbose { get; set; } + public virtual bool? Verbose { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Yarn/Models/YarnDedupeOptions.cs b/src/ModularPipelines.Yarn/Models/YarnDedupeOptions.cs index 63ec41461b..0fc7bbfc99 100644 --- a/src/ModularPipelines.Yarn/Models/YarnDedupeOptions.cs +++ b/src/ModularPipelines.Yarn/Models/YarnDedupeOptions.cs @@ -8,14 +8,14 @@ namespace ModularPipelines.Yarn.Models; public record YarnDedupeOptions : YarnOptions { [CommandSwitch("--strategy")] - public string? Strategy { get; set; } + public virtual string? Strategy { get; set; } [BooleanCommandSwitch("--check")] - public bool? Check { get; set; } + public virtual bool? Check { get; set; } [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } [CommandSwitch("--mode")] - public string? Mode { get; set; } + public virtual string? Mode { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Yarn/Models/YarnDlxOptions.cs b/src/ModularPipelines.Yarn/Models/YarnDlxOptions.cs index 6d66e0aa10..408b4cef20 100644 --- a/src/ModularPipelines.Yarn/Models/YarnDlxOptions.cs +++ b/src/ModularPipelines.Yarn/Models/YarnDlxOptions.cs @@ -10,8 +10,8 @@ public record YarnDlxOptions( ) : YarnOptions { [CommandSwitch("--package")] - public string? Package { get; set; } + public virtual string? Package { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Yarn/Models/YarnExplainOptions.cs b/src/ModularPipelines.Yarn/Models/YarnExplainOptions.cs index 0d270f79a4..39000e7b9c 100644 --- a/src/ModularPipelines.Yarn/Models/YarnExplainOptions.cs +++ b/src/ModularPipelines.Yarn/Models/YarnExplainOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Yarn.Models; public record YarnExplainOptions : YarnOptions { [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } [PositionalArgument(Position = Position.BeforeSwitches)] public string? Code { get; set; } diff --git a/src/ModularPipelines.Yarn/Models/YarnInfoOptions.cs b/src/ModularPipelines.Yarn/Models/YarnInfoOptions.cs index 58de35b422..1e96cb6561 100644 --- a/src/ModularPipelines.Yarn/Models/YarnInfoOptions.cs +++ b/src/ModularPipelines.Yarn/Models/YarnInfoOptions.cs @@ -8,29 +8,29 @@ namespace ModularPipelines.Yarn.Models; public record YarnInfoOptions : YarnOptions { [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } [BooleanCommandSwitch("--recursive")] - public bool? Recursive { get; set; } + public virtual bool? Recursive { get; set; } [CommandSwitch("--extra")] - public string? Extra { get; set; } + public virtual string? Extra { get; set; } [BooleanCommandSwitch("--cache")] - public bool? Cache { get; set; } + public virtual bool? Cache { get; set; } [BooleanCommandSwitch("--dependents")] - public bool? Dependents { get; set; } + public virtual bool? Dependents { get; set; } [BooleanCommandSwitch("--manifest")] - public bool? Manifest { get; set; } + public virtual bool? Manifest { get; set; } [BooleanCommandSwitch("--name-only")] - public bool? NameOnly { get; set; } + public virtual bool? NameOnly { get; set; } [BooleanCommandSwitch("--virtuals")] - public bool? Virtuals { get; set; } + public virtual bool? Virtuals { get; set; } [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Yarn/Models/YarnInitOptions.cs b/src/ModularPipelines.Yarn/Models/YarnInitOptions.cs index 79484435e7..7b2019b645 100644 --- a/src/ModularPipelines.Yarn/Models/YarnInitOptions.cs +++ b/src/ModularPipelines.Yarn/Models/YarnInitOptions.cs @@ -8,14 +8,14 @@ namespace ModularPipelines.Yarn.Models; public record YarnInitOptions : YarnOptions { [BooleanCommandSwitch("--private")] - public bool? Private { get; set; } + public virtual bool? Private { get; set; } [BooleanCommandSwitch("--workspace")] - public bool? Workspace { get; set; } + public virtual bool? Workspace { get; set; } [BooleanCommandSwitch("--install")] - public bool? Install { get; set; } + public virtual bool? Install { get; set; } [CommandSwitch("--name")] - public string? Name { get; set; } + public virtual string? Name { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Yarn/Models/YarnInstallOptions.cs b/src/ModularPipelines.Yarn/Models/YarnInstallOptions.cs index d54187556e..07130425c6 100644 --- a/src/ModularPipelines.Yarn/Models/YarnInstallOptions.cs +++ b/src/ModularPipelines.Yarn/Models/YarnInstallOptions.cs @@ -8,26 +8,26 @@ namespace ModularPipelines.Yarn.Models; public record YarnInstallOptions : YarnOptions { [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } [BooleanCommandSwitch("--immutable")] - public bool? Immutable { get; set; } + public virtual bool? Immutable { get; set; } [BooleanCommandSwitch("--immutable-cache")] - public bool? ImmutableCache { get; set; } + public virtual bool? ImmutableCache { get; set; } [BooleanCommandSwitch("--refresh-lockfile")] - public bool? RefreshLockfile { get; set; } + public virtual bool? RefreshLockfile { get; set; } [BooleanCommandSwitch("--check-cache")] - public bool? CheckCache { get; set; } + public virtual bool? CheckCache { get; set; } [BooleanCommandSwitch("--check-resolutions")] - public bool? CheckResolutions { get; set; } + public virtual bool? CheckResolutions { get; set; } [BooleanCommandSwitch("--inline-builds")] - public bool? InlineBuilds { get; set; } + public virtual bool? InlineBuilds { get; set; } [CommandSwitch("--mode")] - public string? Mode { get; set; } + public virtual string? Mode { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Yarn/Models/YarnLinkOptions.cs b/src/ModularPipelines.Yarn/Models/YarnLinkOptions.cs index a5de3e5170..1c8d5232ed 100644 --- a/src/ModularPipelines.Yarn/Models/YarnLinkOptions.cs +++ b/src/ModularPipelines.Yarn/Models/YarnLinkOptions.cs @@ -8,11 +8,11 @@ namespace ModularPipelines.Yarn.Models; public record YarnLinkOptions : YarnOptions { [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } [BooleanCommandSwitch("--private")] - public bool? Private { get; set; } + public virtual bool? Private { get; set; } [BooleanCommandSwitch("--relative")] - public bool? Relative { get; set; } + public virtual bool? Relative { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Yarn/Models/YarnNpmAuditOptions.cs b/src/ModularPipelines.Yarn/Models/YarnNpmAuditOptions.cs index 9538db301b..8d00a43973 100644 --- a/src/ModularPipelines.Yarn/Models/YarnNpmAuditOptions.cs +++ b/src/ModularPipelines.Yarn/Models/YarnNpmAuditOptions.cs @@ -8,26 +8,26 @@ namespace ModularPipelines.Yarn.Models; public record YarnNpmAuditOptions : YarnOptions { [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } [BooleanCommandSwitch("--recursive")] - public bool? Recursive { get; set; } + public virtual bool? Recursive { get; set; } [CommandSwitch("--environment")] - public string? Environment { get; set; } + public virtual string? Environment { get; set; } [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } [BooleanCommandSwitch("--no-deprecations")] - public bool? NoDeprecations { get; set; } + public virtual bool? NoDeprecations { get; set; } [CommandSwitch("--severity")] - public string? Severity { get; set; } + public virtual string? Severity { get; set; } [CommandSwitch("--exclude")] - public string? Exclude { get; set; } + public virtual string? Exclude { get; set; } [CommandSwitch("--ignore")] - public string? Ignore { get; set; } + public virtual string? Ignore { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Yarn/Models/YarnNpmInfoOptions.cs b/src/ModularPipelines.Yarn/Models/YarnNpmInfoOptions.cs index 6d4a2cea93..51b73f93df 100644 --- a/src/ModularPipelines.Yarn/Models/YarnNpmInfoOptions.cs +++ b/src/ModularPipelines.Yarn/Models/YarnNpmInfoOptions.cs @@ -8,8 +8,8 @@ namespace ModularPipelines.Yarn.Models; public record YarnNpmInfoOptions : YarnOptions { [CommandSwitch("--fields")] - public string? Fields { get; set; } + public virtual string? Fields { get; set; } [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Yarn/Models/YarnNpmLoginOptions.cs b/src/ModularPipelines.Yarn/Models/YarnNpmLoginOptions.cs index 44b3c20e8e..0da55b603e 100644 --- a/src/ModularPipelines.Yarn/Models/YarnNpmLoginOptions.cs +++ b/src/ModularPipelines.Yarn/Models/YarnNpmLoginOptions.cs @@ -8,11 +8,11 @@ namespace ModularPipelines.Yarn.Models; public record YarnNpmLoginOptions : YarnOptions { [CommandSwitch("--scope")] - public string? Scope { get; set; } + public virtual string? Scope { get; set; } [BooleanCommandSwitch("--publish")] - public bool? Publish { get; set; } + public virtual bool? Publish { get; set; } [BooleanCommandSwitch("--always-auth")] - public bool? AlwaysAuth { get; set; } + public virtual bool? AlwaysAuth { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Yarn/Models/YarnNpmLogoutOptions.cs b/src/ModularPipelines.Yarn/Models/YarnNpmLogoutOptions.cs index 21a906943e..fb16536c51 100644 --- a/src/ModularPipelines.Yarn/Models/YarnNpmLogoutOptions.cs +++ b/src/ModularPipelines.Yarn/Models/YarnNpmLogoutOptions.cs @@ -8,11 +8,11 @@ namespace ModularPipelines.Yarn.Models; public record YarnNpmLogoutOptions : YarnOptions { [CommandSwitch("--scope")] - public string? Scope { get; set; } + public virtual string? Scope { get; set; } [BooleanCommandSwitch("--publish")] - public bool? Publish { get; set; } + public virtual bool? Publish { get; set; } [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Yarn/Models/YarnNpmPublishOptions.cs b/src/ModularPipelines.Yarn/Models/YarnNpmPublishOptions.cs index 5927c1b751..eec5001215 100644 --- a/src/ModularPipelines.Yarn/Models/YarnNpmPublishOptions.cs +++ b/src/ModularPipelines.Yarn/Models/YarnNpmPublishOptions.cs @@ -8,14 +8,14 @@ namespace ModularPipelines.Yarn.Models; public record YarnNpmPublishOptions : YarnOptions { [CommandSwitch("--access")] - public string? Access { get; set; } + public virtual string? Access { get; set; } [CommandSwitch("--tag")] - public string? Tag { get; set; } + public virtual string? Tag { get; set; } [BooleanCommandSwitch("--tolerate-republish")] - public bool? TolerateRepublish { get; set; } + public virtual bool? TolerateRepublish { get; set; } [CommandSwitch("--otp")] - public string? Otp { get; set; } + public virtual string? Otp { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Yarn/Models/YarnNpmTagListOptions.cs b/src/ModularPipelines.Yarn/Models/YarnNpmTagListOptions.cs index 3e2044af1e..f9399cbd25 100644 --- a/src/ModularPipelines.Yarn/Models/YarnNpmTagListOptions.cs +++ b/src/ModularPipelines.Yarn/Models/YarnNpmTagListOptions.cs @@ -8,7 +8,7 @@ namespace ModularPipelines.Yarn.Models; public record YarnNpmTagListOptions : YarnOptions { [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } [PositionalArgument(Position = Position.BeforeSwitches)] public string? Package { get; set; } diff --git a/src/ModularPipelines.Yarn/Models/YarnNpmWhoamiOptions.cs b/src/ModularPipelines.Yarn/Models/YarnNpmWhoamiOptions.cs index e838345ed6..26d18a19a9 100644 --- a/src/ModularPipelines.Yarn/Models/YarnNpmWhoamiOptions.cs +++ b/src/ModularPipelines.Yarn/Models/YarnNpmWhoamiOptions.cs @@ -8,8 +8,8 @@ namespace ModularPipelines.Yarn.Models; public record YarnNpmWhoamiOptions : YarnOptions { [CommandSwitch("--scope")] - public string? Scope { get; set; } + public virtual string? Scope { get; set; } [BooleanCommandSwitch("--publish")] - public bool? Publish { get; set; } + public virtual bool? Publish { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Yarn/Models/YarnPackOptions.cs b/src/ModularPipelines.Yarn/Models/YarnPackOptions.cs index 6766894786..cffd4713ff 100644 --- a/src/ModularPipelines.Yarn/Models/YarnPackOptions.cs +++ b/src/ModularPipelines.Yarn/Models/YarnPackOptions.cs @@ -8,14 +8,14 @@ namespace ModularPipelines.Yarn.Models; public record YarnPackOptions : YarnOptions { [BooleanCommandSwitch("--install-if-needed")] - public bool? InstallIfNeeded { get; set; } + public virtual bool? InstallIfNeeded { get; set; } [BooleanCommandSwitch("--dry-run")] - public bool? DryRun { get; set; } + public virtual bool? DryRun { get; set; } [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } [CommandSwitch("--out")] - public string? Out { get; set; } + public virtual string? Out { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Yarn/Models/YarnPatchCommitOptions.cs b/src/ModularPipelines.Yarn/Models/YarnPatchCommitOptions.cs index 4717577e80..516f371f8f 100644 --- a/src/ModularPipelines.Yarn/Models/YarnPatchCommitOptions.cs +++ b/src/ModularPipelines.Yarn/Models/YarnPatchCommitOptions.cs @@ -10,5 +10,5 @@ public record YarnPatchCommitOptions( ) : YarnOptions { [BooleanCommandSwitch("--save")] - public bool? Save { get; set; } + public virtual bool? Save { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Yarn/Models/YarnPatchOptions.cs b/src/ModularPipelines.Yarn/Models/YarnPatchOptions.cs index 4bca3e217b..a57e9863ab 100644 --- a/src/ModularPipelines.Yarn/Models/YarnPatchOptions.cs +++ b/src/ModularPipelines.Yarn/Models/YarnPatchOptions.cs @@ -10,8 +10,8 @@ public record YarnPatchOptions( ) : YarnOptions { [BooleanCommandSwitch("--update")] - public bool? Update { get; set; } + public virtual bool? Update { get; set; } [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Yarn/Models/YarnPluginCheckOptions.cs b/src/ModularPipelines.Yarn/Models/YarnPluginCheckOptions.cs index 095721ed94..c9278df1fe 100644 --- a/src/ModularPipelines.Yarn/Models/YarnPluginCheckOptions.cs +++ b/src/ModularPipelines.Yarn/Models/YarnPluginCheckOptions.cs @@ -8,5 +8,5 @@ namespace ModularPipelines.Yarn.Models; public record YarnPluginCheckOptions : YarnOptions { [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Yarn/Models/YarnPluginImportFromSourcesOptions.cs b/src/ModularPipelines.Yarn/Models/YarnPluginImportFromSourcesOptions.cs index 9703481f61..0a5aabd36e 100644 --- a/src/ModularPipelines.Yarn/Models/YarnPluginImportFromSourcesOptions.cs +++ b/src/ModularPipelines.Yarn/Models/YarnPluginImportFromSourcesOptions.cs @@ -10,17 +10,17 @@ public record YarnPluginImportFromSourcesOptions( ) : YarnOptions { [CommandSwitch("--path")] - public string? Path { get; set; } + public virtual string? Path { get; set; } [CommandSwitch("--repository")] - public string? Repository { get; set; } + public virtual string? Repository { get; set; } [CommandSwitch("--branch")] - public string? Branch { get; set; } + public virtual string? Branch { get; set; } [BooleanCommandSwitch("--no-minify")] - public bool? NoMinify { get; set; } + public virtual bool? NoMinify { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Yarn/Models/YarnPluginImportOptions.cs b/src/ModularPipelines.Yarn/Models/YarnPluginImportOptions.cs index b4fbe6f345..59c7dc81f9 100644 --- a/src/ModularPipelines.Yarn/Models/YarnPluginImportOptions.cs +++ b/src/ModularPipelines.Yarn/Models/YarnPluginImportOptions.cs @@ -10,5 +10,5 @@ public record YarnPluginImportOptions( ) : YarnOptions { [BooleanCommandSwitch("--checksum")] - public bool? Checksum { get; set; } + public virtual bool? Checksum { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Yarn/Models/YarnPluginListOptions.cs b/src/ModularPipelines.Yarn/Models/YarnPluginListOptions.cs index 61f4474eeb..da3cb8ed91 100644 --- a/src/ModularPipelines.Yarn/Models/YarnPluginListOptions.cs +++ b/src/ModularPipelines.Yarn/Models/YarnPluginListOptions.cs @@ -8,5 +8,5 @@ namespace ModularPipelines.Yarn.Models; public record YarnPluginListOptions : YarnOptions { [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Yarn/Models/YarnPluginRuntimeOptions.cs b/src/ModularPipelines.Yarn/Models/YarnPluginRuntimeOptions.cs index 0ecaf747e1..d72ea6e039 100644 --- a/src/ModularPipelines.Yarn/Models/YarnPluginRuntimeOptions.cs +++ b/src/ModularPipelines.Yarn/Models/YarnPluginRuntimeOptions.cs @@ -8,5 +8,5 @@ namespace ModularPipelines.Yarn.Models; public record YarnPluginRuntimeOptions : YarnOptions { [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Yarn/Models/YarnRemoveOptions.cs b/src/ModularPipelines.Yarn/Models/YarnRemoveOptions.cs index c923761b89..70c618128d 100644 --- a/src/ModularPipelines.Yarn/Models/YarnRemoveOptions.cs +++ b/src/ModularPipelines.Yarn/Models/YarnRemoveOptions.cs @@ -8,8 +8,8 @@ namespace ModularPipelines.Yarn.Models; public record YarnRemoveOptions : YarnOptions { [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } [CommandSwitch("--mode")] - public string? Mode { get; set; } + public virtual string? Mode { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Yarn/Models/YarnRunOptions.cs b/src/ModularPipelines.Yarn/Models/YarnRunOptions.cs index b3d13cc4c2..fd82521d52 100644 --- a/src/ModularPipelines.Yarn/Models/YarnRunOptions.cs +++ b/src/ModularPipelines.Yarn/Models/YarnRunOptions.cs @@ -10,17 +10,17 @@ public record YarnRunOptions( ) : YarnOptions { [BooleanCommandSwitch("--inspect")] - public bool? Inspect { get; set; } + public virtual bool? Inspect { get; set; } [BooleanCommandSwitch("--inspect-brk")] - public bool? InspectBrk { get; set; } + public virtual bool? InspectBrk { get; set; } [BooleanCommandSwitch("--top-level")] - public bool? TopLevel { get; set; } + public virtual bool? TopLevel { get; set; } [BooleanCommandSwitch("--binaries-only")] - public bool? BinariesOnly { get; set; } + public virtual bool? BinariesOnly { get; set; } [CommandSwitch("--require")] - public string? Require { get; set; } + public virtual string? Require { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Yarn/Models/YarnSetResolutionOptions.cs b/src/ModularPipelines.Yarn/Models/YarnSetResolutionOptions.cs index fc97f4a98f..9376217bf9 100644 --- a/src/ModularPipelines.Yarn/Models/YarnSetResolutionOptions.cs +++ b/src/ModularPipelines.Yarn/Models/YarnSetResolutionOptions.cs @@ -11,5 +11,5 @@ public record YarnSetResolutionOptions( ) : YarnOptions { [BooleanCommandSwitch("--save")] - public bool? Save { get; set; } + public virtual bool? Save { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Yarn/Models/YarnSetVersionFromSourcesOptions.cs b/src/ModularPipelines.Yarn/Models/YarnSetVersionFromSourcesOptions.cs index 9206bc9109..8e1bdd4cf9 100644 --- a/src/ModularPipelines.Yarn/Models/YarnSetVersionFromSourcesOptions.cs +++ b/src/ModularPipelines.Yarn/Models/YarnSetVersionFromSourcesOptions.cs @@ -8,26 +8,26 @@ namespace ModularPipelines.Yarn.Models; public record YarnSetVersionFromSourcesOptions : YarnOptions { [CommandSwitch("--path")] - public string? Path { get; set; } + public virtual string? Path { get; set; } [CommandSwitch("--repository")] - public string? Repository { get; set; } + public virtual string? Repository { get; set; } [CommandSwitch("--branch")] - public string? Branch { get; set; } + public virtual string? Branch { get; set; } [CommandSwitch("--plugin")] - public string? Plugin { get; set; } + public virtual string? Plugin { get; set; } [BooleanCommandSwitch("--dry-run")] - public bool? DryRun { get; set; } + public virtual bool? DryRun { get; set; } [BooleanCommandSwitch("--no-minify")] - public bool? NoMinify { get; set; } + public virtual bool? NoMinify { get; set; } [BooleanCommandSwitch("--force")] - public bool? Force { get; set; } + public virtual bool? Force { get; set; } [BooleanCommandSwitch("--skip-plugins")] - public bool? SkipPlugins { get; set; } + public virtual bool? SkipPlugins { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Yarn/Models/YarnSetVersionOptions.cs b/src/ModularPipelines.Yarn/Models/YarnSetVersionOptions.cs index 8827706e17..b66bc86234 100644 --- a/src/ModularPipelines.Yarn/Models/YarnSetVersionOptions.cs +++ b/src/ModularPipelines.Yarn/Models/YarnSetVersionOptions.cs @@ -10,8 +10,8 @@ public record YarnSetVersionOptions( ) : YarnOptions { [BooleanCommandSwitch("--yarn-path")] - public bool? YarnPath { get; set; } + public virtual bool? YarnPath { get; set; } [BooleanCommandSwitch("--only-if-needed")] - public bool? OnlyIfNeeded { get; set; } + public virtual bool? OnlyIfNeeded { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Yarn/Models/YarnStageOptions.cs b/src/ModularPipelines.Yarn/Models/YarnStageOptions.cs index 1bce2ed207..f525d4f028 100644 --- a/src/ModularPipelines.Yarn/Models/YarnStageOptions.cs +++ b/src/ModularPipelines.Yarn/Models/YarnStageOptions.cs @@ -8,11 +8,11 @@ namespace ModularPipelines.Yarn.Models; public record YarnStageOptions : YarnOptions { [BooleanCommandSwitch("--commit")] - public bool? Commit { get; set; } + public virtual bool? Commit { get; set; } [BooleanCommandSwitch("--reset")] - public bool? Reset { get; set; } + public virtual bool? Reset { get; set; } [BooleanCommandSwitch("--dry-run")] - public bool? DryRun { get; set; } + public virtual bool? DryRun { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Yarn/Models/YarnUnlinkOptions.cs b/src/ModularPipelines.Yarn/Models/YarnUnlinkOptions.cs index f4ea91a64b..1f51eac46b 100644 --- a/src/ModularPipelines.Yarn/Models/YarnUnlinkOptions.cs +++ b/src/ModularPipelines.Yarn/Models/YarnUnlinkOptions.cs @@ -8,5 +8,5 @@ namespace ModularPipelines.Yarn.Models; public record YarnUnlinkOptions : YarnOptions { [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Yarn/Models/YarnUnplugOptions.cs b/src/ModularPipelines.Yarn/Models/YarnUnplugOptions.cs index 23cade8ed3..ecb27e1508 100644 --- a/src/ModularPipelines.Yarn/Models/YarnUnplugOptions.cs +++ b/src/ModularPipelines.Yarn/Models/YarnUnplugOptions.cs @@ -8,11 +8,11 @@ namespace ModularPipelines.Yarn.Models; public record YarnUnplugOptions : YarnOptions { [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } [BooleanCommandSwitch("--recursive")] - public bool? Recursive { get; set; } + public virtual bool? Recursive { get; set; } [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Yarn/Models/YarnUpOptions.cs b/src/ModularPipelines.Yarn/Models/YarnUpOptions.cs index 379c08d49e..43ddad4361 100644 --- a/src/ModularPipelines.Yarn/Models/YarnUpOptions.cs +++ b/src/ModularPipelines.Yarn/Models/YarnUpOptions.cs @@ -8,23 +8,23 @@ namespace ModularPipelines.Yarn.Models; public record YarnUpOptions : YarnOptions { [BooleanCommandSwitch("--interactive")] - public bool? Interactive { get; set; } + public virtual bool? Interactive { get; set; } [BooleanCommandSwitch("--fixed")] - public bool? Fixed { get; set; } + public virtual bool? Fixed { get; set; } [BooleanCommandSwitch("--exact")] - public bool? Exact { get; set; } + public virtual bool? Exact { get; set; } [BooleanCommandSwitch("--tilde")] - public bool? Tilde { get; set; } + public virtual bool? Tilde { get; set; } [BooleanCommandSwitch("--caret")] - public bool? Caret { get; set; } + public virtual bool? Caret { get; set; } [BooleanCommandSwitch("--recursive")] - public bool? Recursive { get; set; } + public virtual bool? Recursive { get; set; } [CommandSwitch("--mode")] - public string? Mode { get; set; } + public virtual string? Mode { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Yarn/Models/YarnVersionApplyOptions.cs b/src/ModularPipelines.Yarn/Models/YarnVersionApplyOptions.cs index 84c3fdafd2..defc3a3cc3 100644 --- a/src/ModularPipelines.Yarn/Models/YarnVersionApplyOptions.cs +++ b/src/ModularPipelines.Yarn/Models/YarnVersionApplyOptions.cs @@ -8,17 +8,17 @@ namespace ModularPipelines.Yarn.Models; public record YarnVersionApplyOptions : YarnOptions { [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } [BooleanCommandSwitch("--dry-run")] - public bool? DryRun { get; set; } + public virtual bool? DryRun { get; set; } [BooleanCommandSwitch("--prerelease")] - public bool? Prerelease { get; set; } + public virtual bool? Prerelease { get; set; } [BooleanCommandSwitch("--recursive")] - public bool? Recursive { get; set; } + public virtual bool? Recursive { get; set; } [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Yarn/Models/YarnVersionCheckOptions.cs b/src/ModularPipelines.Yarn/Models/YarnVersionCheckOptions.cs index cde84dfc1f..2909889251 100644 --- a/src/ModularPipelines.Yarn/Models/YarnVersionCheckOptions.cs +++ b/src/ModularPipelines.Yarn/Models/YarnVersionCheckOptions.cs @@ -8,5 +8,5 @@ namespace ModularPipelines.Yarn.Models; public record YarnVersionCheckOptions : YarnOptions { [BooleanCommandSwitch("--interactive")] - public bool? Interactive { get; set; } + public virtual bool? Interactive { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Yarn/Models/YarnVersionOptions.cs b/src/ModularPipelines.Yarn/Models/YarnVersionOptions.cs index 3d9fb6e7dc..2ab0515ff6 100644 --- a/src/ModularPipelines.Yarn/Models/YarnVersionOptions.cs +++ b/src/ModularPipelines.Yarn/Models/YarnVersionOptions.cs @@ -10,8 +10,8 @@ public record YarnVersionOptions( ) : YarnOptions { [BooleanCommandSwitch("--deferred")] - public bool? Deferred { get; set; } + public virtual bool? Deferred { get; set; } [BooleanCommandSwitch("--immediate")] - public bool? Immediate { get; set; } + public virtual bool? Immediate { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Yarn/Models/YarnWhyOptions.cs b/src/ModularPipelines.Yarn/Models/YarnWhyOptions.cs index d9f768d670..ed59ac047d 100644 --- a/src/ModularPipelines.Yarn/Models/YarnWhyOptions.cs +++ b/src/ModularPipelines.Yarn/Models/YarnWhyOptions.cs @@ -10,11 +10,11 @@ public record YarnWhyOptions( ) : YarnOptions { [BooleanCommandSwitch("--recursive")] - public bool? Recursive { get; set; } + public virtual bool? Recursive { get; set; } [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } [BooleanCommandSwitch("--peers")] - public bool? Peers { get; set; } + public virtual bool? Peers { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Yarn/Models/YarnWorkspacesFocusOptions.cs b/src/ModularPipelines.Yarn/Models/YarnWorkspacesFocusOptions.cs index f2d5d45ae2..b9d7bdcf6a 100644 --- a/src/ModularPipelines.Yarn/Models/YarnWorkspacesFocusOptions.cs +++ b/src/ModularPipelines.Yarn/Models/YarnWorkspacesFocusOptions.cs @@ -8,11 +8,11 @@ namespace ModularPipelines.Yarn.Models; public record YarnWorkspacesFocusOptions : YarnOptions { [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } [BooleanCommandSwitch("--production")] - public bool? Production { get; set; } + public virtual bool? Production { get; set; } [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Yarn/Models/YarnWorkspacesForeachOptions.cs b/src/ModularPipelines.Yarn/Models/YarnWorkspacesForeachOptions.cs index 67f7409cf7..6041d71fdf 100644 --- a/src/ModularPipelines.Yarn/Models/YarnWorkspacesForeachOptions.cs +++ b/src/ModularPipelines.Yarn/Models/YarnWorkspacesForeachOptions.cs @@ -10,47 +10,47 @@ public record YarnWorkspacesForeachOptions( ) : YarnOptions { [CommandSwitch("--from")] - public string? From { get; set; } + public virtual string? From { get; set; } [BooleanCommandSwitch("--all")] - public bool? All { get; set; } + public virtual bool? All { get; set; } [BooleanCommandSwitch("--recursive")] - public bool? Recursive { get; set; } + public virtual bool? Recursive { get; set; } [BooleanCommandSwitch("--worktree")] - public bool? Worktree { get; set; } + public virtual bool? Worktree { get; set; } [BooleanCommandSwitch("--verbose")] - public bool? Verbose { get; set; } + public virtual bool? Verbose { get; set; } [BooleanCommandSwitch("--parallel")] - public bool? Parallel { get; set; } + public virtual bool? Parallel { get; set; } [BooleanCommandSwitch("--interlaced")] - public bool? Interlaced { get; set; } + public virtual bool? Interlaced { get; set; } [CommandSwitch("--jobs")] - public string? Jobs { get; set; } + public virtual string? Jobs { get; set; } [BooleanCommandSwitch("--topological")] - public bool? Topological { get; set; } + public virtual bool? Topological { get; set; } [BooleanCommandSwitch("--topological-dev")] - public bool? TopologicalDev { get; set; } + public virtual bool? TopologicalDev { get; set; } [CommandSwitch("--include")] - public string? Include { get; set; } + public virtual string? Include { get; set; } [CommandSwitch("--exclude")] - public string? Exclude { get; set; } + public virtual string? Exclude { get; set; } [BooleanCommandSwitch("--no-private")] - public bool? NoPrivate { get; set; } + public virtual bool? NoPrivate { get; set; } [BooleanCommandSwitch("--since")] - public bool? Since { get; set; } + public virtual bool? Since { get; set; } [BooleanCommandSwitch("--dry-run")] - public bool? DryRun { get; set; } + public virtual bool? DryRun { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Yarn/Models/YarnWorkspacesListOptions.cs b/src/ModularPipelines.Yarn/Models/YarnWorkspacesListOptions.cs index 69353d93a0..34f7475d29 100644 --- a/src/ModularPipelines.Yarn/Models/YarnWorkspacesListOptions.cs +++ b/src/ModularPipelines.Yarn/Models/YarnWorkspacesListOptions.cs @@ -8,17 +8,17 @@ namespace ModularPipelines.Yarn.Models; public record YarnWorkspacesListOptions : YarnOptions { [BooleanCommandSwitch("--since")] - public bool? Since { get; set; } + public virtual bool? Since { get; set; } [BooleanCommandSwitch("--recursive")] - public bool? Recursive { get; set; } + public virtual bool? Recursive { get; set; } [BooleanCommandSwitch("--no-private")] - public bool? NoPrivate { get; set; } + public virtual bool? NoPrivate { get; set; } [BooleanCommandSwitch("--verbose")] - public bool? Verbose { get; set; } + public virtual bool? Verbose { get; set; } [BooleanCommandSwitch("--json")] - public bool? Json { get; set; } + public virtual bool? Json { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines.Yarn/Yarn.cs b/src/ModularPipelines.Yarn/Yarn.cs index deddddcce1..0cdf94cd0e 100644 --- a/src/ModularPipelines.Yarn/Yarn.cs +++ b/src/ModularPipelines.Yarn/Yarn.cs @@ -13,311 +13,311 @@ public Yarn(ICommand command) _command = command; } - public async Task Add(YarnAddOptions? options = default, CancellationToken token = default) + public virtual async Task Add(YarnAddOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new YarnAddOptions(), token); } - public async Task Bin(YarnBinOptions? options = default, CancellationToken token = default) + public virtual async Task Bin(YarnBinOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new YarnBinOptions(), token); } - public async Task CacheClean(YarnCacheCleanOptions? options = default, + public virtual async Task CacheClean(YarnCacheCleanOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new YarnCacheCleanOptions(), token); } - public async Task ConfigGet(YarnConfigGetOptions options, CancellationToken token = default) + public virtual async Task ConfigGet(YarnConfigGetOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Config(YarnConfigOptions? options = default, CancellationToken token = default) + public virtual async Task Config(YarnConfigOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new YarnConfigOptions(), token); } - public async Task ConfigSet(YarnConfigSetOptions options, CancellationToken token = default) + public virtual async Task ConfigSet(YarnConfigSetOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task ConfigUnset(YarnConfigUnsetOptions options, CancellationToken token = default) + public virtual async Task ConfigUnset(YarnConfigUnsetOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Constraints(YarnConstraintsOptions? options = default, + public virtual async Task Constraints(YarnConstraintsOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new YarnConstraintsOptions(), token); } - public async Task ConstraintsQuery(YarnConstraintsQueryOptions options, + public virtual async Task ConstraintsQuery(YarnConstraintsQueryOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task ConstraintsSource(YarnConstraintsSourceOptions? options = default, + public virtual async Task ConstraintsSource(YarnConstraintsSourceOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new YarnConstraintsSourceOptions(), token); } - public async Task Dedupe(YarnDedupeOptions? options = default, CancellationToken token = default) + public virtual async Task Dedupe(YarnDedupeOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new YarnDedupeOptions(), token); } - public async Task Dlx(YarnDlxOptions options, CancellationToken token = default) + public virtual async Task Dlx(YarnDlxOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Exec(YarnExecOptions options, CancellationToken token = default) + public virtual async Task Exec(YarnExecOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Explain(YarnExplainOptions? options = default, CancellationToken token = default) + public virtual async Task Explain(YarnExplainOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new YarnExplainOptions(), token); } - public async Task ExplainPeerRequirements(YarnExplainPeerRequirementsOptions? options = default, + public virtual async Task ExplainPeerRequirements(YarnExplainPeerRequirementsOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new YarnExplainPeerRequirementsOptions(), token); } - public async Task Info(YarnInfoOptions? options = default, CancellationToken token = default) + public virtual async Task Info(YarnInfoOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new YarnInfoOptions(), token); } - public async Task Init(YarnInitOptions? options = default, CancellationToken token = default) + public virtual async Task Init(YarnInitOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new YarnInitOptions(), token); } - public async Task Install(YarnInstallOptions? options = default, CancellationToken token = default) + public virtual async Task Install(YarnInstallOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new YarnInstallOptions(), token); } - public async Task Link(YarnLinkOptions? options = default, CancellationToken token = default) + public virtual async Task Link(YarnLinkOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new YarnLinkOptions(), token); } - public async Task Node(YarnNodeOptions? options = default, CancellationToken token = default) + public virtual async Task Node(YarnNodeOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new YarnNodeOptions(), token); } - public async Task NpmAudit(YarnNpmAuditOptions? options = default, CancellationToken token = default) + public virtual async Task NpmAudit(YarnNpmAuditOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new YarnNpmAuditOptions(), token); } - public async Task NpmInfo(YarnNpmInfoOptions? options = default, CancellationToken token = default) + public virtual async Task NpmInfo(YarnNpmInfoOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new YarnNpmInfoOptions(), token); } - public async Task NpmLogin(YarnNpmLoginOptions? options = default, CancellationToken token = default) + public virtual async Task NpmLogin(YarnNpmLoginOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new YarnNpmLoginOptions(), token); } - public async Task NpmLogout(YarnNpmLogoutOptions? options = default, + public virtual async Task NpmLogout(YarnNpmLogoutOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new YarnNpmLogoutOptions(), token); } - public async Task NpmPublish(YarnNpmPublishOptions? options = default, + public virtual async Task NpmPublish(YarnNpmPublishOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new YarnNpmPublishOptions(), token); } - public async Task NpmTagAdd(YarnNpmTagAddOptions options, CancellationToken token = default) + public virtual async Task NpmTagAdd(YarnNpmTagAddOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task NpmTagList(YarnNpmTagListOptions? options = default, + public virtual async Task NpmTagList(YarnNpmTagListOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new YarnNpmTagListOptions(), token); } - public async Task NpmTagRemove(YarnNpmTagRemoveOptions options, CancellationToken token = default) + public virtual async Task NpmTagRemove(YarnNpmTagRemoveOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task NpmWhoami(YarnNpmWhoamiOptions? options = default, + public virtual async Task NpmWhoami(YarnNpmWhoamiOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new YarnNpmWhoamiOptions(), token); } - public async Task Pack(YarnPackOptions? options = default, CancellationToken token = default) + public virtual async Task Pack(YarnPackOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new YarnPackOptions(), token); } - public async Task PatchCommit(YarnPatchCommitOptions options, CancellationToken token = default) + public virtual async Task PatchCommit(YarnPatchCommitOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Patch(YarnPatchOptions options, CancellationToken token = default) + public virtual async Task Patch(YarnPatchOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task PluginCheck(YarnPluginCheckOptions? options = default, + public virtual async Task PluginCheck(YarnPluginCheckOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new YarnPluginCheckOptions(), token); } - public async Task PluginImportFromSources(YarnPluginImportFromSourcesOptions options, + public virtual async Task PluginImportFromSources(YarnPluginImportFromSourcesOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task PluginImport(YarnPluginImportOptions options, CancellationToken token = default) + public virtual async Task PluginImport(YarnPluginImportOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task PluginList(YarnPluginListOptions? options = default, + public virtual async Task PluginList(YarnPluginListOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new YarnPluginListOptions(), token); } - public async Task PluginRemove(YarnPluginRemoveOptions options, CancellationToken token = default) + public virtual async Task PluginRemove(YarnPluginRemoveOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task PluginRuntime(YarnPluginRuntimeOptions? options = default, + public virtual async Task PluginRuntime(YarnPluginRuntimeOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new YarnPluginRuntimeOptions(), token); } - public async Task Rebuild(YarnRebuildOptions? options = default, CancellationToken token = default) + public virtual async Task Rebuild(YarnRebuildOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new YarnRebuildOptions(), token); } - public async Task Remove(YarnRemoveOptions? options = default, CancellationToken token = default) + public virtual async Task Remove(YarnRemoveOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new YarnRemoveOptions(), token); } - public async Task Run(YarnRunOptions options, CancellationToken token = default) + public virtual async Task Run(YarnRunOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Search(YarnSearchOptions? options = default, CancellationToken token = default) + public virtual async Task Search(YarnSearchOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new YarnSearchOptions(), token); } - public async Task SetResolution(YarnSetResolutionOptions options, CancellationToken token = default) + public virtual async Task SetResolution(YarnSetResolutionOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task SetVersionFromSources(YarnSetVersionFromSourcesOptions? options = default, + public virtual async Task SetVersionFromSources(YarnSetVersionFromSourcesOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new YarnSetVersionFromSourcesOptions(), token); } - public async Task SetVersion(YarnSetVersionOptions options, CancellationToken token = default) + public virtual async Task SetVersion(YarnSetVersionOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Stage(YarnStageOptions? options = default, CancellationToken token = default) + public virtual async Task Stage(YarnStageOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new YarnStageOptions(), token); } - public async Task Unlink(YarnUnlinkOptions? options = default, CancellationToken token = default) + public virtual async Task Unlink(YarnUnlinkOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new YarnUnlinkOptions(), token); } - public async Task Unplug(YarnUnplugOptions? options = default, CancellationToken token = default) + public virtual async Task Unplug(YarnUnplugOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new YarnUnplugOptions(), token); } - public async Task UpgradeInteractive(YarnUpgradeInteractiveOptions? options = default, + public virtual async Task UpgradeInteractive(YarnUpgradeInteractiveOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new YarnUpgradeInteractiveOptions(), token); } - public async Task Up(YarnUpOptions? options = default, CancellationToken token = default) + public virtual async Task Up(YarnUpOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new YarnUpOptions(), token); } - public async Task VersionApply(YarnVersionApplyOptions? options = default, + public virtual async Task VersionApply(YarnVersionApplyOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new YarnVersionApplyOptions(), token); } - public async Task VersionCheck(YarnVersionCheckOptions? options = default, + public virtual async Task VersionCheck(YarnVersionCheckOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new YarnVersionCheckOptions(), token); } - public async Task Version(YarnVersionOptions options, CancellationToken token = default) + public virtual async Task Version(YarnVersionOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Why(YarnWhyOptions options, CancellationToken token = default) + public virtual async Task Why(YarnWhyOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task Workspace(YarnWorkspaceOptions options, CancellationToken token = default) + public virtual async Task Workspace(YarnWorkspaceOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task WorkspacesFocus(YarnWorkspacesFocusOptions? options = default, + public virtual async Task WorkspacesFocus(YarnWorkspacesFocusOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new YarnWorkspacesFocusOptions(), token); } - public async Task WorkspacesForeach(YarnWorkspacesForeachOptions options, + public virtual async Task WorkspacesForeach(YarnWorkspacesForeachOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } - public async Task WorkspacesList(YarnWorkspacesListOptions? options = default, + public virtual async Task WorkspacesList(YarnWorkspacesListOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new YarnWorkspacesListOptions(), token); diff --git a/src/ModularPipelines/Attributes/BooleanCommandSwitchAttribute.cs b/src/ModularPipelines/Attributes/BooleanCommandSwitchAttribute.cs index c56e5e47ab..834688a42f 100644 --- a/src/ModularPipelines/Attributes/BooleanCommandSwitchAttribute.cs +++ b/src/ModularPipelines/Attributes/BooleanCommandSwitchAttribute.cs @@ -1,7 +1,7 @@ namespace ModularPipelines.Attributes; [AttributeUsage(AttributeTargets.Property)] -public class BooleanCommandSwitchAttribute : Attribute +public class BooleanCommandSwitchAttribute : Attribute, ICommandSwitchAttribute { public BooleanCommandSwitchAttribute(string switchName) { diff --git a/src/ModularPipelines/Attributes/CommandSwitchAttribute.cs b/src/ModularPipelines/Attributes/CommandSwitchAttribute.cs index 10efddfb51..43f0e7b168 100644 --- a/src/ModularPipelines/Attributes/CommandSwitchAttribute.cs +++ b/src/ModularPipelines/Attributes/CommandSwitchAttribute.cs @@ -1,7 +1,7 @@ namespace ModularPipelines.Attributes; [AttributeUsage(AttributeTargets.Property)] -public class CommandSwitchAttribute : Attribute +public class CommandSwitchAttribute : Attribute, ICommandSwitchAttribute { public CommandSwitchAttribute(string switchName) { diff --git a/src/ModularPipelines/Attributes/ICommandSwitchAttribute.cs b/src/ModularPipelines/Attributes/ICommandSwitchAttribute.cs new file mode 100644 index 0000000000..bbe3cee3ed --- /dev/null +++ b/src/ModularPipelines/Attributes/ICommandSwitchAttribute.cs @@ -0,0 +1,3 @@ +namespace ModularPipelines.Attributes; + +public interface ICommandSwitchAttribute; \ No newline at end of file diff --git a/src/ModularPipelines/Attributes/NotInParallelAttribute.cs b/src/ModularPipelines/Attributes/NotInParallelAttribute.cs index 47c81c0cf5..486650d358 100644 --- a/src/ModularPipelines/Attributes/NotInParallelAttribute.cs +++ b/src/ModularPipelines/Attributes/NotInParallelAttribute.cs @@ -29,7 +29,7 @@ public NotInParallelAttribute(params string[] constraintKeys) { throw new ArgumentException("Duplicate constraint keys are not allowed."); } - + ConstraintKeys = constraintKeys; } } \ No newline at end of file diff --git a/src/ModularPipelines/Attributes/ParallelLimiterAttribute.cs b/src/ModularPipelines/Attributes/ParallelLimiterAttribute.cs index ca1832184f..ade3becff2 100644 --- a/src/ModularPipelines/Attributes/ParallelLimiterAttribute.cs +++ b/src/ModularPipelines/Attributes/ParallelLimiterAttribute.cs @@ -21,7 +21,7 @@ public ParallelLimiterAttribute(Type type) { throw new Exception("Type must be of IParallelLimit"); } - + Type = type; } } \ No newline at end of file diff --git a/src/ModularPipelines/Context/Bash.cs b/src/ModularPipelines/Context/Bash.cs index 1b61bdb04e..c46cba3d62 100644 --- a/src/ModularPipelines/Context/Bash.cs +++ b/src/ModularPipelines/Context/Bash.cs @@ -12,12 +12,12 @@ public Bash(ICommand command) _command = command; } - public Task Command(BashCommandOptions options, CancellationToken cancellationToken = default) + public virtual Task Command(BashCommandOptions options, CancellationToken cancellationToken = default) { return _command.ExecuteCommandLineTool(options, cancellationToken); } - public async Task FromFile(BashFileOptions options, CancellationToken cancellationToken = default) + public virtual async Task FromFile(BashFileOptions options, CancellationToken cancellationToken = default) { return await _command.ExecuteCommandLineTool(options with { diff --git a/src/ModularPipelines/Context/Command.cs b/src/ModularPipelines/Context/Command.cs index db93f25ae2..30067056e1 100644 --- a/src/ModularPipelines/Context/Command.cs +++ b/src/ModularPipelines/Context/Command.cs @@ -79,7 +79,7 @@ public async Task ExecuteCommandLineTool(CommandLineToolOptions o private List SantiseArguments(List parsedArgs) { parsedArgs.RemoveAll(x => x.StartsWith("<")); - + return parsedArgs; } @@ -112,7 +112,7 @@ private async Task Of(CliWrap.Command command, var inputToLog = options.InputLoggingManipulator == null ? command.ToString() : options.InputLoggingManipulator(command.ToString()); using var forcefulCancellationToken = new CancellationTokenSource(); - + cancellationToken.Register(() => { try @@ -127,7 +127,7 @@ private async Task Of(CliWrap.Command command, // Ignored } }); - + try { var result = await command @@ -169,7 +169,7 @@ private async Task Of(CliWrap.Command command, standardError: standardError, commandWorkingDirPath: command.WorkingDirPath ); - + throw new CommandException(inputToLog, e.ExitCode, stopwatch.Elapsed, standardOutput, standardError, e); } catch (Exception e) when (e is not CommandExecutionException and not CommandException) diff --git a/src/ModularPipelines/Context/FileInstaller.cs b/src/ModularPipelines/Context/FileInstaller.cs index 35e5862e33..ea64627fcc 100644 --- a/src/ModularPipelines/Context/FileInstaller.cs +++ b/src/ModularPipelines/Context/FileInstaller.cs @@ -17,7 +17,7 @@ public FileInstaller(ICommand command, IDownloader downloader, IBash bash) } /// - public async Task InstallFromFileAsync(InstallerOptions options, + public virtual async Task InstallFromFileAsync(InstallerOptions options, CancellationToken cancellationToken = default) { if (OperatingSystem.IsWindows()) @@ -34,7 +34,7 @@ public async Task InstallFromFileAsync(InstallerOptions options, } /// - public async Task InstallFromWebAsync(WebInstallerOptions options, + public virtual async Task InstallFromWebAsync(WebInstallerOptions options, CancellationToken cancellationToken = default) { var file = await _downloader.DownloadFileAsync(new DownloadFileOptions(options.DownloadUri), cancellationToken); diff --git a/src/ModularPipelines/Context/Linux/AptGet.cs b/src/ModularPipelines/Context/Linux/AptGet.cs index c689be8b6c..eb582e41c3 100644 --- a/src/ModularPipelines/Context/Linux/AptGet.cs +++ b/src/ModularPipelines/Context/Linux/AptGet.cs @@ -15,76 +15,76 @@ public AptGet(ICommand command) } /// - public async Task Autoclean(AptGetAutocleanOptions? options = default, + public virtual async Task Autoclean(AptGetAutocleanOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new AptGetAutocleanOptions(), token); } /// - public async Task BuildDep(AptGetBuildDepOptions? options = default, + public virtual async Task BuildDep(AptGetBuildDepOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new AptGetBuildDepOptions(), token); } /// - public async Task Check(AptGetCheckOptions? options = default, CancellationToken token = default) + public virtual async Task Check(AptGetCheckOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new AptGetCheckOptions(), token); } /// - public async Task Clean(AptGetCleanOptions? options = default, CancellationToken token = default) + public virtual async Task Clean(AptGetCleanOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new AptGetCleanOptions(), token); } /// - public async Task DistUpgrade(AptGetDistUpgradeOptions? options = default, + public virtual async Task DistUpgrade(AptGetDistUpgradeOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new AptGetDistUpgradeOptions(), token); } /// - public async Task Install(AptGetInstallOptions options, CancellationToken token = default) + public virtual async Task Install(AptGetInstallOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task Package(AptGetPackageOptions? options = default, CancellationToken token = default) + public virtual async Task Package(AptGetPackageOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new AptGetPackageOptions(), token); } /// - public async Task Remove(AptGetRemoveOptions options, CancellationToken token = default) + public virtual async Task Remove(AptGetRemoveOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } /// - public async Task Source(AptGetSourceOptions? options = default, CancellationToken token = default) + public virtual async Task Source(AptGetSourceOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new AptGetSourceOptions(), token); } /// - public async Task Update(AptGetUpdateOptions? options = default, CancellationToken token = default) + public virtual async Task Update(AptGetUpdateOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new AptGetUpdateOptions(), token); } /// - public async Task Upgrade(AptGetUpgradeOptions? options = default, CancellationToken token = default) + public virtual async Task Upgrade(AptGetUpgradeOptions? options = default, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options ?? new AptGetUpgradeOptions(), token); } /// - public async Task Custom(AptGetOptions options, CancellationToken token = default) + public virtual async Task Custom(AptGetOptions options, CancellationToken token = default) { return await _command.ExecuteCommandLineTool(options, token); } diff --git a/src/ModularPipelines/Context/LinuxInstaller.cs b/src/ModularPipelines/Context/LinuxInstaller.cs index cd4223ebf4..023bca70b3 100644 --- a/src/ModularPipelines/Context/LinuxInstaller.cs +++ b/src/ModularPipelines/Context/LinuxInstaller.cs @@ -16,7 +16,7 @@ public LinuxInstaller(ICommand command, IAptGet aptGet) _aptGet = aptGet; } - public async Task InstallFromDpkg(DpkgInstallOptions options) + public virtual async Task InstallFromDpkg(DpkgInstallOptions options) { var linuxInstallationResult = await _command.ExecuteCommandLineTool(options); diff --git a/src/ModularPipelines/Context/MacInstaller.cs b/src/ModularPipelines/Context/MacInstaller.cs index 13605b6313..285652862f 100644 --- a/src/ModularPipelines/Context/MacInstaller.cs +++ b/src/ModularPipelines/Context/MacInstaller.cs @@ -12,7 +12,7 @@ public MacInstaller(ICommand command) _command = command; } - public async Task InstallFromBrew(MacBrewOptions macBrewOptions) + public virtual async Task InstallFromBrew(MacBrewOptions macBrewOptions) { return await _command.ExecuteCommandLineTool(macBrewOptions); } diff --git a/src/ModularPipelines/Context/Powershell.cs b/src/ModularPipelines/Context/Powershell.cs index 01bfd40e40..fac1c32b43 100644 --- a/src/ModularPipelines/Context/Powershell.cs +++ b/src/ModularPipelines/Context/Powershell.cs @@ -12,12 +12,12 @@ public Powershell(ICommand command) _command = command; } - public Task Script(PowershellScriptOptions options, CancellationToken cancellationToken = default) + public virtual Task Script(PowershellScriptOptions options, CancellationToken cancellationToken = default) { return _command.ExecuteCommandLineTool(options, cancellationToken); } - public Task FromFile(PowershellFileOptions options, CancellationToken cancellationToken = default) + public virtual Task FromFile(PowershellFileOptions options, CancellationToken cancellationToken = default) { return _command.ExecuteCommandLineTool(options, cancellationToken); } diff --git a/src/ModularPipelines/Context/PredefinedInstallers.cs b/src/ModularPipelines/Context/PredefinedInstallers.cs index b8d5829658..bb79f0d7c9 100644 --- a/src/ModularPipelines/Context/PredefinedInstallers.cs +++ b/src/ModularPipelines/Context/PredefinedInstallers.cs @@ -45,7 +45,7 @@ public PredefinedInstallers(ICommand command, } /// - public async Task Chocolatey() + public virtual async Task Chocolatey() { return await _command.ExecuteCommandLineTool(new CommandLineToolOptions("cmd") { @@ -67,7 +67,7 @@ public async Task Chocolatey() } /// - public async Task Powershell7() + public async virtual Task Powershell7() { var operatingSystem = _environmentContext.OperatingSystem; @@ -131,7 +131,7 @@ await newFolder.GetFile("settings.txt").WriteAsync($""" } /// - public async Task Node(string version = "--lts") + public virtual async Task Node(string version = "--lts") { await Nvm(); diff --git a/src/ModularPipelines/Context/WindowsInstaller.cs b/src/ModularPipelines/Context/WindowsInstaller.cs index 89072c5ced..40b8659c49 100644 --- a/src/ModularPipelines/Context/WindowsInstaller.cs +++ b/src/ModularPipelines/Context/WindowsInstaller.cs @@ -12,12 +12,12 @@ public WindowsInstaller(ICommand command) _command = command; } - public async Task InstallMsi(MsiInstallerOptions msiInstallerOptions) + public virtual async Task InstallMsi(MsiInstallerOptions msiInstallerOptions) { return await _command.ExecuteCommandLineTool(msiInstallerOptions); } - public async Task InstallExe(ExeInstallerOptions exeInstallerOptions) + public virtual async Task InstallExe(ExeInstallerOptions exeInstallerOptions) { return await _command.ExecuteCommandLineTool(exeInstallerOptions); } diff --git a/src/ModularPipelines/Engine/DependencyChainProvider.cs b/src/ModularPipelines/Engine/DependencyChainProvider.cs index 8612dba103..5350b5af78 100644 --- a/src/ModularPipelines/Engine/DependencyChainProvider.cs +++ b/src/ModularPipelines/Engine/DependencyChainProvider.cs @@ -6,7 +6,7 @@ namespace ModularPipelines.Engine; internal class DependencyChainProvider : IDependencyChainProvider, IInitializer { private readonly IModuleRetriever _moduleRetriever; - + public IReadOnlyList ModuleDependencyModels { get; private set; } = null!; public DependencyChainProvider(IModuleRetriever moduleRetriever) diff --git a/src/ModularPipelines/Engine/DependencyPrinter.cs b/src/ModularPipelines/Engine/DependencyPrinter.cs index 60374038a2..bbc7355bbe 100644 --- a/src/ModularPipelines/Engine/DependencyPrinter.cs +++ b/src/ModularPipelines/Engine/DependencyPrinter.cs @@ -31,7 +31,7 @@ public void PrintDependencyChains() { return; } - + var alreadyPrinted = new HashSet(); var stringBuilder = new StringBuilder(); @@ -58,7 +58,7 @@ private void Print(string value) { return; } - + _logger.LogDebug("\n"); _collapsableLogging.StartConsoleLogGroupDirectToConsole("Dependency Chains", LogLevel.Debug); _logger.LogDebug("The following dependency chains have been detected:\r\n{Chain}", value); diff --git a/src/ModularPipelines/Engine/ExceptionContainer.cs b/src/ModularPipelines/Engine/ExceptionContainer.cs index 8228d795cd..db6a46ee8c 100644 --- a/src/ModularPipelines/Engine/ExceptionContainer.cs +++ b/src/ModularPipelines/Engine/ExceptionContainer.cs @@ -3,7 +3,7 @@ namespace ModularPipelines.Engine; internal class ExceptionContainer : IExceptionContainer { private readonly List _exceptions = []; - + public void RegisterException(Exception exception) { _exceptions.Add(exception); diff --git a/src/ModularPipelines/Engine/Executors/ExecutionOrchestrator.cs b/src/ModularPipelines/Engine/Executors/ExecutionOrchestrator.cs index a3ba932b1a..2c4c65b2df 100644 --- a/src/ModularPipelines/Engine/Executors/ExecutionOrchestrator.cs +++ b/src/ModularPipelines/Engine/Executors/ExecutionOrchestrator.cs @@ -76,7 +76,7 @@ private async Task ExecuteInternal(CancellationToken cancellati cancellationToken.Register(() => _engineCancellationToken.CancelWithReason("The user's cancellation token passed into the pipeline was cancelled.")); var organizedModules = await _pipelineInitializer.Initialize(); - + var runnableModules = organizedModules.RunnableModules.Select(x => x.Module).ToList(); var start = DateTimeOffset.UtcNow; @@ -85,7 +85,7 @@ private async Task ExecuteInternal(CancellationToken cancellati try { var result = await ExecutePipeline(runnableModules, organizedModules); - + return await OnEnd(organizedModules, stopWatch, start, result); } catch @@ -109,7 +109,7 @@ private async Task OnEnd(OrganizedModules organizedModules, Sto { _logger.LogInformation("Cancellation Reason: {Reason}", _engineCancellationToken.Reason); } - + return pipelineSummary; } diff --git a/src/ModularPipelines/Engine/Executors/ModuleHandlers/ErrorHandler.cs b/src/ModularPipelines/Engine/Executors/ModuleHandlers/ErrorHandler.cs index 4299f9f0de..27bf901362 100644 --- a/src/ModularPipelines/Engine/Executors/ModuleHandlers/ErrorHandler.cs +++ b/src/ModularPipelines/Engine/Executors/ModuleHandlers/ErrorHandler.cs @@ -61,7 +61,7 @@ private bool IsModuleTimedOutException(Exception exception) { return false; } - + var isTimeoutExceed = Module.Stopwatch.Elapsed >= Module.Timeout; return isTimeoutExceed && exception is ModuleTimeoutException or TaskCanceledException or OperationCanceledException; } @@ -84,7 +84,7 @@ private void CancelPipelineAndThrow(Exception exception) Context.Logger.SetException(exception); var moduleFailedException = new ModuleFailedException(Module, exception); - + Task.Delay(TimeSpan.FromSeconds(1)).ContinueWith(_ => { Context.EngineCancellationToken.Cancel(); diff --git a/src/ModularPipelines/Engine/Executors/PipelineExecutor.cs b/src/ModularPipelines/Engine/Executors/PipelineExecutor.cs index fb603beef5..e4b5ad7711 100644 --- a/src/ModularPipelines/Engine/Executors/PipelineExecutor.cs +++ b/src/ModularPipelines/Engine/Executors/PipelineExecutor.cs @@ -49,14 +49,14 @@ public async Task ExecuteAsync(List runnableModules await _pipelineSetupExecutor.OnEndAsync(pipelineSummary); } - + _exceptionContainer.ThrowExceptions(); if (exception != null) { throw exception; } - + return pipelineSummary; } diff --git a/src/ModularPipelines/Engine/Executors/PrintProgressExecutor.cs b/src/ModularPipelines/Engine/Executors/PrintProgressExecutor.cs index 3fe45a80ef..fbabbb557b 100644 --- a/src/ModularPipelines/Engine/Executors/PrintProgressExecutor.cs +++ b/src/ModularPipelines/Engine/Executors/PrintProgressExecutor.cs @@ -11,7 +11,7 @@ internal class PrintProgressExecutor : IPrintProgressExecutor private readonly IConsolePrinter _consolePrinter; private readonly IModuleRetriever _moduleRetriever; private readonly ILogger _logger; - + private Task? _printProgressTask; private CancellationTokenSource? _printProgressCancellationTokenSource; @@ -25,7 +25,7 @@ public PrintProgressExecutor(EngineCancellationToken engineCancellationToken, _moduleRetriever = moduleRetriever; _logger = logger; } - + public async Task InitializeAsync() { _printProgressCancellationTokenSource = diff --git a/src/ModularPipelines/Engine/IExceptionContainer.cs b/src/ModularPipelines/Engine/IExceptionContainer.cs index f4bec2f90b..3da1cad64f 100644 --- a/src/ModularPipelines/Engine/IExceptionContainer.cs +++ b/src/ModularPipelines/Engine/IExceptionContainer.cs @@ -3,6 +3,6 @@ internal interface IExceptionContainer { void RegisterException(Exception exception); - + void ThrowExceptions(); } \ No newline at end of file diff --git a/src/ModularPipelines/Engine/ModuleContextProvider.cs b/src/ModularPipelines/Engine/ModuleContextProvider.cs index c5aeabc1fa..82c4c866fd 100644 --- a/src/ModularPipelines/Engine/ModuleContextProvider.cs +++ b/src/ModularPipelines/Engine/ModuleContextProvider.cs @@ -17,9 +17,9 @@ public ModuleContextProvider(IServiceProvider serviceProvider) public IPipelineContext GetModuleContext() { var serviceScope = _serviceProvider.CreateAsyncScope(); - + _scopes.Add(serviceScope); - + return serviceScope.ServiceProvider.GetRequiredService(); } diff --git a/src/ModularPipelines/Engine/ModuleExecutor.cs b/src/ModularPipelines/Engine/ModuleExecutor.cs index d5205e450c..880757a321 100644 --- a/src/ModularPipelines/Engine/ModuleExecutor.cs +++ b/src/ModularPipelines/Engine/ModuleExecutor.cs @@ -30,7 +30,7 @@ internal class ModuleExecutor : IModuleExecutor private readonly ConcurrentDictionary _notInParallelKeyedLocks = new(); private readonly object _notInParallelDictionaryLock = new(); - + public ModuleExecutor(IPipelineSetupExecutor pipelineSetupExecutor, IOptions pipelineOptions, ISafeModuleEstimatedTimeProvider moduleEstimatedTimeProvider, @@ -71,7 +71,7 @@ public async Task> ExecuteAsync(IReadOnlyList x.GetType().GetCustomAttribute()!.ConstraintKeys.Length != 0) .ToList(); - + await ProcessKeyedNonParallelModules(keyedNonParallelModules.ToList()); var parallelModuleTasks = modules.Except(nonParallelModules) @@ -158,7 +158,7 @@ private Task StartModule(ModuleBase module, bool isStartedAsDependen return _moduleExecutionTasks.GetOrAdd(module, @base => Task.Run(async () => { using var semaphoreHandle = await WaitForParallelLimiter(module, isStartedAsDependencyForOtherModule); - + _logger.LogDebug("Starting Module {Module}", module.GetType().Name); var dependencies = module.GetModuleDependencies(); @@ -171,7 +171,7 @@ private Task StartModule(ModuleBase module, bool isStartedAsDependen try { ModuleLogger.Values.Value = module.Context.Logger; - + await _pipelineSetupExecutor.OnBeforeModuleStartAsync(module); await module.StartInternal(); @@ -192,12 +192,12 @@ private Task StartModule(ModuleBase module, bool isStartedAsDependen })); } } - + private async Task WaitForParallelLimiter(ModuleBase module, bool isStartedAsDependencyForAnotherTest) { var parallelLimitAttributeType = module.GetType().GetCustomAttributes().FirstOrDefault()?.Type; - + if (parallelLimitAttributeType != null) { return await _parallelLimitProvider.GetLock(parallelLimitAttributeType).WaitAsync(); @@ -209,7 +209,7 @@ private async Task WaitForParallelLimiter(ModuleBase module, bool i private async Task StartDependency(ModuleBase requestingModule, Type dependencyType, bool ignoreIfNotRegistered) { _logger.LogDebug("Starting Dependency {Dependency} for Module {Module}", dependencyType.Name, requestingModule.GetType().Name); - + var module = _allModules.FirstOrDefault(x => x.GetType() == dependencyType); if (module is null && ignoreIfNotRegistered) @@ -222,7 +222,7 @@ private async Task StartDependency(ModuleBase requestingModule, Type dependencyT { throw new ModuleNotRegisteredException($"The module {dependencyType.Name} has not been registered", null); } - + requestingModule.Context.Logger.LogDebug("{RequestingModule} is waiting for {Module}", requestingModule.GetType().Name, dependencyType.Name); try diff --git a/src/ModularPipelines/Engine/OptionsProvider.cs b/src/ModularPipelines/Engine/OptionsProvider.cs index 46a9158fb3..596bbb9692 100644 --- a/src/ModularPipelines/Engine/OptionsProvider.cs +++ b/src/ModularPipelines/Engine/OptionsProvider.cs @@ -24,7 +24,7 @@ public OptionsProvider(IPipelineServiceContainerWrapper pipelineServiceContainer .Where(t => { var genericTypeDefinition = t.GetGenericTypeDefinition(); - + return genericTypeDefinition.IsAssignableTo(typeof(IConfigureOptions<>)) || genericTypeDefinition.IsAssignableTo(typeof(IPostConfigureOptions<>)) || genericTypeDefinition.IsAssignableTo(typeof(IOptions<>)) diff --git a/src/ModularPipelines/Enums/Status.cs b/src/ModularPipelines/Enums/Status.cs index 450406b69f..577ebe3009 100644 --- a/src/ModularPipelines/Enums/Status.cs +++ b/src/ModularPipelines/Enums/Status.cs @@ -57,7 +57,7 @@ public enum Status /// The module was retried. /// Retried, - + /// /// Unknown module status. /// diff --git a/src/ModularPipelines/Exceptions/SubModuleFailedException.cs b/src/ModularPipelines/Exceptions/SubModuleFailedException.cs index d7235dae65..2f4bcf8612 100644 --- a/src/ModularPipelines/Exceptions/SubModuleFailedException.cs +++ b/src/ModularPipelines/Exceptions/SubModuleFailedException.cs @@ -4,7 +4,7 @@ namespace ModularPipelines.Exceptions; public class SubModuleFailedException : PipelineException { - public SubModuleFailedException(SubModuleBase submodule, Exception exception) : + public SubModuleFailedException(SubModuleBase submodule, Exception exception) : base($"The Sub-Module {submodule.Name} has failed.", exception) { } diff --git a/src/ModularPipelines/Extensions/FileExtensions.cs b/src/ModularPipelines/Extensions/FileExtensions.cs index 29a3597cfd..d1b52d2c2b 100644 --- a/src/ModularPipelines/Extensions/FileExtensions.cs +++ b/src/ModularPipelines/Extensions/FileExtensions.cs @@ -51,7 +51,7 @@ public static File AssertExists(this File? file, string? message = null) { sb.Append($" - {file}"); } - + if (message is not null) { sb.Append($" - {message}"); diff --git a/src/ModularPipelines/Extensions/TypeExtensions.cs b/src/ModularPipelines/Extensions/TypeExtensions.cs index b126f066f3..75ae9cc632 100644 --- a/src/ModularPipelines/Extensions/TypeExtensions.cs +++ b/src/ModularPipelines/Extensions/TypeExtensions.cs @@ -8,7 +8,7 @@ public static bool IsOrInheritsFrom(this Type type, Type otherType) { return type == otherType || type.IsSubclassOf(otherType); } - + public static string GetRealTypeName(this Type type) { if (!type.IsGenericType) @@ -17,12 +17,12 @@ public static string GetRealTypeName(this Type type) } var stringBuilder = new StringBuilder(); - + stringBuilder.Append(type.Name.AsSpan(0, type.Name.IndexOf('`'))); stringBuilder.Append('<'); - + var appendComma = false; - + foreach (var genericTypeArgument in type.GetGenericArguments()) { if (appendComma) @@ -33,9 +33,9 @@ public static string GetRealTypeName(this Type type) stringBuilder.Append(GetRealTypeName(genericTypeArgument)); appendComma = true; } - + stringBuilder.Append('>'); - + return stringBuilder.ToString(); } } \ No newline at end of file diff --git a/src/ModularPipelines/FileSystem/File.cs b/src/ModularPipelines/FileSystem/File.cs index a037b97fa2..9a82861545 100644 --- a/src/ModularPipelines/FileSystem/File.cs +++ b/src/ModularPipelines/FileSystem/File.cs @@ -33,21 +33,21 @@ internal File(FileInfo fileInfo) public Task ReadAsync(CancellationToken cancellationToken = default) { ModuleLogger.Current.LogInformation("Reading File: {Path}", this); - + return System.IO.File.ReadAllTextAsync(Path, cancellationToken); } public Task ReadLinesAsync(CancellationToken cancellationToken = default) { ModuleLogger.Current.LogInformation("Reading File: {Path}", this); - + return System.IO.File.ReadAllLinesAsync(Path, cancellationToken); } public Task ReadBytesAsync(CancellationToken cancellationToken = default) { ModuleLogger.Current.LogInformation("Reading File: {Path}", this); - + return System.IO.File.ReadAllBytesAsync(Path, cancellationToken); } @@ -59,28 +59,28 @@ public FileStream GetStream(FileAccess fileAccess = FileAccess.ReadWrite) public Task WriteAsync(string contents, CancellationToken cancellationToken = default) { ModuleLogger.Current.LogInformation("Writing to File: {Path}", this); - + return System.IO.File.WriteAllTextAsync(Path, contents, cancellationToken); } public Task WriteAsync(byte[] contents, CancellationToken cancellationToken = default) { ModuleLogger.Current.LogInformation("Writing to File: {Path}", this); - + return System.IO.File.WriteAllBytesAsync(Path, contents, cancellationToken); } public Task WriteAsync(IEnumerable contents, CancellationToken cancellationToken = default) { ModuleLogger.Current.LogInformation("Writing to File: {Path}", this); - + return System.IO.File.WriteAllLinesAsync(Path, contents, cancellationToken); } public async Task WriteAsync(ReadOnlyMemory contents, CancellationToken cancellationToken = default) { ModuleLogger.Current.LogInformation("Writing to File: {Path}", this); - + await using var fileStream = System.IO.File.Create(Path); await fileStream.WriteAsync(contents, cancellationToken); } @@ -88,7 +88,7 @@ public async Task WriteAsync(ReadOnlyMemory contents, CancellationToken ca public async Task WriteAsync(Stream contents, CancellationToken cancellationToken = default) { ModuleLogger.Current.LogInformation("Writing to File: {Path}", this); - + await using var fileStream = System.IO.File.Create(Path); if (contents.CanSeek) @@ -98,18 +98,18 @@ public async Task WriteAsync(Stream contents, CancellationToken cancellationToke await contents.CopyToAsync(fileStream, cancellationToken); } - + public Task AppendAsync(string contents, CancellationToken cancellationToken = default) { ModuleLogger.Current.LogInformation("Writing to File: {Path}", this); - + return System.IO.File.AppendAllTextAsync(Path, contents, cancellationToken); } public Task AppendAsync(IEnumerable contents, CancellationToken cancellationToken = default) { ModuleLogger.Current.LogInformation("Writing to File: {Path}", this); - + return System.IO.File.AppendAllLinesAsync(Path, contents, cancellationToken); } @@ -135,7 +135,7 @@ public Task AppendAsync(IEnumerable contents, CancellationToken cancella public File Create() { ModuleLogger.Current.LogInformation("Creating File: {Path}", this); - + var fileStream = System.IO.File.Create(Path); fileStream.Dispose(); return this; @@ -166,7 +166,7 @@ public FileAttributes Attributes public void Delete() { ModuleLogger.Current.LogInformation("Deleting File: {File}", this); - + FileInfo.Delete(); } @@ -174,7 +174,7 @@ public void Delete() public File MoveTo(string path) { ModuleLogger.Current.LogInformation("Moving File: {Source} > {Destination}", this, path); - + FileInfo.MoveTo(path); return this; } @@ -199,7 +199,7 @@ public File CopyTo(string path) public File CopyTo(Folder folder) { ModuleLogger.Current.LogInformation("Copying File: {Source} > {Destination}", this, folder); - + folder.Create(); return CopyTo(System.IO.Path.Combine(folder.Path, Name)); } @@ -207,9 +207,9 @@ public File CopyTo(Folder folder) public static File GetNewTemporaryFilePath() { var path = System.IO.Path.Combine(System.IO.Path.GetTempPath(), System.IO.Path.GetRandomFileName()); - + ModuleLogger.Current.LogInformation("Temporary File Path: {Path}", path); - + return path!; } diff --git a/src/ModularPipelines/FileSystem/Folder.cs b/src/ModularPipelines/FileSystem/Folder.cs index 0d9c6c45a2..c92a01d146 100644 --- a/src/ModularPipelines/FileSystem/Folder.cs +++ b/src/ModularPipelines/FileSystem/Folder.cs @@ -61,7 +61,7 @@ public Folder Root { return this; } - + return DirectoryInfo.Root; } } @@ -75,7 +75,7 @@ public Folder Root public Folder Create() { ModuleLogger.Current.LogInformation("Creating Folder: {Path}", this); - + Directory.CreateDirectory(Path); return this; } @@ -83,14 +83,14 @@ public Folder Create() public void Delete() { ModuleLogger.Current.LogInformation("Deleting Folder: {Path}", this); - + DirectoryInfo.Delete(true); } public void Clean() { ModuleLogger.Current.LogInformation("Cleaning Folder: {Path}", this); - + foreach (var directory in DirectoryInfo.EnumerateDirectories("*", SearchOption.TopDirectoryOnly)) { directory.Delete(true); @@ -115,7 +115,7 @@ public Folder CopyTo(string targetPath) { System.IO.File.Copy(newPath, newPath.Replace(this, targetPath), true); } - + ModuleLogger.Current.LogInformation("Copying Folder: {Source} > {Destination}", this, targetPath); return new Folder(targetPath); @@ -132,27 +132,27 @@ public Folder MoveTo(string path) public Folder GetFolder(string name) { var directoryInfo = new DirectoryInfo(System.IO.Path.Combine(Path, name)); - + ModuleLogger.Current.LogInformation("Getting Folder: {Path}", directoryInfo.FullName); - + return directoryInfo; } public Folder CreateFolder(string name) { var folder = GetFolder(name).Create(); - + ModuleLogger.Current.LogInformation("Creating Folder: {Path}", folder); - + return folder; } public File GetFile(string name) { var fileInfo = new FileInfo(System.IO.Path.Combine(Path, name)); - + ModuleLogger.Current.LogInformation("Getting File: {Path}", fileInfo.FullName); - + return fileInfo; } @@ -178,7 +178,7 @@ public IEnumerable GetFolders(Func predicate, Func GetFiles(Func predicate, Func directoryExclusionFilters, [CallerArgumentExpression("predicate")] string predicateExpression = "") { ModuleLogger.Current.LogInformation("Searching Files in: {Path} > {Expression}", this, predicateExpression); - + return SafeWalk.EnumerateFiles(this, directoryExclusionFilters) .Select(x => new File(x)) .Distinct() @@ -223,9 +223,9 @@ public static Folder CreateTemporaryFolder() { var tempDirectory = System.IO.Path.Combine(System.IO.Path.GetTempPath(), System.IO.Path.GetRandomFileName().Replace(".", string.Empty)); Directory.CreateDirectory(tempDirectory); - + ModuleLogger.Current.LogInformation("Creating Temporary Folder: {Path}", tempDirectory); - + return tempDirectory!; } diff --git a/src/ModularPipelines/Helpers/CommandOptionsObjectArgumentParser.cs b/src/ModularPipelines/Helpers/CommandOptionsObjectArgumentParser.cs index f2aa3fb6fe..75a21321cf 100644 --- a/src/ModularPipelines/Helpers/CommandOptionsObjectArgumentParser.cs +++ b/src/ModularPipelines/Helpers/CommandOptionsObjectArgumentParser.cs @@ -71,7 +71,7 @@ private static void AddPlaceholderArguments(List precedingArguments, obj { return; } - + precedingArguments[indexOfMatchingPrecedingArgumentPlaceholder] = value; } } diff --git a/src/ModularPipelines/Helpers/NoOpDisposable.cs b/src/ModularPipelines/Helpers/NoOpDisposable.cs index 2b9f336841..061ee1b764 100644 --- a/src/ModularPipelines/Helpers/NoOpDisposable.cs +++ b/src/ModularPipelines/Helpers/NoOpDisposable.cs @@ -3,11 +3,11 @@ internal class NoOpDisposable : IDisposable { public static readonly NoOpDisposable Instance = new(); - + private NoOpDisposable() { } - + public void Dispose() { } diff --git a/src/ModularPipelines/Helpers/ParallelLimitProvider.cs b/src/ModularPipelines/Helpers/ParallelLimitProvider.cs index 027c5a612c..71a1f4feed 100644 --- a/src/ModularPipelines/Helpers/ParallelLimitProvider.cs +++ b/src/ModularPipelines/Helpers/ParallelLimitProvider.cs @@ -15,7 +15,7 @@ public AsyncSemaphore GetLock(Type parallelLimitType) { throw new Exception("Parallel Limit must be positive"); } - + return Locks.GetOrAdd(parallelLimit.GetType(), _ => new AsyncSemaphore(parallelLimit.Limit)); } } \ No newline at end of file diff --git a/src/ModularPipelines/Helpers/ProgressPrinter.cs b/src/ModularPipelines/Helpers/ProgressPrinter.cs index 78b3f76f06..2a88fa16c2 100644 --- a/src/ModularPipelines/Helpers/ProgressPrinter.cs +++ b/src/ModularPipelines/Helpers/ProgressPrinter.cs @@ -240,7 +240,7 @@ private static void RegisterSubModules(RunnableModule moduleToProcess, ProgressC CancellationToken cancellationToken, ProgressTask parentModuleTask) { var lastTask = parentModuleTask; - + moduleToProcess.Module.OnSubModuleCreated += (_, subModule) => { var moduleName = moduleToProcess.Module.GetType().Name; diff --git a/src/ModularPipelines/Http/Http.cs b/src/ModularPipelines/Http/Http.cs index 827c1b863b..60f8a7ea99 100644 --- a/src/ModularPipelines/Http/Http.cs +++ b/src/ModularPipelines/Http/Http.cs @@ -38,7 +38,7 @@ public async Task SendAsync(HttpOptions httpOptions, Cancel { return response; } - + return response.EnsureSuccessStatusCode(); } @@ -124,7 +124,7 @@ private async Task SendAndWrapLogging(HttpOptions httpOptio { await HttpLogger.PrintResponse(response, logger); } - + if (!httpOptions.ThrowOnNonSuccessStatusCode) { return response; diff --git a/src/ModularPipelines/Interfaces/IScopeDisposer.cs b/src/ModularPipelines/Interfaces/IScopeDisposer.cs index 2e71aa12db..5509948b87 100644 --- a/src/ModularPipelines/Interfaces/IScopeDisposer.cs +++ b/src/ModularPipelines/Interfaces/IScopeDisposer.cs @@ -5,7 +5,7 @@ namespace ModularPipelines.Interfaces; public interface IScopeDisposer : IDisposable { IEnumerable GetScopes(); - + void IDisposable.Dispose() { foreach (var serviceScope in GetScopes()) diff --git a/src/ModularPipelines/Logging/AfterPipelineLogger.cs b/src/ModularPipelines/Logging/AfterPipelineLogger.cs index 6a691e3e96..750594475a 100644 --- a/src/ModularPipelines/Logging/AfterPipelineLogger.cs +++ b/src/ModularPipelines/Logging/AfterPipelineLogger.cs @@ -11,7 +11,7 @@ public AfterPipelineLogger(ILogger logger) { _logger = logger; } - + public void LogOnPipelineEnd(string value) { _values.Add(value); diff --git a/src/ModularPipelines/Logging/IAfterPipelineLogger.cs b/src/ModularPipelines/Logging/IAfterPipelineLogger.cs index fb7abb11f7..52d4a09271 100644 --- a/src/ModularPipelines/Logging/IAfterPipelineLogger.cs +++ b/src/ModularPipelines/Logging/IAfterPipelineLogger.cs @@ -5,6 +5,6 @@ public interface IAfterPipelineLogger void LogOnPipelineEnd(string value); string GetOutput(); - + internal void WriteLogs(); } \ No newline at end of file diff --git a/src/ModularPipelines/Logging/ModuleLogger.cs b/src/ModularPipelines/Logging/ModuleLogger.cs index dc6b12a896..93d1d7e424 100644 --- a/src/ModularPipelines/Logging/ModuleLogger.cs +++ b/src/ModularPipelines/Logging/ModuleLogger.cs @@ -15,7 +15,7 @@ internal abstract class ModuleLogger : IModuleLogger protected static readonly object DisposeLock = new(); protected static readonly object LogLock = new(); protected Exception? _exception; - + internal DateTime LastLogWritten { get; set; } = DateTime.MinValue; public abstract void Log(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func formatter); @@ -66,7 +66,7 @@ public ModuleLogger(ILogger defaultLogger, { Dispose(); } - + public override IDisposable? BeginScope(TState state) { return new NoopDisposable(); @@ -85,7 +85,7 @@ public override void Log(LogLevel logLevel, EventId eventId, TState stat { return; } - + if (state?.GetType().FullName == "Microsoft.Extensions.Logging.FormattedLogValues") { TryObfuscateValues(state); diff --git a/src/ModularPipelines/Logging/ModuleLoggerProvider.cs b/src/ModularPipelines/Logging/ModuleLoggerProvider.cs index 2d0166721c..793c5aac2d 100644 --- a/src/ModularPipelines/Logging/ModuleLoggerProvider.cs +++ b/src/ModularPipelines/Logging/ModuleLoggerProvider.cs @@ -13,7 +13,7 @@ internal class ModuleLoggerProvider : IModuleLoggerProvider, IDisposable private readonly IModuleLoggerContainer _moduleLoggerContainer; private IModuleLogger? _moduleLogger; - + public ModuleLoggerProvider(IServiceProvider serviceProvider, IModuleLoggerContainer moduleLoggerContainer) { @@ -35,7 +35,7 @@ public IModuleLogger GetLogger() { return _moduleLogger = ModuleLogger.Values.Value; } - + var stackFrames = new StackTrace().GetFrames().ToList(); var module = GetModuleFromMarkerAttributes(stackFrames) diff --git a/src/ModularPipelines/Models/CommandResult.cs b/src/ModularPipelines/Models/CommandResult.cs index 48e57904bf..052fbee4c0 100644 --- a/src/ModularPipelines/Models/CommandResult.cs +++ b/src/ModularPipelines/Models/CommandResult.cs @@ -13,7 +13,7 @@ public record CommandResult public IReadOnlyDictionary EnvironmentVariables { get; } public string WorkingDirectory { get; } - + public CommandResult( string commandInput, string workingDirectory, diff --git a/src/ModularPipelines/Models/IModuleResult.cs b/src/ModularPipelines/Models/IModuleResult.cs index dd431d75a8..8c351a5351 100644 --- a/src/ModularPipelines/Models/IModuleResult.cs +++ b/src/ModularPipelines/Models/IModuleResult.cs @@ -23,7 +23,7 @@ public interface IModuleResult /// Gets when the module ended. /// public DateTimeOffset ModuleEnd { get; } - + /// /// Gets the exception that occurred in the module, if one was thrown. /// @@ -38,7 +38,7 @@ public interface IModuleResult /// Gets the type of result that is held. /// public ModuleResultType ModuleResultType { get; } - + /// /// Gets the status of the module. /// diff --git a/src/ModularPipelines/Models/PipelineSummary.cs b/src/ModularPipelines/Models/PipelineSummary.cs index e23901d90d..8a75d7750c 100644 --- a/src/ModularPipelines/Models/PipelineSummary.cs +++ b/src/ModularPipelines/Models/PipelineSummary.cs @@ -42,7 +42,7 @@ internal PipelineSummary(IReadOnlyList modules, TotalDuration = totalDuration; Start = start; End = end; - + // If the pipeline is errored, some modules could still be waiting or processing. // But we're ending the pipeline so let's signal them to fail. foreach (var moduleBase in modules) diff --git a/src/ModularPipelines/Modules/Module.cs b/src/ModularPipelines/Modules/Module.cs index 59116055b4..3ef25d8d0c 100644 --- a/src/ModularPipelines/Modules/Module.cs +++ b/src/ModularPipelines/Modules/Module.cs @@ -32,21 +32,21 @@ public abstract partial class Module : ModuleBase { yield return AddDependency(customAttribute.Type, customAttribute.IgnoreIfNotRegistered); } - + foreach (var customAttribute in GetType().GetCustomAttributesIncludingBaseInterfaces()) { var types = Context.ServiceProvider.GetServices() .Where(x => x.GetType().IsOrInheritsFrom(customAttribute.Type)); - + foreach (var moduleBase in types) { - yield return AddDependency(moduleBase.GetType(), false); + yield return AddDependency(moduleBase.GetType(), false); } } } internal override IHistoryHandler HistoryHandler { get; } - + internal override ICancellationHandler CancellationHandler { get; } internal override ISkipHandler SkipHandler { get; } @@ -99,7 +99,7 @@ internal ModuleResult Result internal override Task ExecutionTask => ModuleResultTaskCompletionSource.Task; internal override async Task GetModuleResult() => await this; - + internal override async Task StartInternal() { if (IsStarted || ModuleResultTaskCompletionSource.Task.IsCompleted) @@ -155,7 +155,7 @@ internal override async Task StartInternal() StatusHandler.LogModuleStatus(); } } - + /// /// Gets the Module of type {TModule}. /// @@ -291,7 +291,7 @@ private void SetResult(ModuleResult result) if (isRetry) { Context.Logger.LogWarning("An error occurred. Retrying..."); - + lock (SubModuleBasesLock) { foreach (var subModuleBase in SubModuleBases.Where(x => x.Status != Status.Successful)) @@ -323,7 +323,7 @@ private void SetResult(ModuleResult result) { return; } - + if (ModuleRunType == ModuleRunType.OnSuccessfulDependencies) { Context.EngineCancellationToken.Token.ThrowIfCancellationRequested(); @@ -339,7 +339,7 @@ private void SetResult(ModuleResult result) #else timeoutCancellationTokenSource.Cancel(); #endif - + // Will throw a timeout exception if configured and timeout is reached await finishedTask; @@ -354,9 +354,9 @@ private async Task ThrowQuicklyOnFailure(IAsyncResult mainExecutionTask, IAsyncR { throw new ModuleTimeoutException(this); } - + ModuleCancellationTokenSource.Token.ThrowIfCancellationRequested(); - + await Task.Delay(TimeSpan.FromMilliseconds(500)); } } diff --git a/src/ModularPipelines/Modules/ModuleBase.cs b/src/ModularPipelines/Modules/ModuleBase.cs index a31a553da3..f26bfbad6b 100644 --- a/src/ModularPipelines/Modules/ModuleBase.cs +++ b/src/ModularPipelines/Modules/ModuleBase.cs @@ -49,9 +49,9 @@ protected ModuleBase() internal abstract IStatusHandler StatusHandler { get; } internal abstract IErrorHandler ErrorHandler { get; } - + internal abstract void TryCancel(); - + private IPipelineContext? _context; // Late Initialisation /// @@ -84,13 +84,13 @@ protected set internal SkipDecision SkipResult { get; set; } = SkipDecision.DoNotSkip; internal abstract Task ExecutionTask { get; } - + internal abstract Task StartInternal(); internal readonly CancellationTokenSource ModuleCancellationTokenSource = new(); internal readonly Stopwatch Stopwatch = new(); - + /// /// Gets the start time of the module. /// @@ -123,8 +123,8 @@ protected set internal readonly List SubModuleBases = new(); internal EventHandler? OnSubModuleCreated; - - internal abstract Task GetModuleResult(); + + internal abstract Task GetModuleResult(); /// /// Starts a Sub Module which will display in the pipeline progress in the console. @@ -198,7 +198,7 @@ protected Task SubModule(string name, Func action) }); } - protected EventHandler? OnInitialised { get; set; } + protected EventHandler? OnInitialised { get; set; } } /// diff --git a/src/ModularPipelines/Options/HttpOptions.cs b/src/ModularPipelines/Options/HttpOptions.cs index 6f7297060a..203c30748f 100644 --- a/src/ModularPipelines/Options/HttpOptions.cs +++ b/src/ModularPipelines/Options/HttpOptions.cs @@ -8,7 +8,7 @@ public record HttpOptions(HttpRequestMessage HttpRequestMessage) /// Gets or sets and sets an optional HttpClient for handling the request. /// public HttpClient? HttpClient { get; set; } - + /// /// Gets or sets a value indicating whether to throw an exception if the request returns a bad HTTP status code. /// diff --git a/src/ModularPipelines/Options/Linux/AptGet/AptGetOptions.cs b/src/ModularPipelines/Options/Linux/AptGet/AptGetOptions.cs index 8ae7507d7d..69743c277a 100644 --- a/src/ModularPipelines/Options/Linux/AptGet/AptGetOptions.cs +++ b/src/ModularPipelines/Options/Linux/AptGet/AptGetOptions.cs @@ -12,74 +12,74 @@ public AptGetOptions() : base("apt-get") } [BooleanCommandSwitch("--download-only")] - public bool? DownloadOnly { get; set; } + public virtual bool? DownloadOnly { get; set; } [BooleanCommandSwitch("--fix-broken")] - public bool? FixBroken { get; set; } + public virtual bool? FixBroken { get; set; } [BooleanCommandSwitch("--fix-missing")] - public bool? FixMissing { get; set; } + public virtual bool? FixMissing { get; set; } [BooleanCommandSwitch("--no-download")] - public bool? NoDownload { get; set; } + public virtual bool? NoDownload { get; set; } [BooleanCommandSwitch("--quiet")] - public bool? Quiet { get; set; } + public virtual bool? Quiet { get; set; } [BooleanCommandSwitch("--dry-run")] - public bool? DryRun { get; set; } + public virtual bool? DryRun { get; set; } [BooleanCommandSwitch("--assume-yes")] - public bool? AssumeYes { get; set; } = true; + public virtual bool? AssumeYes { get; set; } = true; [BooleanCommandSwitch("--show-upgraded")] - public bool? ShowUpgraded { get; set; } + public virtual bool? ShowUpgraded { get; set; } [BooleanCommandSwitch("--verbose-versions")] - public bool? VerboseVersions { get; set; } + public virtual bool? VerboseVersions { get; set; } [BooleanCommandSwitch("--build")] - public bool? Build { get; set; } + public virtual bool? Build { get; set; } [BooleanCommandSwitch("--ignore-hold")] - public bool? IgnoreHold { get; set; } + public virtual bool? IgnoreHold { get; set; } [BooleanCommandSwitch("--no-upgrade")] - public bool? NoUpgrade { get; set; } + public virtual bool? NoUpgrade { get; set; } [BooleanCommandSwitch("--force-yes")] - public bool? ForceYes { get; set; } + public virtual bool? ForceYes { get; set; } [BooleanCommandSwitch("--print-uris")] - public bool? PrintUris { get; set; } + public virtual bool? PrintUris { get; set; } [BooleanCommandSwitch("--reinstall")] - public bool? Reinstall { get; set; } + public virtual bool? Reinstall { get; set; } [BooleanCommandSwitch("--list-cleanup")] - public bool? ListCleanup { get; set; } + public virtual bool? ListCleanup { get; set; } [BooleanCommandSwitch("--default-release")] - public bool? DefaultRelease { get; set; } + public virtual bool? DefaultRelease { get; set; } [BooleanCommandSwitch("--trivial-only")] - public bool? TrivialOnly { get; set; } + public virtual bool? TrivialOnly { get; set; } [BooleanCommandSwitch("--no-remove")] - public bool? NoRemove { get; set; } + public virtual bool? NoRemove { get; set; } [BooleanCommandSwitch("--only-source")] - public bool? OnlySource { get; set; } + public virtual bool? OnlySource { get; set; } [BooleanCommandSwitch("--help")] - public bool? Help { get; set; } + public virtual bool? Help { get; set; } [BooleanCommandSwitch("--version")] - public bool? Version { get; set; } + public virtual bool? Version { get; set; } [BooleanCommandSwitch("--config-file")] - public bool? ConfigFile { get; set; } + public virtual bool? ConfigFile { get; set; } [BooleanCommandSwitch("--option")] - public bool? Option { get; set; } + public virtual bool? Option { get; set; } } \ No newline at end of file diff --git a/src/ModularPipelines/Options/Linux/DpkgInstallOptions.cs b/src/ModularPipelines/Options/Linux/DpkgInstallOptions.cs index 41f1a468d1..2010764d52 100644 --- a/src/ModularPipelines/Options/Linux/DpkgInstallOptions.cs +++ b/src/ModularPipelines/Options/Linux/DpkgInstallOptions.cs @@ -13,5 +13,5 @@ public DpkgInstallOptions(string path) : base("dpkg") } [CommandSwitch("-i")] - public string Path { get; init; } + public virtual string Path { get; init; } } \ No newline at end of file diff --git a/src/ModularPipelines/Options/PipelineOptions.cs b/src/ModularPipelines/Options/PipelineOptions.cs index 808ec61277..7c4434aa63 100644 --- a/src/ModularPipelines/Options/PipelineOptions.cs +++ b/src/ModularPipelines/Options/PipelineOptions.cs @@ -14,7 +14,7 @@ public record PipelineOptions public ICollection? IgnoreCategories { get; set; } private bool _showProgressInConsole = AnsiConsole.Profile.Capabilities.Interactive; - + public bool ShowProgressInConsole { get => _showProgressInConsole; diff --git a/src/ModularPipelines/Options/Windows/ExeInstallerOptions.cs b/src/ModularPipelines/Options/Windows/ExeInstallerOptions.cs index f94a6784cd..4a1e967b14 100644 --- a/src/ModularPipelines/Options/Windows/ExeInstallerOptions.cs +++ b/src/ModularPipelines/Options/Windows/ExeInstallerOptions.cs @@ -7,32 +7,32 @@ namespace ModularPipelines.Options.Windows; public record ExeInstallerOptions(string ExePath) : CommandLineToolOptions(ExePath) { [BooleanCommandSwitch("/exenoui")] - public bool? DisableUserInterface { get; set; } = true; + public virtual bool? DisableUserInterface { get; set; } = true; [BooleanCommandSwitch("/norestart")] - public bool NoRestart { get; init; } = true; + public virtual bool NoRestart { get; init; } = true; [BooleanCommandSwitch("/restartapplications")] - public bool RestartApplications { get; init; } = true; + public virtual bool RestartApplications { get; init; } = true; [BooleanCommandSwitch("/qn")] - internal bool? DisableUserInterface2 => DisableUserInterface; + internal virtual bool? DisableUserInterface2 => DisableUserInterface; [BooleanCommandSwitch("/quiet")] - internal bool? DisableUserInterface3 => DisableUserInterface; + internal virtual bool? DisableUserInterface3 => DisableUserInterface; [BooleanCommandSwitch("/silent")] - internal bool? DisableUserInterface4 => DisableUserInterface; + internal virtual bool? DisableUserInterface4 => DisableUserInterface; [BooleanCommandSwitch("/verysilent")] - internal bool? DisableUserInterface5 => DisableUserInterface; + internal virtual bool? DisableUserInterface5 => DisableUserInterface; [BooleanCommandSwitch("/suppressmsgboxes")] - internal bool? DisableUserInterface6 => DisableUserInterface; + internal virtual bool? DisableUserInterface6 => DisableUserInterface; [BooleanCommandSwitch("/passive")] - internal bool? DisableUserInterface7 => DisableUserInterface; + internal virtual bool? DisableUserInterface7 => DisableUserInterface; [BooleanCommandSwitch("/sp-")] - internal bool? DisableUserInterface8 => DisableUserInterface; + internal virtual bool? DisableUserInterface8 => DisableUserInterface; } \ No newline at end of file diff --git a/src/ModularPipelines/Options/Windows/MsiInstallerOptions.cs b/src/ModularPipelines/Options/Windows/MsiInstallerOptions.cs index 4f2cf3db2d..4655615c9c 100644 --- a/src/ModularPipelines/Options/Windows/MsiInstallerOptions.cs +++ b/src/ModularPipelines/Options/Windows/MsiInstallerOptions.cs @@ -7,32 +7,32 @@ namespace ModularPipelines.Options.Windows; public record MsiInstallerOptions([property: CommandSwitch("/package")] string MsiPath) : CommandLineToolOptions("msiexec.exe") { [BooleanCommandSwitch("/exenoui")] - public bool? DisableUserInterface { get; set; } = true; + public virtual bool? DisableUserInterface { get; set; } = true; [BooleanCommandSwitch("/norestart")] - public bool NoRestart { get; init; } = true; + public virtual bool NoRestart { get; init; } = true; [BooleanCommandSwitch("/restartapplications")] - public bool RestartApplications { get; init; } = true; + public virtual bool RestartApplications { get; init; } = true; [BooleanCommandSwitch("/qn")] - internal bool? DisableUserInterface2 => DisableUserInterface; + internal virtual bool? DisableUserInterface2 => DisableUserInterface; [BooleanCommandSwitch("/quiet")] - internal bool? DisableUserInterface3 => DisableUserInterface; + internal virtual bool? DisableUserInterface3 => DisableUserInterface; [BooleanCommandSwitch("/silent")] - internal bool? DisableUserInterface4 => DisableUserInterface; + internal virtual bool? DisableUserInterface4 => DisableUserInterface; [BooleanCommandSwitch("/verysilent")] - internal bool? DisableUserInterface5 => DisableUserInterface; + internal virtual bool? DisableUserInterface5 => DisableUserInterface; [BooleanCommandSwitch("/suppressmsgboxes")] - internal bool? DisableUserInterface6 => DisableUserInterface; + internal virtual bool? DisableUserInterface6 => DisableUserInterface; [BooleanCommandSwitch("/passive")] - internal bool? DisableUserInterface7 => DisableUserInterface; + internal virtual bool? DisableUserInterface7 => DisableUserInterface; [BooleanCommandSwitch("/sp-")] - internal bool? DisableUserInterface8 => DisableUserInterface; + internal virtual bool? DisableUserInterface8 => DisableUserInterface; } \ No newline at end of file diff --git a/src/ModularPipelines/SmartCollapsableLogging.cs b/src/ModularPipelines/SmartCollapsableLogging.cs index 732779dc26..54ca444b29 100644 --- a/src/ModularPipelines/SmartCollapsableLogging.cs +++ b/src/ModularPipelines/SmartCollapsableLogging.cs @@ -18,9 +18,9 @@ private IModuleLogger ModuleLogger get { var scope = _serviceProvider.CreateScope(); - + _scopes.Add(scope); - + return scope .ServiceProvider .GetRequiredService() diff --git a/test/ModularPipelines.TestHelpers/TestBase.cs b/test/ModularPipelines.TestHelpers/TestBase.cs index bdacd5dde2..e0e4d35c88 100644 --- a/test/ModularPipelines.TestHelpers/TestBase.cs +++ b/test/ModularPipelines.TestHelpers/TestBase.cs @@ -35,7 +35,7 @@ public async Task RunModule(TestHostSettings testHostSettings) _hosts.Add(host); var results = await host.ExecutePipelineAsync(); - + return results.Modules.OfType().Single(); } diff --git a/test/ModularPipelines.TestHelpers/TestPipelineHostBuilder.cs b/test/ModularPipelines.TestHelpers/TestPipelineHostBuilder.cs index 63cfdc383d..f79225adb5 100644 --- a/test/ModularPipelines.TestHelpers/TestPipelineHostBuilder.cs +++ b/test/ModularPipelines.TestHelpers/TestPipelineHostBuilder.cs @@ -10,7 +10,7 @@ namespace ModularPipelines.TestHelpers; public static class TestPipelineHostBuilder { public static PipelineHostBuilder Create() => Create(new TestHostSettings()); - + public static PipelineHostBuilder Create(TestHostSettings testHostSettings) { return new PipelineHostBuilder() @@ -26,7 +26,7 @@ public static PipelineHostBuilder Create(TestHostSettings testHostSettings) opt.PrintLogo = false; opt.PrintDependencyChains = false; }); - + if (testHostSettings.ClearLogProviders) { collection.AddLogging(builder => builder.ClearProviders()); diff --git a/test/ModularPipelines.UnitTests/AfterPipelineLoggerTests.cs b/test/ModularPipelines.UnitTests/AfterPipelineLoggerTests.cs index bf7a994c6d..6348ee1045 100644 --- a/test/ModularPipelines.UnitTests/AfterPipelineLoggerTests.cs +++ b/test/ModularPipelines.UnitTests/AfterPipelineLoggerTests.cs @@ -19,7 +19,7 @@ private class AfterPipelineLoggingModule : Module return null; } } - + private class AfterPipelineLoggingWithExceptionModule : Module { protected override async Task?> ExecuteAsync(IPipelineContext context, CancellationToken cancellationToken) @@ -29,7 +29,7 @@ private class AfterPipelineLoggingWithExceptionModule : Module throw new Exception(); } } - + [Test] public async Task LogsAfterPipeline() { @@ -46,10 +46,10 @@ public async Task LogsAfterPipeline() await host.ExecutePipelineAsync(); await host.DisposeAsync(); - + await Assert.That(stringBuilder.ToString().Trim()).EndsWith("Blah!"); } - + [Test] public async Task LogsAfterPipelineWithException() { @@ -73,7 +73,7 @@ public async Task LogsAfterPipelineWithException() } await host.DisposeAsync(); - + await Assert.That(stringBuilder.ToString().Trim()).EndsWith("Blah!"); } } \ No newline at end of file diff --git a/test/ModularPipelines.UnitTests/AlwaysRunTests.cs b/test/ModularPipelines.UnitTests/AlwaysRunTests.cs index 4151a28253..fe94d9d203 100644 --- a/test/ModularPipelines.UnitTests/AlwaysRunTests.cs +++ b/test/ModularPipelines.UnitTests/AlwaysRunTests.cs @@ -59,7 +59,7 @@ public async Task AlwaysRunModules_Will_Run_Even_With_Exception() { var (myModule1, myModule2, myModule3, myModule4) = await RunModules(); - + using (Assert.Multiple()) { await Assert.That(myModule1.Status).IsEqualTo(Status.Failed); diff --git a/test/ModularPipelines.UnitTests/CommandParserTests.cs b/test/ModularPipelines.UnitTests/CommandParserTests.cs index 76d50de5ae..2b5f4e05af 100644 --- a/test/ModularPipelines.UnitTests/CommandParserTests.cs +++ b/test/ModularPipelines.UnitTests/CommandParserTests.cs @@ -155,7 +155,7 @@ public async Task No_Matching_Placeholder_Positional_Is_Appended() { Project = "MyProject.csproj" }); - + await Assert.That(result.CommandInput).IsEqualTo("dotnet add MyProject.csproj"); } @@ -221,7 +221,7 @@ private record PlaceholderToolOptions2(string Package, string Project) : Command [CommandSwitch("--source")] public string? Source { get; set; } } - + [CommandPrecedingArguments("add")] private record PlaceholderToolOptions3() : CommandLineToolOptions("dotnet") { diff --git a/test/ModularPipelines.UnitTests/DependsOnAllInheritingFromTests.cs b/test/ModularPipelines.UnitTests/DependsOnAllInheritingFromTests.cs index 6725ace280..34520a19ca 100644 --- a/test/ModularPipelines.UnitTests/DependsOnAllInheritingFromTests.cs +++ b/test/ModularPipelines.UnitTests/DependsOnAllInheritingFromTests.cs @@ -10,7 +10,7 @@ public class DependsOnAllInheritingFromTests : TestBase private abstract class BaseModule : Module { } - + private class Module1 : BaseModule { protected override async Task?> ExecuteAsync(IPipelineContext context, CancellationToken cancellationToken) @@ -63,13 +63,13 @@ public async Task No_Exception_Thrown_When_Dependent_Module_Present() var module2 = pipelineSummary.GetModule(); var module3 = pipelineSummary.GetModule(); var module4 = pipelineSummary.GetModule(); - + await Assert.That(module4.StartTime).IsGreaterThanOrEqualTo(module1.StartTime.Add(TimeSpan.FromSeconds(1))); await Assert.That(module4.StartTime).IsGreaterThanOrEqualTo(module1.EndTime); - + await Assert.That(module4.StartTime).IsGreaterThanOrEqualTo(module2.StartTime.Add(TimeSpan.FromSeconds(1))); await Assert.That(module4.StartTime).IsGreaterThanOrEqualTo(module2.EndTime); - + await Assert.That(module4.StartTime).IsGreaterThanOrEqualTo(module3.StartTime.Add(TimeSpan.FromSeconds(1))); await Assert.That(module4.StartTime).IsGreaterThanOrEqualTo(module3.EndTime); } diff --git a/test/ModularPipelines.UnitTests/EngineCancellationTokenTests.cs b/test/ModularPipelines.UnitTests/EngineCancellationTokenTests.cs index 06d4dd7cb7..ba79d0736f 100644 --- a/test/ModularPipelines.UnitTests/EngineCancellationTokenTests.cs +++ b/test/ModularPipelines.UnitTests/EngineCancellationTokenTests.cs @@ -84,7 +84,7 @@ public async Task When_Cancel_Engine_Token_Without_DependsOn_Then_Modules_Cancel var pipelineTask = host.ExecutePipelineAsync(); await Task.Delay(TimeSpan.FromSeconds(10)); - + using (Assert.Multiple()) { await Assert.That(async () => await pipelineTask).ThrowsException(); diff --git a/test/ModularPipelines.UnitTests/Extensions/BooleanExtensionTests.cs b/test/ModularPipelines.UnitTests/Extensions/BooleanExtensionTests.cs index 02360161cf..2d1d4ebe9d 100644 --- a/test/ModularPipelines.UnitTests/Extensions/BooleanExtensionTests.cs +++ b/test/ModularPipelines.UnitTests/Extensions/BooleanExtensionTests.cs @@ -8,7 +8,7 @@ public class BooleanExtensionTests public async Task True() { var trueSkipDecision = true.AsSkipDecisionIfTrue("My reason"); - + using (Assert.Multiple()) { await Assert.That(trueSkipDecision.ShouldSkip).IsTrue(); diff --git a/test/ModularPipelines.UnitTests/Extensions/CommandExtensionsTests.cs b/test/ModularPipelines.UnitTests/Extensions/CommandExtensionsTests.cs index 12f31c166f..889a93b06d 100644 --- a/test/ModularPipelines.UnitTests/Extensions/CommandExtensionsTests.cs +++ b/test/ModularPipelines.UnitTests/Extensions/CommandExtensionsTests.cs @@ -10,7 +10,7 @@ public async Task ToToolOptions_SingleArg() { var commandLineOptions = new CommandLineOptions() .ToCommandLineToolOptions("mytool", "arg1"); - + using (Assert.Multiple()) { await Assert.That(commandLineOptions.Tool).IsEqualTo("mytool"); @@ -23,20 +23,20 @@ public async Task ToToolOptions_MultipleArgs() { var commandLineOptions = new CommandLineOptions() .ToCommandLineToolOptions("mytool", ["arg1", "arg2"]); - + using (Assert.Multiple()) { await Assert.That(commandLineOptions.Tool).IsEqualTo("mytool"); await Assert.That(commandLineOptions.Arguments!).IsEquivalentTo(["arg1", "arg2"]); } } - + [Test] public async Task ToToolOptions_MultipleArgs_IEnumerable() { var commandLineOptions = new CommandLineOptions() .ToCommandLineToolOptions("mytool", new HashSet(["arg1", "arg2"])); - + using (Assert.Multiple()) { await Assert.That(commandLineOptions.Tool).IsEqualTo("mytool"); @@ -50,7 +50,7 @@ public async Task WithArguments_AddsToExisting() var commandLineOptions = new CommandLineOptions() .ToCommandLineToolOptions("mytool", ["arg1", "arg2"]) .WithArguments(["arg3", "arg4", "arg5"]); - + using (Assert.Multiple()) { await Assert.That(commandLineOptions.Tool).IsEqualTo("mytool"); diff --git a/test/ModularPipelines.UnitTests/Extensions/FileExtensionsTests.cs b/test/ModularPipelines.UnitTests/Extensions/FileExtensionsTests.cs index 8cc7a43dad..d1ca5b7e76 100644 --- a/test/ModularPipelines.UnitTests/Extensions/FileExtensionsTests.cs +++ b/test/ModularPipelines.UnitTests/Extensions/FileExtensionsTests.cs @@ -48,17 +48,17 @@ await Assert.That(paths).IsEquivalentTo([ public async Task NotFoundMessage() { var file = new Folder(Environment.CurrentDirectory).FindFile(_ => false); - + var exception = Assert.Throws(() => file.AssertExists("My message")); await Assert.That(exception.Message).IsEqualTo("The file does not exist - My message"); } - + [Test] public async Task NotFoundWithoutMessage() { var file = new Folder(Environment.CurrentDirectory).FindFile(_ => false); - + var exception = Assert.Throws(() => file.AssertExists()); await Assert.That(exception.Message).IsEqualTo("The file does not exist"); diff --git a/test/ModularPipelines.UnitTests/FileSystemContextTests.cs b/test/ModularPipelines.UnitTests/FileSystemContextTests.cs index ebd22e85fe..9d94f737e6 100644 --- a/test/ModularPipelines.UnitTests/FileSystemContextTests.cs +++ b/test/ModularPipelines.UnitTests/FileSystemContextTests.cs @@ -16,7 +16,7 @@ public async Task Move_File() var newLocation = File.GetNewTemporaryFilePath().Path; context.MoveFile(file, newLocation); - + using (Assert.Multiple()) { await Assert.That(file.Path).IsEqualTo(newLocation); @@ -35,7 +35,7 @@ public async Task Copy_File() var newLocation = File.GetNewTemporaryFilePath().Path; var newFile = context.CopyFile(file, newLocation); - + using (Assert.Multiple()) { await Assert.That(file.Path).IsNotEqualTo(newLocation); @@ -65,7 +65,7 @@ public async Task File_Data_Populated() var context = await GetService(); var file = await CreateRandomFile(); - + using (Assert.Multiple()) { await Assert.That(context.GetFileAttributes(file).ToString()).IsNotNull(); @@ -83,7 +83,7 @@ public async Task Move_Folder() var newLocation = File.GetNewTemporaryFilePath().Path; context.MoveFolder(folder, newLocation); - + using (Assert.Multiple()) { await Assert.That(folder.Path.TrimEnd('\\').TrimEnd('/')).IsEqualTo(newLocation); @@ -102,7 +102,7 @@ public async Task Copy_Folder() var newLocation = File.GetNewTemporaryFilePath().Path; var newFile = context.CopyFolder(folder, newLocation); - + using (Assert.Multiple()) { await Assert.That(folder.Path.TrimEnd('\\').TrimEnd('/')).IsNotEqualTo(newLocation); @@ -132,7 +132,7 @@ public async Task Folder_Data_Populated() var context = await GetService(); var folder = Folder.CreateTemporaryFolder(); - + using (Assert.Multiple()) { await Assert.That(context.GetFolderAttributes(folder).ToString()).IsNotNull(); diff --git a/test/ModularPipelines.UnitTests/FileTests.cs b/test/ModularPipelines.UnitTests/FileTests.cs index 88c578a8db..be24eb18b4 100644 --- a/test/ModularPipelines.UnitTests/FileTests.cs +++ b/test/ModularPipelines.UnitTests/FileTests.cs @@ -26,7 +26,7 @@ public async Task MoveTo() var file = await CreateRandomFile(); var file2 = new File(Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("N"))); - + using (Assert.Multiple()) { await Assert.That(file.Exists).IsTrue(); @@ -34,7 +34,7 @@ public async Task MoveTo() } file.MoveTo(file2); - + using (Assert.Multiple()) { await Assert.That(new File(file.OriginalPath).Exists).IsFalse(); @@ -48,7 +48,7 @@ public async Task MoveTo() public async Task Data_Is_Populated() { var file = await CreateRandomFile(); - + using (Assert.Multiple()) { await Assert.That(file.Exists).IsTrue(); @@ -72,7 +72,7 @@ public async Task CopyTo() var file = await CreateRandomFile(); var file2 = new File(Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("N"))); - + using (Assert.Multiple()) { await Assert.That(file.Exists).IsTrue(); @@ -80,7 +80,7 @@ public async Task CopyTo() } file.CopyTo(file2); - + using (Assert.Multiple()) { await Assert.That(file.Exists).IsTrue(); @@ -154,7 +154,7 @@ await file.WriteAsync([ var plainText = await file.ReadAsync(); var lines = await file.ReadLinesAsync(); - + using (Assert.Multiple()) { await Assert.That(plainText).IsEqualTo($"Hello{Environment.NewLine}world{Environment.NewLine}"); @@ -261,7 +261,7 @@ public async Task EqualityTrue() var path = Path.GetRandomFileName(); var file = new File(path); var file2 = new File(path); - + using (Assert.Multiple()) { await Assert.That(file).IsEqualTo(file2); @@ -276,7 +276,7 @@ public async Task EqualityFalse() { var file = new File(Path.GetRandomFileName()); var file2 = new File(Path.GetRandomFileName()); - + using (Assert.Multiple()) { await Assert.That(file).IsNotEqualTo(file2); @@ -338,7 +338,7 @@ public async Task MoveTo_Folder() var file = await CreateRandomFile(); file.MoveTo(new Folder(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData))); } - + [Test] public async Task CopyTo_Folder() { diff --git a/test/ModularPipelines.UnitTests/FolderTests.cs b/test/ModularPipelines.UnitTests/FolderTests.cs index d552235fb0..49797645f3 100644 --- a/test/ModularPipelines.UnitTests/FolderTests.cs +++ b/test/ModularPipelines.UnitTests/FolderTests.cs @@ -39,7 +39,7 @@ private class FindFileModule : Module protected override async Task ExecuteAsync(IPipelineContext context, CancellationToken cancellationToken) { await Task.CompletedTask; - + return context.Git().RootDirectory.FindFile(x => x.Name == "README.md"); } } @@ -74,20 +74,20 @@ public async Task FindFile() [Test] public async Task FindFileLogs() { - var stringBuilder = new StringBuilder(); - - await TestPipelineHostBuilder.Create() - .ConfigureServices((_, collection) => - { - collection - .AddSingleton>( - new StringLogger(stringBuilder)) - .AddModule(); - }) - .ExecutePipelineAsync(); - - var actualLogResult = stringBuilder.ToString().Trim(); - await Assert.That(actualLogResult).Contains("x => x.Name == \"README.md\""); + var stringBuilder = new StringBuilder(); + + await TestPipelineHostBuilder.Create() + .ConfigureServices((_, collection) => + { + collection + .AddSingleton>( + new StringLogger(stringBuilder)) + .AddModule(); + }) + .ExecutePipelineAsync(); + + var actualLogResult = stringBuilder.ToString().Trim(); + await Assert.That(actualLogResult).Contains("x => x.Name == \"README.md\""); } [Test] @@ -131,7 +131,7 @@ public async Task MoveTo() } folder.MoveTo(folder2); - + using (Assert.Multiple()) { await Assert.That(new Folder(folder.OriginalPath).Exists).IsFalse(); @@ -162,7 +162,7 @@ public async Task CopyTo() } folder.CopyTo(folder2); - + using (Assert.Multiple()) { await Assert.That(folder.Exists).IsTrue(); @@ -176,7 +176,7 @@ public async Task CopyTo() public async Task Data_Is_Populated() { var folder = CreateRandomFolder(); - + using (Assert.Multiple()) { await Assert.That(folder.Exists).IsTrue(); @@ -225,7 +225,7 @@ public async Task CreateSubfolder() await Assert.That(folderBeforeCreation.Exists).IsFalse(); var subfolder = folder.CreateFolder("Foo"); - + using (Assert.Multiple()) { await Assert.That(subfolder.Exists).IsTrue(); @@ -288,7 +288,7 @@ public async Task EqualityTrue() var path = Path.GetRandomFileName(); var folder = new Folder(path); var folder2 = new Folder(path); - + using (Assert.Multiple()) { await Assert.That(folder).IsEqualTo(folder2); @@ -303,7 +303,7 @@ public async Task EqualityFalse() { var folder = new Folder(Path.GetRandomFileName()); var folder2 = new Folder(Path.GetRandomFileName()); - + using (Assert.Multiple()) { await Assert.That(folder).IsNotEqualTo(folder2); diff --git a/test/ModularPipelines.UnitTests/GitInformationTests.cs b/test/ModularPipelines.UnitTests/GitInformationTests.cs index 001ebc1cf4..cfc03be6a6 100644 --- a/test/ModularPipelines.UnitTests/GitInformationTests.cs +++ b/test/ModularPipelines.UnitTests/GitInformationTests.cs @@ -10,11 +10,11 @@ public class GitInformationTests : TestBase public async Task Can_Send_Request_With_String_To_Request_Implicit_Conversion() { var context = await GetService(); - + var gitInformation = context.Git().Information; var branch = gitInformation.BranchName; - + await Assert.That(branch).IsNotNull().And.IsNotEmpty(); } } \ No newline at end of file diff --git a/test/ModularPipelines.UnitTests/Helpers/Base64Tests.cs b/test/ModularPipelines.UnitTests/Helpers/Base64Tests.cs index a0a312c640..48978a826e 100644 --- a/test/ModularPipelines.UnitTests/Helpers/Base64Tests.cs +++ b/test/ModularPipelines.UnitTests/Helpers/Base64Tests.cs @@ -22,7 +22,7 @@ public async Task To_Base64_Has_Not_Errored() var module = await RunModule(); var moduleResult = await module; - + using (Assert.Multiple()) { await Assert.That(moduleResult.ModuleResultType).IsEqualTo(ModuleResultType.Success); @@ -55,7 +55,7 @@ public async Task From_Base64_Has_Not_Errored() var module = await RunModule(); var moduleResult = await module; - + using (Assert.Multiple()) { await Assert.That(moduleResult.ModuleResultType).IsEqualTo(ModuleResultType.Success); diff --git a/test/ModularPipelines.UnitTests/Helpers/BashTests.cs b/test/ModularPipelines.UnitTests/Helpers/BashTests.cs index 034047be6f..9db362e46e 100644 --- a/test/ModularPipelines.UnitTests/Helpers/BashTests.cs +++ b/test/ModularPipelines.UnitTests/Helpers/BashTests.cs @@ -33,7 +33,7 @@ public async Task Has_Not_Errored() var module = await RunModule(); var moduleResult = await module; - + using (Assert.Multiple()) { await Assert.That(moduleResult.ModuleResultType).IsEqualTo(ModuleResultType.Success); @@ -48,7 +48,7 @@ public async Task Standard_Output_Equals_Foo_Bar() var module = await RunModule(); var moduleResult = await module; - + using (Assert.Multiple()) { await Assert.That(moduleResult.Value!.StandardError).IsNull().Or.IsEmpty(); @@ -63,7 +63,7 @@ public async Task Standard_Output_From_Script_Equals_Foo_Bar() var module = await RunModule(); var moduleResult = await module; - + using (Assert.Multiple()) { await Assert.That(moduleResult.Value!.StandardError).IsNull().Or.IsEmpty(); diff --git a/test/ModularPipelines.UnitTests/Helpers/CmdTests.cs b/test/ModularPipelines.UnitTests/Helpers/CmdTests.cs index 414619ae7d..6b53e94e8b 100644 --- a/test/ModularPipelines.UnitTests/Helpers/CmdTests.cs +++ b/test/ModularPipelines.UnitTests/Helpers/CmdTests.cs @@ -24,7 +24,7 @@ public async Task Has_Not_Errored() var module = await RunModule(); var moduleResult = await module; - + using (Assert.Multiple()) { await Assert.That(moduleResult.ModuleResultType).IsEqualTo(ModuleResultType.Success); @@ -39,7 +39,7 @@ public async Task Standard_Output_Equals_Foo_Bar() var module = await RunModule(); var moduleResult = await module; - + using (Assert.Multiple()) { await Assert.That(moduleResult.Value!.StandardError).IsNull().Or.IsEmpty(); diff --git a/test/ModularPipelines.UnitTests/Helpers/CommandTests.cs b/test/ModularPipelines.UnitTests/Helpers/CommandTests.cs index c0f0e612dc..04e68ffac9 100644 --- a/test/ModularPipelines.UnitTests/Helpers/CommandTests.cs +++ b/test/ModularPipelines.UnitTests/Helpers/CommandTests.cs @@ -22,7 +22,7 @@ private class CommandEchoModule : Module cancellationToken: cancellationToken); } } - + private class CommandEchoTimeoutModule : Module { protected override async Task ExecuteAsync(IPipelineContext context, CancellationToken cancellationToken) @@ -31,7 +31,7 @@ private class CommandEchoTimeoutModule : Module { using var cts = new CancellationTokenSource(); cts.CancelAfter(TimeSpan.FromSeconds(30)); - + return (await context.Command.ExecuteCommandLineTool( new CommandLineToolOptions( "pwsh", @@ -52,7 +52,7 @@ public async Task Has_Not_Errored() var module = await RunModule(); var moduleResult = await module; - + using (Assert.Multiple()) { await Assert.That(moduleResult.ModuleResultType).IsEqualTo(ModuleResultType.Success); @@ -67,21 +67,21 @@ public async Task Standard_Output_Equals_Foo_Bar() var module = await RunModule(); var moduleResult = await module; - + using (Assert.Multiple()) { await Assert.That(moduleResult.Value!.StandardError).IsNull().Or.IsEmpty(); await Assert.That(moduleResult.Value.StandardOutput.Trim()).IsEqualTo("Foo bar!"); } } - + [Test] public async Task Standard_Output_Equals_Foo_Bar_With_Timeout() { var module = await RunModule(); var moduleResult = await module; - + using (Assert.Multiple()) { await Assert.That(moduleResult.Value!.Trim()).IsEqualTo("Foo bar!"); diff --git a/test/ModularPipelines.UnitTests/Helpers/DockerTests.cs b/test/ModularPipelines.UnitTests/Helpers/DockerTests.cs index 62ef48c018..2fda80f99b 100644 --- a/test/ModularPipelines.UnitTests/Helpers/DockerTests.cs +++ b/test/ModularPipelines.UnitTests/Helpers/DockerTests.cs @@ -45,7 +45,7 @@ public async Task DockerBuild_CorrectInputCommand() .GetFolder("src") .GetFolder("MyApp") .GetFile("Dockerfile").Path; - + await Assert.That(result.Value!.CommandInput).IsEqualTo($"docker image build --build-arg Arg1=Value1 --build-arg Arg2=Value2 --build-arg Arg3=Value3 --tag mytaggedimage --target build-env {dockerfilePath}"); } } \ No newline at end of file diff --git a/test/ModularPipelines.UnitTests/Helpers/DotNetTestResultsTests.cs b/test/ModularPipelines.UnitTests/Helpers/DotNetTestResultsTests.cs index 67bf76a0f3..0e8508365d 100644 --- a/test/ModularPipelines.UnitTests/Helpers/DotNetTestResultsTests.cs +++ b/test/ModularPipelines.UnitTests/Helpers/DotNetTestResultsTests.cs @@ -35,7 +35,7 @@ private class DotNetTestWithFailureModule : Module private class DotNetTestWithoutFailureModule : Module { public File TrxFile { get; } = File.GetNewTemporaryFilePath(); - + protected override async Task ExecuteAsync(IPipelineContext context, CancellationToken cancellationToken) { var testProject = context.Git().RootDirectory @@ -73,12 +73,12 @@ public async Task Can_Parse_Trx_Manually() await Assert.That(parsedResults.UnitTestResults).HasCount().EqualTo(2); } - + [Test] public async Task Can_Parse_Trx_Using_Helper() { var module = await RunModule(); - + var parsedResults = await module.Context.Trx().ParseTrxFile(module.TrxFile); await Assert.That(parsedResults.UnitTestResults).HasCount().EqualTo(2); diff --git a/test/ModularPipelines.UnitTests/Helpers/DotNetTests.cs b/test/ModularPipelines.UnitTests/Helpers/DotNetTests.cs index 6a7b727928..f93a8e589c 100644 --- a/test/ModularPipelines.UnitTests/Helpers/DotNetTests.cs +++ b/test/ModularPipelines.UnitTests/Helpers/DotNetTests.cs @@ -21,7 +21,7 @@ private class DotNetVersionModule : Module }, token: cancellationToken); } } - + private class DotNetFormatModule : Module { protected override async Task ExecuteAsync(IPipelineContext context, CancellationToken cancellationToken) @@ -39,7 +39,7 @@ public async Task Has_Not_Errored() var module = await RunModule(); var moduleResult = await module; - + using (Assert.Multiple()) { await Assert.That(moduleResult.ModuleResultType).IsEqualTo(ModuleResultType.Success); @@ -47,14 +47,14 @@ public async Task Has_Not_Errored() await Assert.That(moduleResult.Value).IsNotNull(); } } - + [Test] public async Task Format_Has_Not_Errored() { var module = await RunModule(); var moduleResult = await module; - + using (Assert.Multiple()) { await Assert.That(moduleResult.ModuleResultType).IsEqualTo(ModuleResultType.Success); diff --git a/test/ModularPipelines.UnitTests/Helpers/EnvironmentContextTests.cs b/test/ModularPipelines.UnitTests/Helpers/EnvironmentContextTests.cs index 153725adfd..78190474b4 100644 --- a/test/ModularPipelines.UnitTests/Helpers/EnvironmentContextTests.cs +++ b/test/ModularPipelines.UnitTests/Helpers/EnvironmentContextTests.cs @@ -66,7 +66,7 @@ public async Task Can_Add_To_Path() public async Task Assert_Values_Populated() { var context = await GetService(); - + using (Assert.Multiple()) { await Assert.That(context.ContentDirectory).IsNotNull(); diff --git a/test/ModularPipelines.UnitTests/Helpers/FtpTests.cs b/test/ModularPipelines.UnitTests/Helpers/FtpTests.cs index 8671e53747..7976868742 100644 --- a/test/ModularPipelines.UnitTests/Helpers/FtpTests.cs +++ b/test/ModularPipelines.UnitTests/Helpers/FtpTests.cs @@ -27,7 +27,7 @@ public async Task Can_Download() var response = await client.DownloadFile(localPath, "/6jack/README.markdown"); var fileContents = await localPath.ReadAsync(); - + using (Assert.Multiple()) { await Assert.That(response).IsEqualTo(FtpStatus.Success); diff --git a/test/ModularPipelines.UnitTests/Helpers/GitHubRepositoryInfoTests.cs b/test/ModularPipelines.UnitTests/Helpers/GitHubRepositoryInfoTests.cs index 91e9f2f49f..36af925482 100644 --- a/test/ModularPipelines.UnitTests/Helpers/GitHubRepositoryInfoTests.cs +++ b/test/ModularPipelines.UnitTests/Helpers/GitHubRepositoryInfoTests.cs @@ -16,14 +16,14 @@ public class GitRepoModule : Module return context.GitHub().RepositoryInfo; } } - + [Test] public async Task GitHub_Repository_Information_Is_Populated() { var gitRepoModule = await RunModule(); var gitHubRepositoryInfo = gitRepoModule.Result.Value!; - + using (Assert.Multiple()) { await Assert.That(gitHubRepositoryInfo).IsNotNull(); diff --git a/test/ModularPipelines.UnitTests/Helpers/GitTests.cs b/test/ModularPipelines.UnitTests/Helpers/GitTests.cs index 6e5f433a88..7332c6c153 100644 --- a/test/ModularPipelines.UnitTests/Helpers/GitTests.cs +++ b/test/ModularPipelines.UnitTests/Helpers/GitTests.cs @@ -27,7 +27,7 @@ public async Task Has_Not_Errored() var module = await RunModule(); var moduleResult = await module; - + using (Assert.Multiple()) { await Assert.That(moduleResult.ModuleResultType).IsEqualTo(ModuleResultType.Success); @@ -42,7 +42,7 @@ public async Task Standard_Output_Starts_With_Git_Version() var module = await RunModule(); var moduleResult = await module; - + using (Assert.Multiple()) { await Assert.That(moduleResult.Value!.StandardError).IsNull().Or.IsEmpty(); @@ -54,7 +54,7 @@ public async Task Standard_Output_Starts_With_Git_Version() public async Task GitRootDirectory() { var git = await GetService(); - + using (Assert.Multiple()) { await Assert.That(git.RootDirectory.Name).IsEqualTo("ModularPipelines"); diff --git a/test/ModularPipelines.UnitTests/Helpers/HexTests.cs b/test/ModularPipelines.UnitTests/Helpers/HexTests.cs index 0b2e9f096b..d6a21b04d2 100644 --- a/test/ModularPipelines.UnitTests/Helpers/HexTests.cs +++ b/test/ModularPipelines.UnitTests/Helpers/HexTests.cs @@ -22,7 +22,7 @@ public async Task To_Hex_Has_Not_Errored() var module = await RunModule(); var moduleResult = await module; - + using (Assert.Multiple()) { await Assert.That(moduleResult.ModuleResultType).IsEqualTo(ModuleResultType.Success); @@ -55,7 +55,7 @@ public async Task From_Hex_Has_Not_Errored() var module = await RunModule(); var moduleResult = await module; - + using (Assert.Multiple()) { await Assert.That(moduleResult.ModuleResultType).IsEqualTo(ModuleResultType.Success); diff --git a/test/ModularPipelines.UnitTests/Helpers/InstallerTests.cs b/test/ModularPipelines.UnitTests/Helpers/InstallerTests.cs index fa321c1f8a..525abd473b 100644 --- a/test/ModularPipelines.UnitTests/Helpers/InstallerTests.cs +++ b/test/ModularPipelines.UnitTests/Helpers/InstallerTests.cs @@ -16,7 +16,7 @@ public async Task Can_Install() { throw new SkipTestException("Avoid installing things on people's machines"); } - + var downloader = await GetService(); var installer = await GetService(); diff --git a/test/ModularPipelines.UnitTests/Helpers/Md5Tests.cs b/test/ModularPipelines.UnitTests/Helpers/Md5Tests.cs index eb5cdbf412..6ce3c60b5e 100644 --- a/test/ModularPipelines.UnitTests/Helpers/Md5Tests.cs +++ b/test/ModularPipelines.UnitTests/Helpers/Md5Tests.cs @@ -22,7 +22,7 @@ public async Task To_Md5_Has_Not_Errored() var module = await RunModule(); var moduleResult = await module; - + using (Assert.Multiple()) { await Assert.That(moduleResult.ModuleResultType).IsEqualTo(ModuleResultType.Success); diff --git a/test/ModularPipelines.UnitTests/Helpers/NodeTests.cs b/test/ModularPipelines.UnitTests/Helpers/NodeTests.cs index 7d1213bcea..6b3f9d1cb1 100644 --- a/test/ModularPipelines.UnitTests/Helpers/NodeTests.cs +++ b/test/ModularPipelines.UnitTests/Helpers/NodeTests.cs @@ -22,7 +22,7 @@ public async Task Has_Not_Errored() var module = await RunModule(); var moduleResult = await module; - + using (Assert.Multiple()) { await Assert.That(moduleResult.ModuleResultType).IsEqualTo(ModuleResultType.Success); diff --git a/test/ModularPipelines.UnitTests/Helpers/PowershellTests.cs b/test/ModularPipelines.UnitTests/Helpers/PowershellTests.cs index f4fa540cda..9a503f458c 100644 --- a/test/ModularPipelines.UnitTests/Helpers/PowershellTests.cs +++ b/test/ModularPipelines.UnitTests/Helpers/PowershellTests.cs @@ -21,7 +21,7 @@ public async Task Has_Not_Errored() var module = await RunModule(); var moduleResult = await module; - + using (Assert.Multiple()) { await Assert.That(moduleResult.ModuleResultType).IsEqualTo(ModuleResultType.Success); @@ -36,7 +36,7 @@ public async Task Standard_Output_Equals_Foo_Bar() var module = await RunModule(); var moduleResult = await module; - + using (Assert.Multiple()) { await Assert.That(moduleResult.Value!.StandardError).IsNull().Or.IsEmpty(); diff --git a/test/ModularPipelines.UnitTests/Helpers/Sha1Tests.cs b/test/ModularPipelines.UnitTests/Helpers/Sha1Tests.cs index 98baaebc3c..89558e3048 100644 --- a/test/ModularPipelines.UnitTests/Helpers/Sha1Tests.cs +++ b/test/ModularPipelines.UnitTests/Helpers/Sha1Tests.cs @@ -22,7 +22,7 @@ public async Task To_Sha1_Has_Not_Errored() var module = await RunModule(); var moduleResult = await module; - + using (Assert.Multiple()) { await Assert.That(moduleResult.ModuleResultType).IsEqualTo(ModuleResultType.Success); diff --git a/test/ModularPipelines.UnitTests/Helpers/Sha256Tests.cs b/test/ModularPipelines.UnitTests/Helpers/Sha256Tests.cs index a5c5baf52b..04e1b5085d 100644 --- a/test/ModularPipelines.UnitTests/Helpers/Sha256Tests.cs +++ b/test/ModularPipelines.UnitTests/Helpers/Sha256Tests.cs @@ -22,7 +22,7 @@ public async Task To_Sha256_Has_Not_Errored() var module = await RunModule(); var moduleResult = await module; - + using (Assert.Multiple()) { await Assert.That(moduleResult.ModuleResultType).IsEqualTo(ModuleResultType.Success); diff --git a/test/ModularPipelines.UnitTests/Helpers/Sha384Tests.cs b/test/ModularPipelines.UnitTests/Helpers/Sha384Tests.cs index 893e8e3963..b261a3eed0 100644 --- a/test/ModularPipelines.UnitTests/Helpers/Sha384Tests.cs +++ b/test/ModularPipelines.UnitTests/Helpers/Sha384Tests.cs @@ -22,7 +22,7 @@ public async Task To_Sha384_Has_Not_Errored() var module = await RunModule(); var moduleResult = await module; - + using (Assert.Multiple()) { await Assert.That(moduleResult.ModuleResultType).IsEqualTo(ModuleResultType.Success); diff --git a/test/ModularPipelines.UnitTests/Helpers/Sha512Tests.cs b/test/ModularPipelines.UnitTests/Helpers/Sha512Tests.cs index 88ad30bb92..43dc0d95b2 100644 --- a/test/ModularPipelines.UnitTests/Helpers/Sha512Tests.cs +++ b/test/ModularPipelines.UnitTests/Helpers/Sha512Tests.cs @@ -22,7 +22,7 @@ public async Task To_Sha512_Has_Not_Errored() var module = await RunModule(); var moduleResult = await module; - + using (Assert.Multiple()) { await Assert.That(moduleResult.ModuleResultType).IsEqualTo(ModuleResultType.Success); diff --git a/test/ModularPipelines.UnitTests/Helpers/ZipTests.cs b/test/ModularPipelines.UnitTests/Helpers/ZipTests.cs index d2d9a28f51..a51537f39a 100644 --- a/test/ModularPipelines.UnitTests/Helpers/ZipTests.cs +++ b/test/ModularPipelines.UnitTests/Helpers/ZipTests.cs @@ -36,7 +36,7 @@ public async Task Has_Not_Errored() var module = await RunModule(); var moduleResult = await module; - + using (Assert.Multiple()) { await Assert.That(moduleResult.ModuleResultType).IsEqualTo(ModuleResultType.Success); @@ -51,7 +51,7 @@ public async Task Zip_File_Exists() await RunModule(); var expectedFile = new FileInfo(Path.Combine(TestContext.WorkingDirectory, "LoremData.zip")); - + using (Assert.Multiple()) { await Assert.That(expectedFile.Exists).IsTrue(); @@ -82,7 +82,7 @@ public async Task UnZip_Has_Not_Errored() var module = await RunModule(); var moduleResult = await module; - + using (Assert.Multiple()) { await Assert.That(moduleResult.ModuleResultType).IsEqualTo(ModuleResultType.Success); @@ -97,7 +97,7 @@ public async Task UnZipped_Folder_Exists() await RunModule(); var expectedFolder = new DirectoryInfo(Path.Combine(TestContext.WorkingDirectory, "LoremDataUnzipped")); - + using (Assert.Multiple()) { await Assert.That(expectedFolder.Exists).IsTrue(); diff --git a/test/ModularPipelines.UnitTests/HttpTests.cs b/test/ModularPipelines.UnitTests/HttpTests.cs index 9bd3015bc7..fd6ddd1200 100644 --- a/test/ModularPipelines.UnitTests/HttpTests.cs +++ b/test/ModularPipelines.UnitTests/HttpTests.cs @@ -15,10 +15,10 @@ public class HttpTests : TestBase [Test] public async Task Can_Send_Request_With_String_To_Request_Implicit_Conversion() { - var result = await GetService((context, collection) => {}); + var result = await GetService((context, collection) => { }); var http = result.T; - + await http.SendAsync(new Uri("https://thomhurst.github.io/TUnit")); } @@ -132,7 +132,7 @@ public async Task Assert_LoggingHttpClient_Logs_As_Expected(bool customHttpClien var indexOfStatusCode = logFileLines.FindIndex(x => x.Contains("---HTTP Status Code---")); var indexOfDuration = logFileLines.FindIndex(x => x.Contains("---Duration---")); var indexOfResponse = logFileLines.FindIndex(x => x.Contains("---Response---")); - + using (Assert.Multiple()) { await Assert.That(indexOfRequest).IsLessThan(indexOfStatusCode); diff --git a/test/ModularPipelines.UnitTests/IgnoredFailureTests.cs b/test/ModularPipelines.UnitTests/IgnoredFailureTests.cs index acc98e0c51..349b460376 100644 --- a/test/ModularPipelines.UnitTests/IgnoredFailureTests.cs +++ b/test/ModularPipelines.UnitTests/IgnoredFailureTests.cs @@ -32,7 +32,7 @@ public async Task Has_Not_Thrown_Or_Cancelled_Pipeline() var engineCancellationToken = serviceProvider.GetRequiredService(); var moduleResult = await module; - + using (Assert.Multiple()) { await Assert.That(moduleResult.ModuleResultType).IsEqualTo(ModuleResultType.Failure); diff --git a/test/ModularPipelines.UnitTests/JsonSerializationTests.cs b/test/ModularPipelines.UnitTests/JsonSerializationTests.cs index d2579797a0..3003ae33cb 100644 --- a/test/ModularPipelines.UnitTests/JsonSerializationTests.cs +++ b/test/ModularPipelines.UnitTests/JsonSerializationTests.cs @@ -61,7 +61,7 @@ public async Task Test1() var moduleJson = JsonSerializer.Serialize(module); var deserializedModule = JsonSerializer.Deserialize(moduleJson); - + using (Assert.Multiple()) { await Assert.That(moduleJson).IsNotNull().And.IsNotEmpty(); @@ -70,7 +70,7 @@ public async Task Test1() var pipelineJson = JsonSerializer.Serialize(pipelineSummary); var deserializedSummary = JsonSerializer.Deserialize(pipelineJson); - + using (Assert.Multiple()) { await Assert.That(pipelineJson).IsNotNull().And.IsNotEmpty(); @@ -79,7 +79,7 @@ public async Task Test1() var module1Deserialized = deserializedSummary!.GetModule(); var module1DeserializedResult = await module1Deserialized; - + using (Assert.Multiple()) { await Assert.That(module1Deserialized).IsNotNull(); diff --git a/test/ModularPipelines.UnitTests/KeyValueTests.cs b/test/ModularPipelines.UnitTests/KeyValueTests.cs index 5328767c5b..197ab5b350 100644 --- a/test/ModularPipelines.UnitTests/KeyValueTests.cs +++ b/test/ModularPipelines.UnitTests/KeyValueTests.cs @@ -8,7 +8,7 @@ public class KeyValueTests public async Task ImplicitOperator1() { KeyValue keyValue = ("one", "two"); - + using (Assert.Multiple()) { await Assert.That(keyValue.Key).IsEqualTo("one"); @@ -20,7 +20,7 @@ public async Task ImplicitOperator1() public async Task ImplicitOperator2() { KeyValue keyValue = new Tuple("one", "two"); - + using (Assert.Multiple()) { await Assert.That(keyValue.Key).IsEqualTo("one"); @@ -32,7 +32,7 @@ public async Task ImplicitOperator2() public async Task ImplicitOperator3() { KeyValue keyValue = new KeyValuePair("one", "two"); - + using (Assert.Multiple()) { await Assert.That(keyValue.Key).IsEqualTo("one"); diff --git a/test/ModularPipelines.UnitTests/Models/RequirementDecisionTests.cs b/test/ModularPipelines.UnitTests/Models/RequirementDecisionTests.cs index 096ccf0c49..7eb17b948d 100644 --- a/test/ModularPipelines.UnitTests/Models/RequirementDecisionTests.cs +++ b/test/ModularPipelines.UnitTests/Models/RequirementDecisionTests.cs @@ -8,7 +8,7 @@ public class RequirementDecisionTests public async Task True_Implicit_Cast() { RequirementDecision requirementDecision = true; - + using (Assert.Multiple()) { await Assert.That(requirementDecision.Success).IsTrue(); @@ -20,7 +20,7 @@ public async Task True_Implicit_Cast() public async Task False_Implicit_Cast() { RequirementDecision requirementDecision = false; - + using (Assert.Multiple()) { await Assert.That(requirementDecision.Success).IsFalse(); @@ -32,7 +32,7 @@ public async Task False_Implicit_Cast() public async Task String_Implicit_Cast() { RequirementDecision requirementDecision = "Foo!"; - + using (Assert.Multiple()) { await Assert.That(requirementDecision.Success).IsFalse(); @@ -44,7 +44,7 @@ public async Task String_Implicit_Cast() public async Task Failed() { var requirementDecision = RequirementDecision.Failed("Blah!"); - + using (Assert.Multiple()) { await Assert.That(requirementDecision.Success).IsFalse(); @@ -56,7 +56,7 @@ public async Task Failed() public async Task Passed() { var requirementDecision = RequirementDecision.Passed; - + using (Assert.Multiple()) { await Assert.That(requirementDecision.Success).IsTrue(); @@ -70,7 +70,7 @@ public async Task Passed() public async Task Of(bool success) { var requirementDecision = RequirementDecision.Of(success, "Blah!"); - + using (Assert.Multiple()) { await Assert.That(requirementDecision.Success).IsEqualTo(success); diff --git a/test/ModularPipelines.UnitTests/Models/SkipDecisionTests.cs b/test/ModularPipelines.UnitTests/Models/SkipDecisionTests.cs index 98abe16bbc..622169f51a 100644 --- a/test/ModularPipelines.UnitTests/Models/SkipDecisionTests.cs +++ b/test/ModularPipelines.UnitTests/Models/SkipDecisionTests.cs @@ -8,7 +8,7 @@ public class SkipDecisionTests public async Task True_Implicit_Cast() { SkipDecision skipDecision = true; - + using (Assert.Multiple()) { await Assert.That(skipDecision.ShouldSkip).IsTrue(); @@ -20,7 +20,7 @@ public async Task True_Implicit_Cast() public async Task String_Implicit_Cast() { SkipDecision skipDecision = "Foo!"; - + using (Assert.Multiple()) { await Assert.That(skipDecision.ShouldSkip).IsTrue(); @@ -32,7 +32,7 @@ public async Task String_Implicit_Cast() public async Task False_Implicit_Cast() { SkipDecision skipDecision = false; - + using (Assert.Multiple()) { await Assert.That(skipDecision.ShouldSkip).IsFalse(); @@ -44,7 +44,7 @@ public async Task False_Implicit_Cast() public async Task Skip() { var skipDecision = SkipDecision.Skip("Blah!"); - + using (Assert.Multiple()) { await Assert.That(skipDecision.ShouldSkip).IsTrue(); @@ -56,7 +56,7 @@ public async Task Skip() public async Task DoNotSkip() { var skipDecision = SkipDecision.DoNotSkip; - + using (Assert.Multiple()) { await Assert.That(skipDecision.ShouldSkip).IsFalse(); @@ -70,7 +70,7 @@ public async Task DoNotSkip() public async Task Of(bool shouldSkip) { var skipDecision = SkipDecision.Of(shouldSkip, "Blah!"); - + using (Assert.Multiple()) { await Assert.That(skipDecision.ShouldSkip).IsEqualTo(shouldSkip); diff --git a/test/ModularPipelines.UnitTests/ModuleLoggerTests.cs b/test/ModularPipelines.UnitTests/ModuleLoggerTests.cs index 2b4fdffb0a..340544c5e9 100644 --- a/test/ModularPipelines.UnitTests/ModuleLoggerTests.cs +++ b/test/ModularPipelines.UnitTests/ModuleLoggerTests.cs @@ -36,7 +36,7 @@ public class Module2 : Module return await NothingAsync(); } } - + public class Module3 : Module { protected override async Task?> ExecuteAsync(IPipelineContext context, CancellationToken cancellationToken) @@ -70,7 +70,7 @@ public async Task Can_Write_To_Console_Successfully() await Assert.That(stringOutput).Contains(RandomString); await Assert.That(await file.ReadAsync()).DoesNotContain(RandomString); } - + [Test] [Arguments(typeof(Module2))] [Arguments(typeof(Module3))] diff --git a/test/ModularPipelines.UnitTests/NotInParallelTests.cs b/test/ModularPipelines.UnitTests/NotInParallelTests.cs index 0f8297c9ab..c1d8a8320b 100644 --- a/test/ModularPipelines.UnitTests/NotInParallelTests.cs +++ b/test/ModularPipelines.UnitTests/NotInParallelTests.cs @@ -100,7 +100,7 @@ public async Task NotInParallel_With_NonParallelDependency() var nextModule = results.Modules.MaxBy(x => x.EndTime)!; var expectedStartTime = firstModule.StartTime + TimeSpan.FromSeconds(10); - + await Assert.That(nextModule.StartTime) .IsGreaterThanOrEqualTo(expectedStartTime); } diff --git a/test/ModularPipelines.UnitTests/NotInParallelTestsWithConstraintKeys.cs b/test/ModularPipelines.UnitTests/NotInParallelTestsWithConstraintKeys.cs index 16bce628ee..8ec2f7e754 100644 --- a/test/ModularPipelines.UnitTests/NotInParallelTestsWithConstraintKeys.cs +++ b/test/ModularPipelines.UnitTests/NotInParallelTestsWithConstraintKeys.cs @@ -73,7 +73,7 @@ private async Task AssertAfter(ModuleBase one, ModuleBase two) var modules = new[] { one, two }; var firstModule = modules.OrderBy(x => x.StartTime).First(); var secondModule = modules.OrderBy(x => x.StartTime).Last(); - + await Assert.That(secondModule.StartTime) .IsGreaterThanOrEqualTo(firstModule.EndTime); } diff --git a/test/ModularPipelines.UnitTests/NotInParallelTestsWithMultipleConstraintKeys.cs b/test/ModularPipelines.UnitTests/NotInParallelTestsWithMultipleConstraintKeys.cs index 4a8e20ac61..6978c405d0 100644 --- a/test/ModularPipelines.UnitTests/NotInParallelTestsWithMultipleConstraintKeys.cs +++ b/test/ModularPipelines.UnitTests/NotInParallelTestsWithMultipleConstraintKeys.cs @@ -58,7 +58,7 @@ public async Task NotInParallel_If_Any_Modules_Executing_With_Any_Of_Same_Constr .ExecutePipelineAsync(); var results = await resultsTask; - + var one = results.Modules.OfType().First(); var two = results.Modules.OfType().First(); var three = results.Modules.OfType().First(); @@ -75,7 +75,7 @@ private async Task AssertAfter(ModuleBase one, ModuleBase two) var modules = new[] { one, two }; var firstModule = modules.OrderBy(x => x.StartTime).First(); var secondModule = modules.OrderBy(x => x.StartTime).Last(); - + await Assert.That(secondModule.StartTime) .IsGreaterThan(firstModule.StartTime + TimeSpan.FromSeconds(1)); } diff --git a/test/ModularPipelines.UnitTests/ParallelLimiterTests.cs b/test/ModularPipelines.UnitTests/ParallelLimiterTests.cs index 34b6f1ca30..81d14b2173 100644 --- a/test/ModularPipelines.UnitTests/ParallelLimiterTests.cs +++ b/test/ModularPipelines.UnitTests/ParallelLimiterTests.cs @@ -48,7 +48,7 @@ public class Module4 : Module return GetType().Name; } } - + [ModularPipelines.Attributes.ParallelLimiter] public class Module5 : Module { @@ -58,7 +58,7 @@ public class Module5 : Module return GetType().Name; } } - + [ModularPipelines.Attributes.ParallelLimiter] public class Module6 : Module { diff --git a/test/ModularPipelines.UnitTests/PipelineRequirementTests.cs b/test/ModularPipelines.UnitTests/PipelineRequirementTests.cs index 7253a5784d..5f9f9e883d 100644 --- a/test/ModularPipelines.UnitTests/PipelineRequirementTests.cs +++ b/test/ModularPipelines.UnitTests/PipelineRequirementTests.cs @@ -30,7 +30,7 @@ public async Task When_Requirement_Fails_Then_Error() .AddModule() .AddRequirement() .ExecutePipelineAsync(); - + await Assert.That(executePipelineDelegate) .Throws() .And.HasMessageEqualTo("Requirements failed:\r\nFailingRequirement"); diff --git a/test/ModularPipelines.UnitTests/RetryTests.cs b/test/ModularPipelines.UnitTests/RetryTests.cs index 6ce865a60f..5f05c5293c 100644 --- a/test/ModularPipelines.UnitTests/RetryTests.cs +++ b/test/ModularPipelines.UnitTests/RetryTests.cs @@ -81,7 +81,7 @@ public async Task When_Successful_Do_Not_Retry() .ExecutePipelineAsync(); var module = pipelineSummary.Modules.OfType().First(); - + using (Assert.Multiple()) { await Assert.That(module.ExecutionCount).IsEqualTo(1); @@ -101,7 +101,7 @@ public async Task When_Error_Then_Retry() .ExecutePipelineAsync(); var module = pipelineSummary.Modules.OfType().First(); - + using (Assert.Multiple()) { await Assert.That(module.ExecutionCount).IsEqualTo(4); @@ -117,7 +117,7 @@ public async Task When_Error_With_Custom_RetryPolicy_Then_Retry() .ExecutePipelineAsync(); var module = pipelineSummary.Modules.OfType().First(); - + using (Assert.Multiple()) { await Assert.That(module.ExecutionCount).IsEqualTo(4); @@ -137,7 +137,7 @@ public async Task When_Error_And_Zero_Retry_Count_Then_Do_Not_Retry() .ExecutePipelineAsync()); var module = moduleFailedException?.Module as FailedModule; - + using (Assert.Multiple()) { await Assert.That(module?.ExecutionCount).IsEqualTo(1); diff --git a/test/ModularPipelines.UnitTests/RunnableCategoryTests.cs b/test/ModularPipelines.UnitTests/RunnableCategoryTests.cs index 4589da7547..f52f39c230 100644 --- a/test/ModularPipelines.UnitTests/RunnableCategoryTests.cs +++ b/test/ModularPipelines.UnitTests/RunnableCategoryTests.cs @@ -73,7 +73,7 @@ public async Task When_RunCategories_Specified_Then_Expected_Modules_Run() .AddModule() .RunCategories("Run1", "Run2") .ExecutePipelineAsync(); - + using (Assert.Multiple()) { await Assert.That(pipelineSummary.GetModule().Status).IsEqualTo(Status.Successful); @@ -97,7 +97,7 @@ public async Task When_IgnoreCategories_Specified_Then_Expected_Modules_Run() .AddModule() .IgnoreCategories("NoRun1", "NoRun2") .ExecutePipelineAsync(); - + using (Assert.Multiple()) { await Assert.That(pipelineSummary.GetModule().Status).IsEqualTo(Status.Successful); diff --git a/test/ModularPipelines.UnitTests/SkippedModuleTests.cs b/test/ModularPipelines.UnitTests/SkippedModuleTests.cs index d37479966e..3a668242f4 100644 --- a/test/ModularPipelines.UnitTests/SkippedModuleTests.cs +++ b/test/ModularPipelines.UnitTests/SkippedModuleTests.cs @@ -28,7 +28,7 @@ public async Task Skipped_Result_Is_As_Expected() var module = await RunModule(); var moduleResult = await module; - + using (Assert.Multiple()) { await Assert.That(moduleResult.ModuleResultType).IsEqualTo(ModuleResultType.Skipped); diff --git a/test/ModularPipelines.UnitTests/SmartCollapsableLoggingInternalTests.cs b/test/ModularPipelines.UnitTests/SmartCollapsableLoggingInternalTests.cs index d9d4318aec..36b5276d5c 100644 --- a/test/ModularPipelines.UnitTests/SmartCollapsableLoggingInternalTests.cs +++ b/test/ModularPipelines.UnitTests/SmartCollapsableLoggingInternalTests.cs @@ -75,7 +75,7 @@ private async Task Execute(BuildSystem buildSystem) loggerMock.Setup(x => x.IsEnabled(LogLevel.Information)) .Returns(true); - + buildSystemDetectorMock.Setup(x => x.GetCurrentBuildSystem()) .Returns(buildSystem); diff --git a/test/ModularPipelines.UnitTests/SubModuleTests.cs b/test/ModularPipelines.UnitTests/SubModuleTests.cs index a930f6b036..00ffe3685a 100644 --- a/test/ModularPipelines.UnitTests/SubModuleTests.cs +++ b/test/ModularPipelines.UnitTests/SubModuleTests.cs @@ -153,7 +153,7 @@ private class FailingSubModulesWithoutReturnTypeModuleSynchronous : Module { public int _oneCount; @@ -192,7 +192,7 @@ await SubModule(name, () => return null; } } - + private class SucceedingSubModulesDoNotRetryModule_WithReturnType : Module { public int _oneCount; @@ -253,7 +253,7 @@ public async Task Submodule_With_Return_Type_Does_Not_Fail_And_Runs_Once() var module = await RunModule(); var results = await module; - + using (Assert.Multiple()) { await Assert.That(results.ModuleResultType).IsEqualTo(ModuleResultType.Success); @@ -268,7 +268,7 @@ public async Task Submodule_Without_Return_Type_Does_Not_Fail_And_Runs_Once() var module = await RunModule(); var results = await module; - + using (Assert.Multiple()) { await Assert.That(results.ModuleResultType).IsEqualTo(ModuleResultType.Success); @@ -298,7 +298,7 @@ public async Task Submodule_Without_Return_Type_Does_Not_Fail_Synchronous_And_Ru var module = await RunModule(); var results = await module; - + using (Assert.Multiple()) { await Assert.That(results.ModuleResultType).IsEqualTo(ModuleResultType.Success); @@ -323,7 +323,7 @@ public async Task Failing_Submodule_With_Return_Type_Fails() public async Task Failing_Submodule_Without_Return_Type_Fails() { var exception = await Assert.ThrowsAsync(RunModule); - + await Assert.That(exception.InnerException).IsTypeOf(typeof(SubModuleFailedException)); var moduleFailedException = await Assert.ThrowsAsync(RunModule); @@ -361,14 +361,14 @@ public async Task Failing_Submodule_Without_Return_Type_Fails_Synchronous() await Assert.That(moduleFailedException.InnerException!).HasMessageEqualTo("The Sub-Module 1 has failed."); } } - + [Test] public async Task Succeeding_Submodules_Do_Not_Retry() { var moduleFailedException = await Assert.ThrowsAsync(RunModule); var module = (SucceedingSubModulesDoNotRetryModule) moduleFailedException.Module; - + using (Assert.Multiple()) { await Assert.That(module._oneCount).IsEqualTo(1); @@ -376,14 +376,14 @@ public async Task Succeeding_Submodules_Do_Not_Retry() await Assert.That(module._threeCount).IsEqualTo(4); } } - + [Test] public async Task Succeeding_Submodules_Do_Not_Retry_With_Return_Type() { var moduleFailedException = await Assert.ThrowsAsync(RunModule); var module = (SucceedingSubModulesDoNotRetryModule_WithReturnType) moduleFailedException.Module; - + using (Assert.Multiple()) { await Assert.That(module._oneCount).IsEqualTo(1); diff --git a/test/ModularPipelines.UnitTests/TimedDependencyTests.cs b/test/ModularPipelines.UnitTests/TimedDependencyTests.cs index 6c3d125734..e1efd28c39 100644 --- a/test/ModularPipelines.UnitTests/TimedDependencyTests.cs +++ b/test/ModularPipelines.UnitTests/TimedDependencyTests.cs @@ -20,7 +20,7 @@ public async Task OneSecondModule_WillWaitForFiveSecondModule_ThenExecute() var fiveSecondResult = await fiveSecondModule; var oneSecondModuleDependentOnFiveSecondResult = await oneSecondModuleDependentOnFiveSecondModule; - + using (Assert.Multiple()) { // 5 + 1 diff --git a/test/ModularPipelines.UnitTests/TrxParsingTests.cs b/test/ModularPipelines.UnitTests/TrxParsingTests.cs index 67e59ac5cb..54ac732a14 100644 --- a/test/ModularPipelines.UnitTests/TrxParsingTests.cs +++ b/test/ModularPipelines.UnitTests/TrxParsingTests.cs @@ -22,7 +22,7 @@ public class NUnitModule : Module .FindFile(x => x.Name == "ModularPipelines.TestsForTests.csproj")!; var trxFile = File.GetNewTemporaryFilePath(); - + await context.DotNet().Test(new DotNetTestOptions { ProjectSolutionDirectoryDllExe = testProject, @@ -44,13 +44,13 @@ public async Task NUnit() var result = await RunModule(); await Assert.That(result.Result.Value!.Successful).IsFalse(); - + await Assert.That(result.Result.Value!.UnitTestResults.Where(x => x.Outcome == TestOutcome.Failed)) .HasCount().EqualTo(1); - + await Assert.That(result.Result.Value!.UnitTestResults.Where(x => x.Outcome == TestOutcome.NotExecuted)) .HasCount().EqualTo(1); - + await Assert.That(result.Result.Value!.UnitTestResults.Where(x => x.Outcome == TestOutcome.Passed)) .HasCount().EqualTo(2); } From 229fb2db0c013aed570f8f273e825517aee0662a Mon Sep 17 00:00:00 2001 From: Tom Longhurst <30480171+thomhurst@users.noreply.github.com> Date: Wed, 16 Apr 2025 22:18:46 +0100 Subject: [PATCH 02/45] Update dependency Spectre.Console to 0.50.0 (#1039) Co-authored-by: Renovate Bot --- Directory.Packages.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index c28fb66bb2..72a6fe5830 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -71,7 +71,7 @@ - + From 2e3d5115ab2632771eae10c322e899910d43cfa9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 16 Apr 2025 22:19:04 +0100 Subject: [PATCH 03/45] Bump image-size from 1.1.1 to 1.2.1 in /docs (#1034) Bumps [image-size](https://github.com/image-size/image-size) from 1.1.1 to 1.2.1. - [Release notes](https://github.com/image-size/image-size/releases) - [Commits](https://github.com/image-size/image-size/compare/v1.1.1...v1.2.1) --- updated-dependencies: - dependency-name: image-size dependency-type: indirect ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- docs/yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/yarn.lock b/docs/yarn.lock index 4d1cabe1e9..d83812a3be 100644 --- a/docs/yarn.lock +++ b/docs/yarn.lock @@ -5953,9 +5953,9 @@ ignore@^5.2.0, ignore@^5.2.4: integrity sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw== image-size@^1.0.2: - version "1.1.1" - resolved "https://registry.yarnpkg.com/image-size/-/image-size-1.1.1.tgz#ddd67d4dc340e52ac29ce5f546a09f4e29e840ac" - integrity sha512-541xKlUw6jr/6gGuk92F+mYM5zaFAc5ahphvkqvNe2bQ6gVBkd6bfrmVJ2t4KDAfikAYZyIqTnktX3i6/aQDrQ== + version "1.2.1" + resolved "https://registry.yarnpkg.com/image-size/-/image-size-1.2.1.tgz#ee118aedfe666db1a6ee12bed5821cde3740276d" + integrity sha512-rH+46sQJ2dlwfjfhCyNx5thzrv+dtmBIhPHk0zgRUukHzZ/kRueTJXoYYsclBaKcSMBWuGbOFXtioLpzTb5euw== dependencies: queue "6.0.2" From 69e57b5dabc3875f843e150776c32c7e29a3f342 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 16 Apr 2025 22:19:44 +0100 Subject: [PATCH 04/45] Bump http-proxy-middleware from 2.0.7 to 2.0.9 in /docs (#1041) Bumps [http-proxy-middleware](https://github.com/chimurai/http-proxy-middleware) from 2.0.7 to 2.0.9. - [Release notes](https://github.com/chimurai/http-proxy-middleware/releases) - [Changelog](https://github.com/chimurai/http-proxy-middleware/blob/v2.0.9/CHANGELOG.md) - [Commits](https://github.com/chimurai/http-proxy-middleware/compare/v2.0.7...v2.0.9) --- updated-dependencies: - dependency-name: http-proxy-middleware dependency-version: 2.0.9 dependency-type: indirect ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- docs/yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/yarn.lock b/docs/yarn.lock index d83812a3be..ae993d51f6 100644 --- a/docs/yarn.lock +++ b/docs/yarn.lock @@ -5903,9 +5903,9 @@ http-parser-js@>=0.5.1: integrity sha512-SGeBX54F94Wgu5RH3X5jsDtf4eHyRogWX1XGT3b4HuW3tQPM4AaBzoUji/4AAJNXCEOWZ5O0DgZmJw1947gD5Q== http-proxy-middleware@^2.0.3: - version "2.0.7" - resolved "https://registry.yarnpkg.com/http-proxy-middleware/-/http-proxy-middleware-2.0.7.tgz#915f236d92ae98ef48278a95dedf17e991936ec6" - integrity sha512-fgVY8AV7qU7z/MmXJ/rxwbrtQH4jBQ9m7kp3llF0liB7glmFeVZFBepQb32T3y8n8k2+AEYuMPCpinYW+/CuRA== + version "2.0.9" + resolved "https://registry.yarnpkg.com/http-proxy-middleware/-/http-proxy-middleware-2.0.9.tgz#e9e63d68afaa4eee3d147f39149ab84c0c2815ef" + integrity sha512-c1IyJYLYppU574+YI7R4QyX2ystMtVXZwIdzazUIPIJsHuWNd+mho2j+bKoHftndicGj9yh+xjd+l0yj7VeT1Q== dependencies: "@types/http-proxy" "^1.17.8" http-proxy "^1.18.1" From 6fae881d34411f6fe8dd0bd7739fb6e06a1ca19c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 16 Apr 2025 22:20:08 +0100 Subject: [PATCH 05/45] Bump prismjs from 1.29.0 to 1.30.0 in /docs (#1025) Bumps [prismjs](https://github.com/PrismJS/prism) from 1.29.0 to 1.30.0. - [Release notes](https://github.com/PrismJS/prism/releases) - [Changelog](https://github.com/PrismJS/prism/blob/master/CHANGELOG.md) - [Commits](https://github.com/PrismJS/prism/compare/v1.29.0...v1.30.0) --- updated-dependencies: - dependency-name: prismjs dependency-type: indirect ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- docs/yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/yarn.lock b/docs/yarn.lock index ae993d51f6..76d4cb73f5 100644 --- a/docs/yarn.lock +++ b/docs/yarn.lock @@ -8276,9 +8276,9 @@ prism-react-renderer@^2.3.0, prism-react-renderer@^2.4.0: clsx "^2.0.0" prismjs@^1.29.0: - version "1.29.0" - resolved "https://registry.yarnpkg.com/prismjs/-/prismjs-1.29.0.tgz#f113555a8fa9b57c35e637bba27509dcf802dd12" - integrity sha512-Kx/1w86q/epKcmte75LNrEoT+lX8pBpavuAbvJWRXar7Hz8jrtF+e3vY751p0R8H9HdArwaCTNDDzHg/ScJK1Q== + version "1.30.0" + resolved "https://registry.yarnpkg.com/prismjs/-/prismjs-1.30.0.tgz#d9709969d9d4e16403f6f348c63553b19f0975a9" + integrity sha512-DEvV2ZF2r2/63V+tK8hQvrR2ZGn10srHbXviTlcv7Kpzw8jWiNTqbVgjO3IY8RxrrOUF8VPMQQFysYYYv0YZxw== process-nextick-args@~2.0.0: version "2.0.1" From e4863fde80aa91104476777e07ff3283ef223a6a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 16 Apr 2025 22:20:26 +0100 Subject: [PATCH 06/45] Bump estree-util-value-to-estree from 3.1.2 to 3.3.3 in /docs (#1036) Bumps [estree-util-value-to-estree](https://github.com/remcohaszing/estree-util-value-to-estree) from 3.1.2 to 3.3.3. - [Release notes](https://github.com/remcohaszing/estree-util-value-to-estree/releases) - [Commits](https://github.com/remcohaszing/estree-util-value-to-estree/compare/v3.1.2...v3.3.3) --- updated-dependencies: - dependency-name: estree-util-value-to-estree dependency-version: 3.3.3 dependency-type: indirect ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- docs/yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/yarn.lock b/docs/yarn.lock index 76d4cb73f5..7f18bb7c2b 100644 --- a/docs/yarn.lock +++ b/docs/yarn.lock @@ -5097,9 +5097,9 @@ estree-util-to-js@^2.0.0: source-map "^0.7.0" estree-util-value-to-estree@^3.0.1: - version "3.1.2" - resolved "https://registry.yarnpkg.com/estree-util-value-to-estree/-/estree-util-value-to-estree-3.1.2.tgz#d2f0e5d350a6c181673eb7299743325b86a9bf5c" - integrity sha512-S0gW2+XZkmsx00tU2uJ4L9hUT7IFabbml9pHh2WQqFmAbxit++YGZne0sKJbNwkj9Wvg9E4uqWl4nCIFQMmfag== + version "3.3.3" + resolved "https://registry.yarnpkg.com/estree-util-value-to-estree/-/estree-util-value-to-estree-3.3.3.tgz#800b03a551b466dd77ed2c574b042a9992546cf2" + integrity sha512-Db+m1WSD4+mUO7UgMeKkAwdbfNWwIxLt48XF2oFU9emPfXkIu+k5/nlOj313v7wqtAPo0f9REhUvznFrPkG8CQ== dependencies: "@types/estree" "^1.0.0" From 1af5a7414ebf32c72521185712e9a0ccdea439e2 Mon Sep 17 00:00:00 2001 From: Tom Longhurst <30480171+thomhurst@users.noreply.github.com> Date: Wed, 16 Apr 2025 23:01:26 +0100 Subject: [PATCH 07/45] Update dependency vertical-spectreconsolelogger to 0.10.1-dev.20241201.35 (#763) Co-authored-by: Renovate Bot --- Directory.Packages.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 72a6fe5830..72943e53f2 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -77,7 +77,7 @@ - + \ No newline at end of file From d656fb2055e34e62e37b06b406d2ce033ae73ee0 Mon Sep 17 00:00:00 2001 From: Tom Longhurst <30480171+thomhurst@users.noreply.github.com> Date: Wed, 16 Apr 2025 23:28:15 +0100 Subject: [PATCH 08/45] Update aws-sdk-net monorepo (#1045) Co-authored-by: Renovate Bot --- Directory.Packages.props | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 72943e53f2..615abce133 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -5,8 +5,8 @@ - - + + From c8057970248471ffd8d0a59834a06be11e36875a Mon Sep 17 00:00:00 2001 From: Tom Longhurst <30480171+thomhurst@users.noreply.github.com> Date: Wed, 16 Apr 2025 23:50:54 +0100 Subject: [PATCH 09/45] Update TUnit to 0.19.82 (#1046) Co-authored-by: Renovate Bot --- Directory.Packages.props | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 615abce133..dd7749921e 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -74,9 +74,9 @@ - - - + + + From 10809d53630a2ea67e094240af0bcd99b37d5cdb Mon Sep 17 00:00:00 2001 From: Tom Longhurst <30480171+thomhurst@users.noreply.github.com> Date: Thu, 17 Apr 2025 21:29:22 +0100 Subject: [PATCH 10/45] Update aws-sdk-net monorepo (#1047) Co-authored-by: Renovate Bot --- Directory.Packages.props | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index dd7749921e..1b7c97b569 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -5,8 +5,8 @@ - - + + From f2c94e6582fbfc1f0c1409a14aba0cf0ccc8f6d1 Mon Sep 17 00:00:00 2001 From: Tom Longhurst <30480171+thomhurst@users.noreply.github.com> Date: Fri, 18 Apr 2025 12:24:07 +0100 Subject: [PATCH 11/45] Update TUnit to 0.19.84 (#1048) Co-authored-by: Renovate Bot --- Directory.Packages.props | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 1b7c97b569..c25f968f19 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -74,9 +74,9 @@ - - - + + + From 1a998fb0c95f01172cc971a201ce01c0fce33206 Mon Sep 17 00:00:00 2001 From: Tom Longhurst <30480171+thomhurst@users.noreply.github.com> Date: Fri, 18 Apr 2025 15:49:10 +0100 Subject: [PATCH 12/45] Update TUnit to 0.19.86 (#1049) Co-authored-by: Renovate Bot --- Directory.Packages.props | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index c25f968f19..a00774ec7d 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -74,9 +74,9 @@ - - - + + + From 004c6d863245a2d6c4aeceb96773db933232f00a Mon Sep 17 00:00:00 2001 From: Tom Longhurst <30480171+thomhurst@users.noreply.github.com> Date: Fri, 18 Apr 2025 21:48:32 +0100 Subject: [PATCH 13/45] Update aws-sdk-net monorepo (#1050) Co-authored-by: Renovate Bot --- Directory.Packages.props | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index a00774ec7d..bdc2474427 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -5,8 +5,8 @@ - - + + From e68967c4c5dd965c3f2aa18ee34888ed434403a1 Mon Sep 17 00:00:00 2001 From: Tom Longhurst <30480171+thomhurst@users.noreply.github.com> Date: Wed, 23 Apr 2025 09:36:04 +0100 Subject: [PATCH 14/45] Update azure azure-sdk-for-net monorepo (#1051) Co-authored-by: Renovate Bot --- Directory.Packages.props | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index bdc2474427..1650079e69 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -23,12 +23,12 @@ - + - + From 2ce1f04b511e8de0b50d3abb6297c2ba1f093f8e Mon Sep 17 00:00:00 2001 From: Tom Longhurst <30480171+thomhurst@users.noreply.github.com> Date: Wed, 23 Apr 2025 21:30:11 +0100 Subject: [PATCH 15/45] Update dependency AWSSDK.Lambda to 3.7.412.22 (#1052) Co-authored-by: Renovate Bot --- Directory.Packages.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 1650079e69..b3b7461280 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -5,7 +5,7 @@ - + From 726572e45369f79a144e37b618208145ff4c81fc Mon Sep 17 00:00:00 2001 From: Tom Longhurst <30480171+thomhurst@users.noreply.github.com> Date: Wed, 23 Apr 2025 21:49:59 +0100 Subject: [PATCH 16/45] Update dependency AWSSDK.S3 to 3.7.416.14 (#1053) Co-authored-by: Renovate Bot --- Directory.Packages.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index b3b7461280..956fe2ee32 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -6,7 +6,7 @@ - + From 30b27fcfb7bc59ad243b06eea72c5dac3b94a9bf Mon Sep 17 00:00:00 2001 From: Tom Longhurst <30480171+thomhurst@users.noreply.github.com> Date: Thu, 24 Apr 2025 12:26:35 +0100 Subject: [PATCH 17/45] Update azure azure-sdk-for-net monorepo (#1054) Co-authored-by: Renovate Bot --- Directory.Packages.props | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 956fe2ee32..5561cceee0 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -8,14 +8,14 @@ - + - + From f5d3a7438add678a2a50568ab91e4859f369e915 Mon Sep 17 00:00:00 2001 From: Tom Longhurst <30480171+thomhurst@users.noreply.github.com> Date: Fri, 25 Apr 2025 00:47:17 +0100 Subject: [PATCH 18/45] Update dependency AWSSDK.Lambda to 3.7.412.23 (#1055) Co-authored-by: Renovate Bot --- Directory.Packages.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 5561cceee0..3c6a546c4a 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -5,7 +5,7 @@ - + From bf62620788f55f078bed96122804e66e9190a03d Mon Sep 17 00:00:00 2001 From: Tom Longhurst <30480171+thomhurst@users.noreply.github.com> Date: Fri, 25 Apr 2025 02:47:54 +0100 Subject: [PATCH 19/45] Update dependency AWSSDK.S3 to 3.7.416.15 (#1056) Co-authored-by: Renovate Bot --- Directory.Packages.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 3c6a546c4a..76e572a7df 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -6,7 +6,7 @@ - + From 9a0363400f45a24285270f419ed6a0cd9a850de4 Mon Sep 17 00:00:00 2001 From: Tom Longhurst <30480171+thomhurst@users.noreply.github.com> Date: Fri, 25 Apr 2025 21:29:48 +0100 Subject: [PATCH 20/45] Update dependency AWSSDK.Lambda to 3.7.412.24 (#1057) Co-authored-by: Renovate Bot --- Directory.Packages.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 76e572a7df..258c49883d 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -5,7 +5,7 @@ - + From 59895d98e58de1d4a1579b44e0b84334342853a2 Mon Sep 17 00:00:00 2001 From: Tom Longhurst <30480171+thomhurst@users.noreply.github.com> Date: Fri, 25 Apr 2025 21:51:03 +0100 Subject: [PATCH 21/45] Update dependency AWSSDK.S3 to 3.7.416.16 (#1058) Co-authored-by: Renovate Bot --- Directory.Packages.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 258c49883d..39ecda6f8c 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -6,7 +6,7 @@ - + From 68ae112f7b9b26adfcffbf2f88967bd7a4b7897d Mon Sep 17 00:00:00 2001 From: Tom Longhurst <30480171+thomhurst@users.noreply.github.com> Date: Mon, 28 Apr 2025 21:28:42 +0100 Subject: [PATCH 22/45] Update aws-sdk-net monorepo to v4 (#1060) Co-authored-by: Renovate Bot --- Directory.Packages.props | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 39ecda6f8c..083085d5f8 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -5,8 +5,8 @@ - - + + From dc7231ac61c814cb484e827fb6f4d7db9c9bdd67 Mon Sep 17 00:00:00 2001 From: Tom Longhurst <30480171+thomhurst@users.noreply.github.com> Date: Tue, 29 Apr 2025 23:27:05 +0100 Subject: [PATCH 23/45] Update dependency MailKit to 4.12.0 (#1061) Co-authored-by: Renovate Bot --- Directory.Packages.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 083085d5f8..409a59e514 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -38,7 +38,7 @@ - + From d3f0472f12133320b299b946f3a9744f86fd0bf1 Mon Sep 17 00:00:00 2001 From: Tom Longhurst <30480171+thomhurst@users.noreply.github.com> Date: Wed, 30 Apr 2025 17:34:09 +0100 Subject: [PATCH 24/45] Update dependency Azure.ResourceManager.Storage to 1.4.2 (#1062) Co-authored-by: Renovate Bot --- Directory.Packages.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 409a59e514..098c418403 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -28,7 +28,7 @@ - + From 15aa5a3c02612791fb8c70b3585805d7340dd5c2 Mon Sep 17 00:00:00 2001 From: Tom Longhurst <30480171+thomhurst@users.noreply.github.com> Date: Wed, 30 Apr 2025 21:49:53 +0100 Subject: [PATCH 25/45] Update aws-sdk-net monorepo to 4.0.0.1 (#1059) Co-authored-by: Renovate Bot --- Directory.Packages.props | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 098c418403..d99e9c678d 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -5,8 +5,8 @@ - - + + From 3236ad4c55ee934953396275515d321668b64064 Mon Sep 17 00:00:00 2001 From: Tom Longhurst <30480171+thomhurst@users.noreply.github.com> Date: Thu, 1 May 2025 14:36:44 +0100 Subject: [PATCH 26/45] Update TUnit to 0.19.112 (#1063) Co-authored-by: Renovate Bot --- Directory.Packages.props | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index d99e9c678d..66a3a15677 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -74,9 +74,9 @@ - - - + + + From f5b7e4a5ba8f08471ac2b55168f8930574f98442 Mon Sep 17 00:00:00 2001 From: Tom Longhurst <30480171+thomhurst@users.noreply.github.com> Date: Fri, 2 May 2025 14:54:29 +0100 Subject: [PATCH 27/45] Update TUnit to 0.19.116 (#1064) Co-authored-by: Renovate Bot --- Directory.Packages.props | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 66a3a15677..1afbccc6d3 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -74,9 +74,9 @@ - - - + + + From 678ccba0eec42d5e1c452d126086f8b9e72df55f Mon Sep 17 00:00:00 2001 From: Tom Longhurst <30480171+thomhurst@users.noreply.github.com> Date: Tue, 6 May 2025 05:33:14 +0100 Subject: [PATCH 28/45] Update dependency Azure.ResourceManager.Sql to 1.3.0 (#1065) Co-authored-by: Renovate Bot --- Directory.Packages.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 1afbccc6d3..f3e84af562 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -27,7 +27,7 @@ - + From c17e31f2d2b07c7bfe3cc66bb5c56f58122c3c61 Mon Sep 17 00:00:00 2001 From: Tom Longhurst <30480171+thomhurst@users.noreply.github.com> Date: Tue, 6 May 2025 21:31:25 +0100 Subject: [PATCH 29/45] Update aws-sdk-net monorepo to 4.0.0.2 (#1066) Co-authored-by: Renovate Bot --- Directory.Packages.props | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index f3e84af562..f47b8788a1 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -5,8 +5,8 @@ - - + + From 6737cab78323549c4a36a4191ff9313b099a7293 Mon Sep 17 00:00:00 2001 From: Tom Longhurst <30480171+thomhurst@users.noreply.github.com> Date: Wed, 7 May 2025 21:52:04 +0100 Subject: [PATCH 30/45] Update dependency AWSSDK.S3 to 4.0.0.3 (#1067) Co-authored-by: Renovate Bot --- Directory.Packages.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index f47b8788a1..22b8fd6ed9 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -6,7 +6,7 @@ - + From aba1da41a5e322948391742a13de5a7008e9f743 Mon Sep 17 00:00:00 2001 From: Tom Longhurst <30480171+thomhurst@users.noreply.github.com> Date: Fri, 9 May 2025 19:36:22 +0100 Subject: [PATCH 31/45] Update TUnit to 0.19.136 (#1068) Co-authored-by: Renovate Bot --- Directory.Packages.props | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 22b8fd6ed9..2e0358a611 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -74,9 +74,9 @@ - - - + + + From dcdf5e2122f998a514b3dca6dfd069154b35c847 Mon Sep 17 00:00:00 2001 From: Tom Longhurst <30480171+thomhurst@users.noreply.github.com> Date: Sun, 11 May 2025 13:44:31 +0100 Subject: [PATCH 32/45] Update TUnit to 0.19.143 (#1069) Co-authored-by: Renovate Bot --- Directory.Packages.props | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 2e0358a611..97c35824ed 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -74,9 +74,9 @@ - - - + + + From 476917c4b12cac095225516ac7003ff73860a23e Mon Sep 17 00:00:00 2001 From: Tom Longhurst <30480171+thomhurst@users.noreply.github.com> Date: Mon, 12 May 2025 22:27:24 +0100 Subject: [PATCH 33/45] Update TUnit to 0.19.148 (#1070) Co-authored-by: Renovate Bot --- Directory.Packages.props | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 97c35824ed..d0f8750771 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -74,9 +74,9 @@ - - - + + + From efdf74a93266978b4d44222eb8752f649e829192 Mon Sep 17 00:00:00 2001 From: Tom Longhurst <30480171+thomhurst@users.noreply.github.com> Date: Tue, 13 May 2025 19:58:26 +0100 Subject: [PATCH 34/45] Update dotnet monorepo to 9.0.5 (#1071) Co-authored-by: Renovate Bot --- Directory.Packages.props | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index d0f8750771..c4c01a8488 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -51,9 +51,9 @@ - - - + + + @@ -73,7 +73,7 @@ - + From 2a21b8cb5c663f9e5fde1419bd37da2d92943e8b Mon Sep 17 00:00:00 2001 From: Tom Longhurst <30480171+thomhurst@users.noreply.github.com> Date: Tue, 13 May 2025 20:25:23 +0100 Subject: [PATCH 35/45] Update dependency dotnet-sdk to v9.0.300 (#1072) Co-authored-by: Renovate Bot --- global.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/global.json b/global.json index 444cdbcd7a..5335eeb68c 100644 --- a/global.json +++ b/global.json @@ -1,6 +1,6 @@ { "sdk": { - "version": "9.0.203", + "version": "9.0.300", "rollForward": "latestMinor", "allowPrerelease": false } From aa8d01dd7f60f9c4774dcb5c81d64e44e2256271 Mon Sep 17 00:00:00 2001 From: Tom Longhurst <30480171+thomhurst@users.noreply.github.com> Date: Tue, 13 May 2025 22:49:23 +0100 Subject: [PATCH 36/45] Update dependency Azure.Identity to 1.14.0 (#1073) Co-authored-by: Renovate Bot --- Directory.Packages.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index c4c01a8488..fdcbaa2836 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -7,7 +7,7 @@ - + From 4c7ffb526ac94205d8ddf04d501c629de65114bc Mon Sep 17 00:00:00 2001 From: Tom Longhurst <30480171+thomhurst@users.noreply.github.com> Date: Wed, 14 May 2025 14:40:39 +0100 Subject: [PATCH 37/45] Update dependency Microsoft.VSSDK.BuildTools to 17.14.2094 (#1074) Co-authored-by: Renovate Bot --- Directory.Packages.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index fdcbaa2836..830c938aff 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -58,7 +58,7 @@ - + From e2b5c5f856e86626d6c2f8b2f476483415327f84 Mon Sep 17 00:00:00 2001 From: Tom Longhurst <30480171+thomhurst@users.noreply.github.com> Date: Thu, 15 May 2025 08:48:18 +0100 Subject: [PATCH 38/45] Update TUnit to 0.20.0 (#1075) Co-authored-by: Renovate Bot --- Directory.Packages.props | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 830c938aff..aee26ec5c0 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -74,9 +74,9 @@ - - - + + + From bcd0640b317770bd9210867f7b37a9175ce2a6a0 Mon Sep 17 00:00:00 2001 From: Tom Longhurst <30480171+thomhurst@users.noreply.github.com> Date: Thu, 15 May 2025 21:32:10 +0100 Subject: [PATCH 39/45] Update aws-sdk-net monorepo (#1076) Co-authored-by: Renovate Bot --- Directory.Packages.props | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index aee26ec5c0..f92b6f3def 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -5,8 +5,8 @@ - - + + From 8c786b398010af2f31ae171d23544993e2a54557 Mon Sep 17 00:00:00 2001 From: Tom Longhurst <30480171+thomhurst@users.noreply.github.com> Date: Fri, 16 May 2025 22:27:24 +0100 Subject: [PATCH 40/45] Update aws-sdk-net monorepo (#1077) Co-authored-by: Renovate Bot --- Directory.Packages.props | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index f92b6f3def..09a9969e8c 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -5,8 +5,8 @@ - - + + From 6b9f578b0569805c7dc47fbc060eaba230794ca6 Mon Sep 17 00:00:00 2001 From: Tom Longhurst <30480171+thomhurst@users.noreply.github.com> Date: Sat, 17 May 2025 13:45:21 +0100 Subject: [PATCH 41/45] Update TUnit to 0.20.4 (#1078) Co-authored-by: Renovate Bot --- Directory.Packages.props | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 09a9969e8c..ddd1aa469e 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -74,9 +74,9 @@ - - - + + + From 8c4349d0bcbb681c49ee33b46276aba117785fd4 Mon Sep 17 00:00:00 2001 From: Tom Longhurst <30480171+thomhurst@users.noreply.github.com> Date: Sat, 17 May 2025 15:49:25 +0100 Subject: [PATCH 42/45] Update dependency MailKit to 4.12.1 (#1079) Co-authored-by: Renovate Bot --- Directory.Packages.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index ddd1aa469e..bad14ddae3 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -38,7 +38,7 @@ - + From dbd8fbe7a57693e151db8a2ae852953851d517e5 Mon Sep 17 00:00:00 2001 From: Tom Longhurst <30480171+thomhurst@users.noreply.github.com> Date: Sun, 18 May 2025 17:31:05 +0100 Subject: [PATCH 43/45] Update TUnit to 0.20.11 (#1080) Co-authored-by: Renovate Bot --- Directory.Packages.props | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index bad14ddae3..a0925c5766 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -74,9 +74,9 @@ - - - + + + From 03e3e5000513624eba57d35374099d0af1973073 Mon Sep 17 00:00:00 2001 From: Tom Longhurst <30480171+thomhurst@users.noreply.github.com> Date: Mon, 19 May 2025 00:12:20 +0100 Subject: [PATCH 44/45] Update TUnit to 0.20.16 (#1081) Co-authored-by: Renovate Bot --- Directory.Packages.props | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index a0925c5766..0ce53d165f 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -74,9 +74,9 @@ - - - + + + From c5e768e41023bf5711c9683d25918aca8d48525f Mon Sep 17 00:00:00 2001 From: Tom Longhurst <30480171+thomhurst@users.noreply.github.com> Date: Mon, 19 May 2025 14:08:57 +0100 Subject: [PATCH 45/45] Tweak timing --- .../Engine/Executors/ExecutionOrchestrator.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ModularPipelines/Engine/Executors/ExecutionOrchestrator.cs b/src/ModularPipelines/Engine/Executors/ExecutionOrchestrator.cs index 2c4c65b2df..53e1f8e9e5 100644 --- a/src/ModularPipelines/Engine/Executors/ExecutionOrchestrator.cs +++ b/src/ModularPipelines/Engine/Executors/ExecutionOrchestrator.cs @@ -1,5 +1,6 @@ using System.Diagnostics; using Microsoft.Extensions.Logging; +using ModularPipelines.Exceptions; using ModularPipelines.Helpers; using ModularPipelines.Logging; using ModularPipelines.Models; @@ -50,9 +51,10 @@ public async Task ExecuteAsync(CancellationToken cancellationTo { return await ExecuteInternal(cancellationToken); } - catch + catch (Exception exception) when (exception is PipelineCancelledException or TaskCanceledException or OperationCanceledException) { - await Task.Delay(TimeSpan.FromSeconds(1), CancellationToken.None); + // Let original exception bubble up first + await Task.Delay(TimeSpan.FromSeconds(5), CancellationToken.None); throw; } finally