private void FileManagerCommandsRegister(CommandHolder holder) => holder .Register(new ChangeDirectoryCommand(_filesManager)) .Register(new CopyPathCommand(_filesManager)) .Register(new DeletePathCommand(_filesManager)) .Register(new ExitCommand(this)) .Register(new ShowDetailsCommand(_filesManager, _consoleHandler)) ;
private void CommandModeCommandsRegister(CommandHolder holder) => holder .Register(new AppendCharToCommandLineCommand(_commandHolder, _consoleHandler)) .Register(new ExecuteFileManagerCommand(_commandHolder)) .Register(new MoveCursorLeftCommand(_consoleHandler)) .Register(new MoveCursorRightCommand(_commandHolder, _consoleHandler)) .Register(new NextCommandCommand(_commandHolder)) .Register(new PreviousCommandCommand(_commandHolder)) .Register(new RemovePreviousCharFromCommandLineCommand(_commandHolder, _consoleHandler)) ;
private void SharedCommandsRegister(CommandHolder holder) => holder .Register(new SwitchInputHandleModeCommand(holder), InputHandleMode.Shared) ;
private void ViewModeCommandsRegister(CommandHolder holder) => holder .Register(new MoveCursorToNextLineCommand(_consoleHandler), InputHandleMode.List) .Register(new MoveCursorToPreviousLineCommand(_consoleHandler), InputHandleMode.List) .Register(new ShowSelectedLineInfoCommand(_filesManager, _consoleHandler), InputHandleMode.List) ;