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

18 lines
532 B
C#

using System.CommandLine;
using MicroForge.CLI.Commands.Interfaces;
namespace MicroForge.CLI.Commands;
public partial class MicroForge
{
public partial class Generate : Command, ISubCommandOf<MicroForge>
{
public Generate(IEnumerable<ISubCommandOf<Generate>> subCommands) :
base("generate", "Generate a project item")
{
AddAlias("g");
foreach (var subCommandOf in subCommands)
AddCommand((subCommandOf as Command)!);
}
}
}