public DeleteAutoDeployOverrideCommand(IOctopusAsyncRepositoryFactory repositoryFactory, ILogger log, IOctopusFileSystem fileSystem, IOctopusClientFactory octopusClientFactory) : base(octopusClientFactory, repositoryFactory, log, fileSystem) { var options = Options.For("Delete auto deploy release override"); options.Add("project=", "Name of the project", v => ProjectName = v); options.Add("environment=", "Name of an environment the override will apply to. Specify this argument multiple times to add multiple environments.", v => EnvironmentNames.Add(v)); options.Add("tenant=", "[Optional] Name of a tenant the override will apply to. Specify this argument multiple times to add multiple tenants or use `*` wildcard for all tenants.", t => TenantNames.Add(t)); options.Add("tenanttag=", "[Optional] A tenant tag used to match tenants that the override will apply to. Specify this argument multiple times to add multiple tenant tags", tt => TenantTags.Add(tt)); }
public DeleteAutoDeployOverrideCommand(IOctopusAsyncRepositoryFactory repositoryFactory, IOctopusFileSystem fileSystem, IOctopusClientFactory octopusClientFactory, ICommandOutputProvider commandOutputProvider) : base(octopusClientFactory, repositoryFactory, fileSystem, commandOutputProvider) { var options = Options.For("Delete auto deploy release override"); options.Add("project=", "Name of the project", v => ProjectName = v); options.Add("environment=", "Name of an environment the override will apply to. Specify this argument multiple times to add multiple environments.", v => EnvironmentNames.Add(v)); options.Add("tenant=", "[Optional] Name of a tenant the override will apply to. Specify this argument multiple times to add multiple tenants or use `*` wildcard for all tenants.", t => TenantNames.Add(t)); options.Add("tenanttag=", "[Optional] A tenant tag used to match tenants that the override will apply to. Specify this argument multiple times to add multiple tenant tags", tt => TenantTags.Add(tt)); deletedDeplomentOverrides = new List <Tuple <EnvironmentResource, TenantResource, DeletedOutcome> >(); }
public CreateAutoDeployOverrideCommand(IOctopusAsyncRepositoryFactory repositoryFactory, IOctopusFileSystem fileSystem, IOctopusClientFactory clientFactory, ICommandOutputProvider commandOutputProvider) : base(clientFactory, repositoryFactory, fileSystem, commandOutputProvider) { var options = Options.For("Auto deploy release override"); options.Add <string>("project=", "Name of the project.", v => ProjectName = v); options.Add <string>("environment=", "Name of an environment the override will apply to. Specify this argument multiple times to add multiple environments.", v => EnvironmentNames.Add(v), allowsMultiple: true); options.Add <string>("version=|releaseNumber=", "Release number to use for auto deployments.", v => ReleaseVersionNumber = v); options.Add <string>("tenant=", "[Optional] Name of a tenant the override will apply to. Specify this argument multiple times to add multiple tenants or use `*` wildcard for all tenants.", t => TenantNames.Add(t), allowsMultiple: true); options.Add <string>("tenantTag=", "[Optional] A tenant tag used to match tenants that the override will apply to. Specify this argument multiple times to add multiple tenant tags", tt => TenantTags.Add(tt), allowsMultiple: true); createdDeploymentOverides = new List <Tuple <EnvironmentResource, TenantResource, CreatedOutcome> >(); }