File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 11using System . CommandLine ;
2- using System . Text . Json ;
32using Confix . Tooling ;
43using Confix . Tooling . Option ;
54using 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 }
Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments