def _list(self):
    (tasks, errors) = self.rest.get_tasks()
    _exit_if_errors(errors)
    for task in tasks:
        if (task['type'] == 'xdcr'):
            print(f"stream id: {task['id']}")
            print(f"   status: {task['status']}")
            print(f"   source: {task['source']}")
            print(f"   target: {task['target']}")
            if (('filterExpression' in task) and (task['filterExpression'] != '')):
                print(f"   filter: {task['filterExpression']}")
def _list(self):
    (tasks, errors) = self.rest.get_tasks()
    _exit_if_errors(errors)
    for task in tasks:
        if (task['type'] == 'xdcr'):
            print(f"stream id: {task['id']}")
            print(f"   status: {task['status']}")
            print(f"   source: {task['source']}")
            print(f"   target: {task['target']}")
            if (('filterExpression' in task) and (task['filterExpression'] != )):
                print(f"   filter: {task['filterExpression']}")