28 lines
670 B
C#
28 lines
670 B
C#
using System;
|
|
using System.Text;
|
|
using System.Text.Json;
|
|
using RedundancyFinder;
|
|
using RedundancyFinderCLI;
|
|
using Spectre.Console;
|
|
using Spectre.Console.Cli;
|
|
|
|
internal class Program
|
|
{
|
|
private static void Main(string[] args)
|
|
{
|
|
Console.OutputEncoding = Encoding.UTF8;
|
|
var app = new CommandApp<FinderCommand>();
|
|
app.Configure(config =>
|
|
{
|
|
config.AddCommand<AnalyzeCommand>("analyze");
|
|
config.AddCommand<DeleteCommand>("delete");
|
|
#if DEBUG
|
|
|
|
config.PropagateExceptions();
|
|
config.ValidateExamples();
|
|
#endif
|
|
});
|
|
|
|
app.Run(args.ToList());
|
|
}
|
|
} |