mirror of
https://github.com/spectreconsole/spectre.console.git
synced 2025-10-25 15:19:23 +00:00
Temporary fix for commands not showing up if they are missing a description. This is really a bug in the table rendering and should be fixed there at some point. Closes #192
17 lines
432 B
C#
17 lines
432 B
C#
using System.Diagnostics.CodeAnalysis;
|
|
using Spectre.Console.Cli;
|
|
|
|
namespace Spectre.Console.Tests.Data
|
|
{
|
|
public sealed class NoDescriptionCommand : Command<EmptyCommandSettings>
|
|
{
|
|
[CommandOption("-f|--foo <VALUE>")]
|
|
public int Foo { get; set; }
|
|
|
|
public override int Execute([NotNull] CommandContext context, [NotNull] EmptyCommandSettings settings)
|
|
{
|
|
return 0;
|
|
}
|
|
}
|
|
}
|