Files
CliFx/CliFx/FallbackDefaultCommand.cs
2021-12-08 23:43:35 +02:00

20 lines
593 B
C#

using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
using CliFx.Attributes;
using CliFx.Infrastructure;
using CliFx.Schema;
namespace CliFx;
// Fallback command used when the application doesn't have one configured.
// This command is only used as a stub for help text.
[Command]
internal class FallbackDefaultCommand : ICommand
{
public static CommandSchema Schema { get; } =
CommandSchema.Resolve(typeof(FallbackDefaultCommand));
// Never actually executed
[ExcludeFromCodeCoverage]
public ValueTask ExecuteAsync(IConsole console) => default;
}