Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit 96450ce

Browse files
committed
Fix runtime binding error
1 parent 5931aa5 commit 96450ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ static async Task<int> Main(string[] args)
7878
var logoutCommand = new LogoutCommand(new LogoutService());
7979
commands.Add(logoutCommand.Build());
8080

81-
var builder = BuildCommandLine(client, commands).UseDefaults();
81+
var builder = BuildCommandLine(client, commands).UseDefaults().UseHost(CreateHostBuilder);
8282
builder.AddMiddleware((invocation) => {
8383
var host = invocation.GetHost();
8484
var outputFormatterFactory = host.Services.GetRequiredService<IOutputFormatterFactory>();
@@ -93,7 +93,7 @@ static async Task<int> Main(string[] args)
9393
}
9494
});
9595

96-
var parser = builder.UseHost(CreateHostBuilder).Build();
96+
var parser = builder.Build();
9797

9898
return await parser.InvokeAsync(args);
9999
}

0 commit comments

Comments
 (0)