Something went wrong. Try again.
A database migration tool for .NET
Something went wrong. Try again.
731 B · 26 lines
C#
at develop
123456789101112131415161718192021222324252627using System.CommandLine;
namespace Migrato.Cli.Commands;
/// <summary>/// Shared options for commands that operate against an existing set of migrations and a database/// </summary>internal static class MigrationOptions{ public static readonly Option<string> Dir = new("--dir", "-d") { Description = "Directory containing migration files", DefaultValueFactory = _ => "./migrations" };
public static readonly Option<string> Db = new("--db", "-b") { Description = "Path to the SQLite database", Required = true };
public static readonly Option<bool> Verbose = new("--verbose", "-v") { Description = "Enables verbose (debug-level) logging" };}