using System.CommandLine; using MycroForge.CLI.Commands.Interfaces; namespace MycroForge.CLI.Commands; public partial class MycroForge { public partial class Orm { public class Migrate : Command, ISubCommandOf { public Migrate() : base("migrate", "Apply migrations to the database") { this.SetHandler(ExecuteAsync); } private async Task ExecuteAsync() { await Bash.ExecuteAsync([ "source .venv/bin/activate", "alembic upgrade head" ]); } } } }