'Run an NCLU command'

def run_command(self, command):

    self.command_history.append(command)
    if (command == '/usr/bin/net    pending'):
        return (0, self.pending, '')
    elif (command == '/usr/bin/net    abort'):
        self.pending = ''
        return (0, '', '')
    elif command.startswith('/usr/bin/net    commit'):
        if self.pending:
            self.last_commit = self.pending
            self.pending = ''
            return (0, '', '')
        else:
            return (0, 'commit    ignored...there    were    no    pending    changes', '')
    elif (command == '/usr/bin/net    show    commit    last'):
        return (0, self.last_commit, '')
    else:
        self.pending += command
        return self.mocks.get(command, (0, '', ''))
