Use C#8 features and cleanup

This commit is contained in:
Alexey Golub
2019-11-13 20:31:48 +02:00
parent 85caa275ae
commit 9690c380d3
66 changed files with 381 additions and 523 deletions

View File

@@ -1,5 +1,4 @@
using System.Threading;
using System.Threading.Tasks;
using System.Threading.Tasks;
using CliFx.Attributes;
using CliFx.Services;
@@ -9,7 +8,7 @@ namespace CliFx.Tests.TestCommands
public class EnvironmentVariableCommand : ICommand
{
[CommandOption("opt", EnvironmentVariableName = "ENV_SINGLE_VALUE")]
public string Option { get; set; }
public string? Option { get; set; }
public Task ExecuteAsync(IConsole console) => Task.CompletedTask;
}