using System.CommandLine; using MycroForge.Core.Contract; using RootCommand = MycroForge.Core.RootCommand; namespace MycroForge.CLI.Commands; public sealed partial class MycroForge : RootCommand { public override string Name => "m4g"; public MycroForge( IEnumerable> defaults, IEnumerable> plugins ) : base("The MycroForge CLI tool.") { foreach (var command in defaults.Cast()) AddCommand(command); foreach (var command in plugins.Cast()) AddCommand(command); } }