mycroforge/MicroForge.CLI/Commands/MicroForge.cs
2024-04-21 23:56:27 +02:00

17 lines
436 B
C#

using System.CommandLine;
using MicroForge.CLI.Commands.Interfaces;
namespace MicroForge.CLI.Commands;
public partial class MicroForge : RootCommand
{
public override string Name => "m4g";
public MicroForge(IEnumerable<ISubCommandOf<MicroForge>> commands) : base("The MicroForge CLI tool.")
{
commands
.Cast<Command>()
.ToList()
.ForEach(AddCommand);
}
}