Пример #1
0
        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;
        }
Пример #2
0
 private static IReporter CreateReporter(bool verbose, bool quiet, IConsole console)
 => new PrefixConsoleReporter("miru: ", console, verbose || IsGlobalVerbose(), quiet);