public ShellState(ICommandDispatcher commandDispatcher, ISuggestionManager suggestionManager = null, IInputManager inputManager = null, ICommandHistory commandHistory = null, IConsoleManager consoleManager = null) { InputManager = inputManager ?? new InputManager(); CommandHistory = commandHistory ?? new CommandHistory(); ConsoleManager = consoleManager ?? new ConsoleManager(); CommandDispatcher = commandDispatcher; SuggestionManager = suggestionManager ?? new SuggestionManager(); }
public Shell(ICommandDispatcher dispatcher, ISuggestionManager suggestionManager = null, IConsoleManager consoleManager = null) : this(new ShellState(dispatcher, suggestionManager, consoleManager : consoleManager)) { }