Add console abstraction, remove CommandContext

This commit is contained in:
Alexey Golub
2019-07-30 17:35:06 +03:00
parent 5174d5354b
commit 041a995c62
26 changed files with 399 additions and 391 deletions

View File

@@ -1,6 +1,6 @@
using System.Threading.Tasks;
using CliFx.Attributes;
using CliFx.Models;
using CliFx.Services;
namespace CliFx.Benchmarks.Commands
{
@@ -16,6 +16,6 @@ namespace CliFx.Benchmarks.Commands
[CommandOption("bool", 'b')]
public bool BoolOption { get; set; }
public Task ExecuteAsync(CommandContext context) => Task.CompletedTask;
public Task ExecuteAsync(IConsole console) => Task.CompletedTask;
}
}