Skip to content

Commit 6ceefd8

Browse files
committed
try something else
1 parent bb92273 commit 6ceefd8

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/Backend/src/Tooling/ClaimCommand.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System.CommandLine;
2-
using System.Text.Json;
32
using Confix.Tooling;
43
using Confix.Tooling.Option;
54
using Spectre.Console;
@@ -80,12 +79,12 @@ private static async Task<int> ExecuteAsync(
8079

8180
if (useJson)
8281
{
83-
Console.WriteLine(JsonSerializer.Serialize(new
82+
console.WriteJson(new
8483
{
8584
PublishdVersion = claimedVersion.PublishedApplicationPart?.Version,
8685
Token = token,
8786
DecryptionKey = decryptionKey
88-
}));
87+
});
8988

9089
return ExitCodes.Success;
9190
}

src/Backend/src/Tooling/ConfixApp.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public ConfixCommandLine() : base(new ConfixRootCommand())
1313

1414
console.Profile.Width = 500;
1515

16-
this.AddService(AnsiConsole.Console)
16+
this.AddService(console)
1717
.AddConfixClient()
1818
.UseDefaults()
1919
.AddMiddleware(ExceptionMiddleware, MiddlewareOrder.ExceptionHandler);

0 commit comments

Comments
 (0)