Skip to content

Commit

Permalink
Improve syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmetseckin committed Oct 15, 2019
1 parent 05fbf2a commit 9f4cc4a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Todo.CLI/Commands/TodoCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
8 changes: 4 additions & 4 deletions src/Todo.CLI/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<int> Main(string[] args)
{
var config = new ConfigurationBuilder()
.AddJsonFile("appsettings.json", optional: true, reloadOnChange: true)
Expand All @@ -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);
}
}
}

0 comments on commit 9f4cc4a

Please sign in to comment.