Skip to content

Commit

Permalink
Remove previous workaround for styles
Browse files Browse the repository at this point in the history
This seems to work just fine now :)
  • Loading branch information
kzu committed Oct 1, 2024
1 parent 4f68f5f commit be143e5
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 47 deletions.
5 changes: 2 additions & 3 deletions src/dotnet-trx/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@
// Causes -v|--version to be added to help
config.SetApplicationVersion(ThisAssembly.Project.Version);
if (Environment.GetEnvironmentVariables().Contains("NO_COLOR") &&
config.Settings.HelpProviderStyles?.Options is { } options)
options.DefaultValue = Style.Plain;
if (Environment.GetEnvironmentVariables().Contains("NO_COLOR"))
config.Settings.HelpProviderStyles = null;
});

if (args.Contains("--version"))
Expand Down
88 changes: 44 additions & 44 deletions src/dotnet-trx/dotnet-trx.csproj
Original file line number Diff line number Diff line change
@@ -1,45 +1,45 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<RootNamespace>Devlooped</RootNamespace>
<GenerateDocumentationFile>false</GenerateDocumentationFile>
<RollForward>Major</RollForward>
<ToolCommandName>trx</ToolCommandName>
<PackageId>dotnet-trx</PackageId>
<Description>Pretty-print test results in TRX format</Description>
<PackageTags>dotnet tests dotnet-tools</PackageTags>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackAsTool>true</PackAsTool>
<BuildDate>$([System.DateTime]::Now.ToString("yyyy-MM-dd"))</BuildDate>
<BuildRef>$(GITHUB_REF_NAME)</BuildRef>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="NuGetizer" Version="1.2.3" />
<PackageReference Include="Devlooped.Web" Version="1.2.2" />
<PackageReference Include="Humanizer.Core" Version="2.14.1" />
<PackageReference Include="NuGet.Protocol" Version="6.11.0" />
<PackageReference Include="Spectre.Console.Cli" Version="0.49.1" />
<PackageReference Include="ThisAssembly.Git" Version="1.5.0" PrivateAssets="all" />
<PackageReference Include="ThisAssembly.Project" Version="1.5.0" PrivateAssets="all" />
</ItemGroup>

<ItemGroup>
<ProjectProperty Include="ToolCommandName" />
<ProjectProperty Include="BuildDate" />
<ProjectProperty Include="BuildRef" />
<ProjectProperty Include="PackageId" />
<ProjectProperty Include="PackageVersion" />
<ProjectProperty Include="PackageProjectUrl" />
</ItemGroup>

<Target Name="RenderHelp" AfterTargets="Build" Condition="$(DesignTimeBuild) != 'true'">
<WriteLinesToFile Lines="```shell" Overwrite="true" Encoding="UTF-8" File="help.md" />
<Exec Command="dotnet run --no-build -- --help &gt;&gt; help.md" StdOutEncoding="UTF-8"
EnvironmentVariables="NO_COLOR=true" />
<WriteLinesToFile Lines="```" Overwrite="false" Encoding="UTF-8" File="help.md" />
</Target>

<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<RootNamespace>Devlooped</RootNamespace>
<GenerateDocumentationFile>false</GenerateDocumentationFile>
<RollForward>Major</RollForward>
<ToolCommandName>trx</ToolCommandName>
<PackageId>dotnet-trx</PackageId>
<Description>Pretty-print test results in TRX format</Description>
<PackageTags>dotnet tests dotnet-tools</PackageTags>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackAsTool>true</PackAsTool>
<BuildDate>$([System.DateTime]::Now.ToString("yyyy-MM-dd"))</BuildDate>
<BuildRef>$(GITHUB_REF_NAME)</BuildRef>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="NuGetizer" Version="1.2.3" />
<PackageReference Include="Devlooped.Web" Version="1.2.2" />
<PackageReference Include="Humanizer.Core" Version="2.14.1" />
<PackageReference Include="NuGet.Protocol" Version="6.11.0" />
<PackageReference Include="Spectre.Console.Cli" Version="0.49.1" />
<PackageReference Include="ThisAssembly.Git" Version="1.5.0" PrivateAssets="all" />
<PackageReference Include="ThisAssembly.Project" Version="1.5.0" PrivateAssets="all" />
</ItemGroup>

<ItemGroup>
<ProjectProperty Include="ToolCommandName" />
<ProjectProperty Include="BuildDate" />
<ProjectProperty Include="BuildRef" />
<ProjectProperty Include="PackageId" />
<ProjectProperty Include="PackageVersion" />
<ProjectProperty Include="PackageProjectUrl" />
</ItemGroup>

<Target Name="RenderHelp" AfterTargets="Build" Condition="$(DesignTimeBuild) != 'true'">
<WriteLinesToFile Lines="```shell" Overwrite="true" Encoding="UTF-8" File="help.md" />
<Exec Command="dotnet run --no-build -- --help &gt;&gt; help.md" StdOutEncoding="UTF-8"
EnvironmentVariables="NO_COLOR=true" />
<WriteLinesToFile Lines="```" Overwrite="false" Encoding="UTF-8" File="help.md" />
</Target>

</Project>

0 comments on commit be143e5

Please sign in to comment.