public static InteractivePrinter CreateSpinnerPrinter(string title, Func <object, string> formatter) { if (!AllowInteractivePrinting) { return(new NullPrinter()); } InteractivePrinter printer = new SpinnerPrinter() { Header = title, Formatter = formatter }; printer.Start(title); return(printer); }
public static InteractivePrinter CreateSpinnerPrinter(string title, Func<object, string> formatter) { if (!AllowInteractivePrinting) return new NullPrinter(); InteractivePrinter printer = new SpinnerPrinter() { Header = title, Formatter = formatter }; printer.Start(title); return printer; }