31 lines
826 B
C#
31 lines
826 B
C#
using AppScaffolding;
|
|
using CommandLine;
|
|
using System;
|
|
using System.Linq;
|
|
using System.Reflection;
|
|
|
|
namespace LibationCli
|
|
{
|
|
public static class Setup
|
|
{
|
|
public static void Initialize()
|
|
{
|
|
//***********************************************//
|
|
// //
|
|
// do not use Configuration before this line //
|
|
// //
|
|
//***********************************************//
|
|
var config = LibationScaffolding.RunPreConfigMigrations();
|
|
|
|
|
|
LibationScaffolding.RunPostConfigMigrations(config);
|
|
LibationScaffolding.RunPostMigrationScaffolding(config);
|
|
}
|
|
|
|
public static Type[] LoadVerbs() => Assembly.GetExecutingAssembly()
|
|
.GetTypes()
|
|
.Where(t => t.GetCustomAttribute<VerbAttribute>() is not null)
|
|
.ToArray();
|
|
}
|
|
}
|