2022-02-18 00:08:42 +00:00
|
|
|
|
using System.CommandLine;
|
2021-10-24 17:38:45 +01:00
|
|
|
|
|
2021-10-08 23:48:07 +01:00
|
|
|
|
namespace Selector.CLI
|
|
|
|
|
{
|
2021-11-29 21:04:15 +00:00
|
|
|
|
public static class Program
|
2021-10-08 23:48:07 +01:00
|
|
|
|
{
|
2022-02-18 00:08:42 +00:00
|
|
|
|
public static void Main(string[] args)
|
2021-11-03 17:38:54 +00:00
|
|
|
|
{
|
2022-02-18 00:08:42 +00:00
|
|
|
|
var cmd = new HostRootCommand();
|
|
|
|
|
cmd.AddCommand(new ScrobbleCommand("scrobble", "Manipulate scrobbles"));
|
2022-02-18 22:13:16 +00:00
|
|
|
|
cmd.AddCommand(new MigrateCommand("migrate", "Migrate database"));
|
2021-11-03 17:38:54 +00:00
|
|
|
|
|
2022-02-18 00:08:42 +00:00
|
|
|
|
cmd.Invoke(args);
|
2021-11-03 17:38:54 +00:00
|
|
|
|
}
|
2021-10-08 23:48:07 +01:00
|
|
|
|
}
|
|
|
|
|
}
|