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,10 +8,10 @@ namespace CliFx.Tests.TestCommands
public class HelpNamedCommand : ICommand
{
[CommandOption("option-c", 'c', Description = "OptionC description.")]
public string OptionC { get; set; }
public string? OptionC { get; set; }
[CommandOption("option-d", 'd', Description = "OptionD description.")]
public string OptionD { get; set; }
public string? OptionD { get; set; }
public Task ExecuteAsync(IConsole console) => Task.CompletedTask;
}