using System.CommandLine;
namespace Migrato.Cli.Commands;
///
/// Shared options for commands that operate against an existing set of migrations and a database
///
internal static class MigrationOptions
{
public static readonly Option Dir = new("--dir", "-d")
{
Description = "Directory containing migration files",
DefaultValueFactory = _ => "./migrations"
};
public static readonly Option Db = new("--db", "-b")
{
Description = "Path to the SQLite database",
Required = true
};
public static readonly Option Verbose = new("--verbose", "-v")
{
Description = "Enables verbose (debug-level) logging"
};
}