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

27 lines
749 B
C#

using System.CommandLine;
using MicroForge.CLI.Commands.Interfaces;
using MicroForge.CLI.Features;
namespace MicroForge.CLI.Commands;
public partial class MicroForge
{
public partial class Add
{
public class Orm : Command, ISubCommandOf<Add>
{
public Orm(ProjectContext context, IEnumerable<IFeature> features) :
base("orm", "Add SQLAlchemy to your project")
{
var feature = features.First(f => f.Name == Features.Orm.FeatureName);
this.SetHandler(async () => await feature.ExecuteAsync(context));
}
public class Generate
{
}
}
}
}