Skip to content

Commit

Permalink
Merge pull request #735 from adamralph/bullseye-public-only
Browse files Browse the repository at this point in the history
updated Bullseye from 4.0.0 to 4.2.0
  • Loading branch information
EdwardCooke committed Nov 10, 2022
2 parents 02685df + e8cb22e commit eb821bf
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 16 deletions.
28 changes: 13 additions & 15 deletions tools/build/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using Bullseye;
using Bullseye.Internal;
using static Bullseye.Targets;
using OperatingSystem = Bullseye.Internal.OperatingSystem;

namespace build
{
Expand Down Expand Up @@ -136,18 +134,18 @@ static async Task<int> Main(string[] args)

var (specifiedTargets, options, unknownOptions, showHelp) = CommandLine.Parse(filteredArguments);
verbose = options.Verbose;
Host = options.Host.DetectIfAutomatic();
Host = options.Host.DetectIfNull();

var operatingSystem =
var osPlatform =
RuntimeInformation.IsOSPlatform(OSPlatform.Windows)
? OperatingSystem.Windows
? OSPlatform.Windows
: RuntimeInformation.IsOSPlatform(OSPlatform.Linux)
? OperatingSystem.Linux
? OSPlatform.Linux
: RuntimeInformation.IsOSPlatform(OSPlatform.OSX)
? OperatingSystem.MacOS
: OperatingSystem.Unknown;
? OSPlatform.OSX
: OSPlatform.Create("Unknown");

palette = new Palette(options.NoColor, options.NoExtendedChars, options.Host, operatingSystem);
palette = new Palette(options.NoColor, options.NoExtendedChars, Host, osPlatform);

var targets = specifiedTargets.ToList();

Expand Down Expand Up @@ -209,9 +207,9 @@ static async Task<int> Main(string[] args)
if (showHelp)
{
Console.WriteLine();
Console.WriteLine($"{palette.Default}Additional options:");
Console.WriteLine($" {palette.Option}--no-prerelease {palette.Default}Force the current version to be considered final{palette.Reset}");
Console.WriteLine($" {palette.Option}--version=<version> {palette.Default}Force the current version to equal to the specified value{palette.Reset}");
Console.WriteLine($"{palette.Text}Additional options:");
Console.WriteLine($" {palette.Option}--no-prerelease {palette.Text}Force the current version to be considered final{palette.Default}");
Console.WriteLine($" {palette.Option}--version=<version> {palette.Text}Force the current version to equal to the specified value{palette.Default}");
}

return exitCode;
Expand All @@ -227,12 +225,12 @@ public static void WriteVerbose(string text)

public static void WriteInformation(string text)
{
Console.WriteLine($" {palette.Default}(i) {text}{palette.Reset}");
Console.WriteLine($" {palette.Text}(i) {text}{palette.Default}");
}

public static void WriteWarning(string text)
{
Console.WriteLine($" {palette.Option}/!\\ {text}{palette.Reset}");
Console.WriteLine($" {palette.Option}/!\\ {text}{palette.Default}");
}

public static void WriteImportant(string text)
Expand Down Expand Up @@ -300,7 +298,7 @@ private static IEnumerable<string> WrapText(string text, int length)

private static void Write(string text, string color)
{
Console.WriteLine($"{color}{text}{palette.Reset}");
Console.WriteLine($"{color}{text}{palette.Default}");
}

public static IEnumerable<string> ReadLines(string name, string? args = null, string? workingDirectory = null) => SimpleExec.Command
Expand Down
2 changes: 1 addition & 1 deletion tools/build/build.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Bullseye" Version="4.0.0" />
<PackageReference Include="Bullseye" Version="4.2.0" />
<PackageReference Include="Microsoft.AspNet.WebApi.Client" Version="5.2.7" />
<PackageReference Include="SimpleExec" Version="6.4.0" />
</ItemGroup>
Expand Down

0 comments on commit eb821bf

Please sign in to comment.