Skip to content

Commit

Permalink
Fixed issue with composition tooling to return a status code (#7344)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelstaib authored Aug 8, 2024
1 parent 15071ee commit fa9f629
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/HotChocolate/Fusion/src/CommandLine/Program.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
var builder = App.CreateBuilder();
namespace HotChocolate.Fusion.CommandLine;

var app = builder.Build();
public static class Program
{
public static async Task<int> Main(string[] args)
{
var builder = App.CreateBuilder();

await app.InvokeAsync(args);
var app = builder.Build();

return await app.InvokeAsync(args);
}
}

0 comments on commit fa9f629

Please sign in to comment.