namespace Spectre.Console.Tests.Data;

public sealed class VersionCommand : Command<VersionSettings>
{
    private readonly IAnsiConsole _console;

    public VersionCommand(IAnsiConsole console)
    {
        _console = console;
    }

    public override int Execute(CommandContext context, VersionSettings settings)
    {
        _console.WriteLine($"VersionCommand ran, Version: {settings.Version ?? string.Empty}");

        return 0;
    }
}
