diff --git a/src/Todo.CLI/Commands/TodoCommand.cs b/src/Todo.CLI/Commands/TodoCommand.cs index 46085fb..3f08cf6 100644 --- a/src/Todo.CLI/Commands/TodoCommand.cs +++ b/src/Todo.CLI/Commands/TodoCommand.cs @@ -12,7 +12,7 @@ public class TodoCommand : RootCommand public TodoCommand(IServiceProvider serviceProvider) { // Add static parameters - Description = "A CLI to manage to do items."; + Description = "A CLI to manage Microsoft to do items."; // Add options AddOption(GetVersionOption()); diff --git a/src/Todo.CLI/Program.cs b/src/Todo.CLI/Program.cs index 205c4e3..59924dd 100644 --- a/src/Todo.CLI/Program.cs +++ b/src/Todo.CLI/Program.cs @@ -10,12 +10,13 @@ using Microsoft.Graph; using Todo.CLI.Auth; using Todo.Core.Repository; +using System.Threading.Tasks; namespace Todo.CLI { class Program { - static int Main(string[] args) + static async Task Main(string[] args) { var config = new ConfigurationBuilder() .AddJsonFile("appsettings.json", optional: true, reloadOnChange: true) @@ -30,9 +31,8 @@ static int Main(string[] args) var serviceProvider = services.BuildServiceProvider(); - return new TodoCommand(serviceProvider) - .InvokeAsync(args) - .Result; + return await new TodoCommand(serviceProvider) + .InvokeAsync(args); } } }