Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions UnoCheck/CheckCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,23 @@ public override async Task<int> ExecuteAsync(CommandContext context, CheckSettin

AnsiConsole.Markup(AsciiAssets.UnoLogo);
AnsiConsole.WriteLine();
AnsiConsole.Render(
new FigletText("uno-check").LeftAligned().Color(new Color(122, 103, 247)));
AnsiConsole.Write(
new FigletText("uno-check").LeftJustified().Color(new Color(122, 103, 247)));

AnsiConsole.MarkupLine($"[underline bold green]{Icon.Ambulance} {ToolInfo.ToolName} v{ToolInfo.CurrentVersion} {Icon.Recommend}[/]");
AnsiConsole.Render(new Rule());
AnsiConsole.Write(new Rule());

AnsiConsole.MarkupLine("This tool will check your Uno Platform development environment.");
AnsiConsole.MarkupLine("If problems are detected, it will offer the option to try and fix them for you, or suggest a way to fix them yourself.");
AnsiConsole.Render(new Rule());
AnsiConsole.Write(new Rule());

if (!Util.IsAdmin() && Util.IsWindows)
{
var suTxt = Util.IsWindows ? "Administrator" : "Superuser (su)";

AnsiConsole.MarkupLine($"[bold red]{Icon.Bell} {suTxt} is required to fix most issues. Consider exiting and running the tool with {suTxt} permissions.[/]");

AnsiConsole.Render(new Rule());
AnsiConsole.Write(new Rule());

if (!settings.NonInteractive)
{
Expand Down Expand Up @@ -188,13 +188,13 @@ public override async Task<int> ExecuteAsync(CommandContext context, CheckSettin
if (diagnosis.HasSuggestion)
{
Console.WriteLine();
AnsiConsole.Render(new Rule());
AnsiConsole.Write(new Rule());
AnsiConsole.MarkupLine($"[bold blue]{Icon.Recommend} Recommendation:[/][blue] {diagnosis.Suggestion.Name}[/]");

if (!string.IsNullOrEmpty(diagnosis.Suggestion.Description))
AnsiConsole.MarkupLine("" + diagnosis.Suggestion.Description + "");

AnsiConsole.Render(new Rule());
AnsiConsole.Write(new Rule());
Console.WriteLine();

// See if we should fix
Expand Down Expand Up @@ -255,7 +255,7 @@ public override async Task<int> ExecuteAsync(CommandContext context, CheckSettin
checkup.OnStatusUpdated -= checkupStatusUpdated;
}

AnsiConsole.Render(new Rule());
AnsiConsole.Write(new Rule());
AnsiConsole.WriteLine();

var erroredChecks = results.Values.Where(d => d.Status == Models.Status.Error && !skippedChecks.Contains(d.Checkup.Id));
Expand Down
3 changes: 2 additions & 1 deletion UnoCheck/UnoCheck.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
<PackageReference Include="NuGet.Versioning" Version="5.10.0" />
<PackageReference Include="Microsoft.Build.Framework" Version="16.9.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="Spectre.Console.Cli" Version="0.46.1-preview.0.6" />
<PackageReference Include="System.Collections.Immutable" Version="5.0.0" />
<PackageReference Include="System.Text.Encoding.CodePages" Version="4.7.1" />
<PackageReference Include="System.Text.Json" Version="5.0.2" />
Expand All @@ -46,7 +47,7 @@
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="plist-cil" Version="2.2.0" />
<PackageReference Include="Spectre.Console" Version="0.41.0" />
<PackageReference Include="Spectre.Console" Version="0.46.1-preview.0.6" />
<PackageReference Include="Xamarin.LibZipSharp" Version="2.0.0" />
<PackageReference Include="Mono.Posix.NETStandard" Version="5.20.1-preview" Condition=" '$(OS)' != 'Windows_NT' " />
<PackageReference Include="ini-parser-netstandard" Version="2.5.2" />
Expand Down