diff --git a/src/Spectre.Console.Cli/CommandOfT.cs b/src/Spectre.Console.Cli/CommandOfT.cs index 3415e32..e2be58e 100644 --- a/src/Spectre.Console.Cli/CommandOfT.cs +++ b/src/Spectre.Console.Cli/CommandOfT.cs @@ -14,7 +14,7 @@ public abstract class Command : ICommand /// The command context. /// The settings. /// The validation result. - public virtual ValidationResult Validate([NotNull] CommandContext context, [NotNull] TSettings settings) + public virtual ValidationResult Validate(CommandContext context, TSettings settings) { return ValidationResult.Success(); } @@ -25,7 +25,7 @@ public abstract class Command : ICommand /// The command context. /// The settings. /// An integer indicating whether or not the command executed successfully. - public abstract int Execute([NotNull] CommandContext context, [NotNull] TSettings settings); + public abstract int Execute(CommandContext context, TSettings settings); /// ValidationResult ICommand.Validate(CommandContext context, CommandSettings settings) diff --git a/src/Spectre.Console.Cli/Internal/Commands/ExplainCommand.cs b/src/Spectre.Console.Cli/Internal/Commands/ExplainCommand.cs index 85467a1..832872d 100644 --- a/src/Spectre.Console.Cli/Internal/Commands/ExplainCommand.cs +++ b/src/Spectre.Console.Cli/Internal/Commands/ExplainCommand.cs @@ -34,7 +34,7 @@ internal sealed class ExplainCommand : Command public bool IncludeHidden { get; } } - public override int Execute([NotNull] CommandContext context, [NotNull] Settings settings) + public override int Execute(CommandContext context, Settings settings) { var tree = new Tree("CLI Configuration"); tree.AddNode(ValueMarkup("Application Name", _commandModel.ApplicationName, "no application name")); diff --git a/src/Spectre.Console.Cli/Internal/Commands/VersionCommand.cs b/src/Spectre.Console.Cli/Internal/Commands/VersionCommand.cs index 4a944e3..20f3e70 100644 --- a/src/Spectre.Console.Cli/Internal/Commands/VersionCommand.cs +++ b/src/Spectre.Console.Cli/Internal/Commands/VersionCommand.cs @@ -15,7 +15,7 @@ internal sealed class VersionCommand : Command { } - public override int Execute([NotNull] CommandContext context, [NotNull] Settings settings) + public override int Execute(CommandContext context, Settings settings) { _writer.MarkupLine( "[yellow]Spectre.Cli[/] version [aqua]{0}[/]", diff --git a/src/Spectre.Console.Cli/Internal/Commands/XmlDocCommand.cs b/src/Spectre.Console.Cli/Internal/Commands/XmlDocCommand.cs index fb6cadc..8072518 100644 --- a/src/Spectre.Console.Cli/Internal/Commands/XmlDocCommand.cs +++ b/src/Spectre.Console.Cli/Internal/Commands/XmlDocCommand.cs @@ -17,7 +17,7 @@ internal sealed class XmlDocCommand : Command { } - public override int Execute([NotNull] CommandContext context, [NotNull] Settings settings) + public override int Execute(CommandContext context, Settings settings) { _writer.Write(Serialize(_model), Style.Plain); return 0; diff --git a/test/Spectre.Console.Cli.Tests/Data/Commands/GreeterCommand.cs b/test/Spectre.Console.Cli.Tests/Data/Commands/GreeterCommand.cs index 7e3e653..cb7bdda 100644 --- a/test/Spectre.Console.Cli.Tests/Data/Commands/GreeterCommand.cs +++ b/test/Spectre.Console.Cli.Tests/Data/Commands/GreeterCommand.cs @@ -9,7 +9,7 @@ public class GreeterCommand : Command _console = console; } - public override int Execute([NotNull] CommandContext context, [NotNull] OptionalArgumentWithDefaultValueSettings settings) + public override int Execute(CommandContext context, OptionalArgumentWithDefaultValueSettings settings) { _console.WriteLine(settings.Greeting); return 0;