public IConsoleFormatter CreateConsoleFormatter(ConsoleFormatterType type, IConsoleWritter writter) { if (type == ConsoleFormatterType.Documentation) { return new DocumentionConsoleFormatter(writter); } if (type == ConsoleFormatterType.Progress) { return new ProgressConsoleFormatter(writter); } if (type == ConsoleFormatterType.Silent) { return new SilentConsoleFormatter(writter); } return new ProgressConsoleFormatter(writter); }
public IConsoleFormatter CreateConsoleFormatter(ConsoleFormatterType type, IConsoleWritter writter) { if (type == ConsoleFormatterType.Documentation) { return(new DocumentionConsoleFormatter(writter)); } if (type == ConsoleFormatterType.Progress) { return(new ProgressConsoleFormatter(writter)); } if (type == ConsoleFormatterType.Silent) { return(new SilentConsoleFormatter(writter)); } return(new ProgressConsoleFormatter(writter)); }