15 lines
492 B
C#
15 lines
492 B
C#
using NLog;
|
|
using NLog.Extensions.Logging;
|
|
using PiwigoDirectorySync;
|
|
using PiwigoDirectorySync.Commands;
|
|
using Spectre.Console.Cli;
|
|
|
|
LogManager.Configuration = new NLogLoggingConfiguration(AppSettings.Config.GetSection("NLog"));
|
|
var logFactory = LogManager.Setup().LogFactory;
|
|
var logger = logFactory.GetCurrentClassLogger();
|
|
|
|
logger.Info("Starting command app");
|
|
var app = new CommandApp();
|
|
app.Configure(c => { c.AddCommand<ScanCommand>("scan"); });
|
|
|
|
return app.Run(args); |