Skip to content

Commit

Permalink
adjusted the code after updating Spectre. Closes GH-78
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy D. Miller authored and Jeremy D. Miller committed Apr 18, 2023
1 parent c9ae932 commit 0f217b9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/Oakton/Commands/CheckEnvironmentCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ public class CheckEnvironmentCommand : OaktonAsyncCommand<CheckEnvironmentInput>
public override async Task<bool> Execute(CheckEnvironmentInput input)
{
AnsiConsole.Write(
new FigletText("Oakton")
.LeftAligned());
new FigletText("Oakton"){Justification = Justify.Left});


using var host = input.BuildHost();
Expand Down
2 changes: 1 addition & 1 deletion src/Oakton/Descriptions/DescribeCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public static async Task WriteToConsole(IDescribedSystemPart[] parts)
{
var rule = new Rule($"[blue]{part.Title}[/]")
{
Alignment = Justify.Left
Justification = Justify.Left
};

AnsiConsole.Write(rule);
Expand Down
3 changes: 1 addition & 2 deletions src/Oakton/Resources/ResourcesCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ public ResourcesCommand()
public override async Task<bool> Execute(ResourceInput input)
{
AnsiConsole.Write(
new FigletText("Oakton")
.LeftAligned());
new FigletText("Oakton"){Justification = Justify.Left});

var cancellation = input.TokenSource.Token;
using var host = input.BuildHost();
Expand Down

0 comments on commit 0f217b9

Please sign in to comment.