Skip to content

Commit

Permalink
Mark Tenant and TenantTag as optional (#98)
Browse files Browse the repository at this point in the history
Also update licence & icon elements to remove deprecated properties
  • Loading branch information
matt-richardson authored Sep 8, 2020
1 parent ca90873 commit d651532
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ protected DeploymentCommandBase(
options.Add<string>("v|variable=", "[Optional] Values for any prompted variables in the format Label:Value. For JSON values, embedded quotation marks should be escaped with a backslash. Specify this argument multiple times to add multiple variables.", ParseVariable);
options.Add<DateTimeOffset>("deployAt=", "[Optional] Time at which deployment should start (scheduled deployment), specified as any valid DateTimeOffset format, and assuming the time zone is the current local time zone.", v => DeployAt = v);
options.Add<DateTimeOffset>("noDeployAfter=", "[Optional] Time at which scheduled deployment should expire, specified as any valid DateTimeOffset format, and assuming the time zone is the current local time zone.", v => NoDeployAfter = v);
options.Add<string>("tenant=", "Create a deployment for the tenant with this name or ID; specify this argument multiple times to add multiple tenants or use `*` wildcard to deploy to all tenants who are ready for this release (according to lifecycle).", t => Tenants.Add(t));
options.Add<string>("tenantTag=", "Create a deployment for tenants matching this tag; specify this argument multiple times to build a query/filter with multiple tags, just like you can in the user interface.", tt => TenantTags.Add(tt));
options.Add<string>("tenant=", "[Optional] Create a deployment for the tenant with this name or ID; specify this argument multiple times to add multiple tenants or use `*` wildcard to deploy to all tenants who are ready for this release (according to lifecycle).", t => Tenants.Add(t));
options.Add<string>("tenantTag=", "[Optional] Create a deployment for tenants matching this tag; specify this argument multiple times to build a query/filter with multiple tags, just like you can in the user interface.", tt => TenantTags.Add(tt));

}

Expand Down
8 changes: 7 additions & 1 deletion source/Octopus.Cli/Octopus.Cli.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
<TargetFrameworks Condition="$([MSBuild]::IsOSUnixLike())">netstandard2.0</TargetFrameworks>
<Authors>Octopus Deploy</Authors>
<Copyright>Octopus Deploy Pty Ltd</Copyright>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
<PackageIcon>icon.png</PackageIcon>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/OctopusDeploy/OctopusCli</RepositoryUrl>
<Description>Octopus Deploy is an automated release management tool for modern developers and DevOps teams.

This package contains the .NET CLI library for interacting with the HTTP API in Octopus.</Description>
Expand Down Expand Up @@ -40,5 +44,7 @@
<PropertyGroup Condition="$([System.Text.RegularExpressions.Regex]::IsMatch('$(TargetFramework)', '^net\d'))">
<DefineConstants>NETFRAMEWORK</DefineConstants>
</PropertyGroup>

<ItemGroup>
<None Include="icon.png" Pack="true" PackagePath="\"/>
</ItemGroup>
</Project>
Binary file added source/Octopus.Cli/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 8 additions & 5 deletions source/Octopus.DotNet.Cli/Octopus.DotNet.Cli.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<!--
We include all possible targets here so that no matter what framework version
<!--
We include all possible targets here so that no matter what framework version
the user has installed, there is an appropriate build in the tools package
-->
<TargetFrameworks>netcoreapp2.1;netcoreapp2.2;netcoreapp3.0;netcoreapp3.1</TargetFrameworks>
Expand All @@ -12,14 +12,14 @@
<PackageId>Octopus.DotNet.Cli</PackageId>
<Authors>Octopus Deploy</Authors>
<Copyright>Octopus Deploy Pty Ltd</Copyright>
<PackageIconUrl>http://i.octopusdeploy.com/resources/Avatar3-32x32.png</PackageIconUrl>
<PackageIcon>icon.png</PackageIcon>
<PackageProjectUrl>http://octopusdeploy.com/</PackageProjectUrl>
<PackageLicenseUrl>http://octopusdeploy.com/pricing</PackageLicenseUrl>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/OctopusDeploy/OctopusCli</RepositoryUrl>
<Description>Octopus Deploy is an automated release management tool for modern developers and DevOps teams.

This package contains the client library for the HTTP API in Octopus.</Description>
This package contains the dotnet tool version of the CLI library for interacting with the HTTP API in Octopus.</Description>

<PackageType>DotnetCliTool</PackageType>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
Expand All @@ -35,5 +35,8 @@
<ItemGroup>
<ProjectReference Include="..\Octopus.Cli\Octopus.Cli.csproj" />
</ItemGroup>
<ItemGroup>
<None Include="icon.png" Pack="true" PackagePath="\"/>
</ItemGroup>

</Project>
Binary file added source/Octopus.DotNet.Cli/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d651532

Please sign in to comment.