This repository has been archived on 2023-02-02. You can view files and clone it, but cannot push or open issues or pull requests.
mfgames-nitride-cil/src/MfGames.Nitride/Commands/IPipelineCommandOption.cs

23 lines
623 B
C#

using System.CommandLine;
using System.CommandLine.Invocation;
namespace MfGames.Nitride.Commands;
/// <summary>
/// Creates new options for the build command to allow injecting an
/// option into the build command.
/// </summary>
public interface IPipelineCommandOption
{
/// <summary>
/// The option that used to bind to the command.
/// </summary>
Option Option { get; }
/// <summary>
/// Handles the command after it has been created and the options bound.
/// </summary>
/// <param name="context">The context of the CLI command.</param>
void Handle(InvocationContext context);
}