public WatchCommand(string commandName, Func <MiruSolution, string> func) : base(commandName) { Handler = CommandHandler.Create(() => WatchRun(func)); _console = PhysicalConsole.Singleton; _cts = new CancellationTokenSource(); _reporter = CreateReporter(verbose: true, quiet: false, console: _console); _console.CancelKeyPress += OnCancelKeyPress; }
private static IReporter CreateReporter(bool verbose, bool quiet, IConsole console) => new PrefixConsoleReporter("miru: ", console, verbose || IsGlobalVerbose(), quiet);