Files
night-shift/src/Features/Console/Application/Commands/ClearCommand.cs
T

14 lines
463 B
C#

using System.Collections.Generic;
using Game.Features.Console.Contracts;
namespace Game.Features.Console.Application.Commands;
public sealed class ClearCommand : ICommand
{
public string Name => "clear";
public string Description => "Clears the console output.";
public IReadOnlyList<CommandArgSpec> Args { get; } = new CommandArgsBuilder().Build();
public CommandResult Execute(CommandArgValues args) => CommandResult.Ok(clearOutput: true);
}