def run(self, command_line=''):
        assert command_line, 'expected non-empty command line'

        parsed = parse_command_line(command_line)

        if self._view.is_dirty() and not parsed.command.forced:
            show_error(VimError(ERR_UNSAVED_CHANGES))
            return

        path = os.path.dirname(self._view.file_name())

        try:
            self.state.settings.vi['_cmdline_cd'] = path
            show_status(path)
        except __HOLE__:
            show_error(VimError(ERR_CANT_FIND_DIR_IN_CDPATH))
dataset/ETHPy150Open guillermooo/Vintageous/ex_commands.py/ExCddCommand.run