# Path: vcstool/streams.py
# def set_streams(stdout=None, stderr=None):
#     _set_streams(stdout_=stdout, stderr_=stderr)
# 
# Path: vcstool/commands/command.py
# class Command(object):
# 
#     command = None
# 
#     def __init__(self, args):
#         self.debug = args.debug if 'debug' in args else False
#         self.hide_empty = args.hide_empty if 'hide_empty' in args else False
#         self.nested = args.nested if 'nested' in args else False
#         self.output_repos = args.repos if 'repos' in args else False
#         if 'paths' in args:
#             self.paths = args.paths
#         else:
#             self.paths = [args.path]
# 
# Path: vcstool/commands/command.py
# def simple_main(parser, command_class, args=None):
#     add_common_arguments(parser)
#     args = parser.parse_args(args)
# 
#     command = command_class(args)
#     clients = find_repositories(command.paths, nested=command.nested)
#     if command.output_repos:
#         output_repositories(clients)
#     jobs = generate_jobs(clients, command)
#     results = execute_jobs(
#         jobs, show_progress=True, number_of_workers=args.workers,
#         debug_jobs=args.debug)
# 
#     output_results(results, hide_empty=args.hide_empty)
# 
#     any_error = any(r['returncode'] for r in results)
#     return 1 if any_error else 0


import argparse
import sys
from vcstool.streams import set_streams
from .command import Command
from .command import simple_main




class BranchCommand(Command):

    command = 'branch'
    help = 'Show the branches'

    def __init__(self, args):
        super(BranchCommand, self).__init__(args)

# Path: vcstool/streams.py
# def set_streams(stdout=None, stderr=None):
#     _set_streams(stdout_=stdout, stderr_=stderr)
# 
# Path: vcstool/commands/command.py
# class Command(object):
# 
#     command = None
# 
#     def __init__(self, args):
#         self.debug = args.debug if 'debug' in args else False
#         self.hide_empty = args.hide_empty if 'hide_empty' in args else False
#         self.nested = args.nested if 'nested' in args else False
#         self.output_repos = args.repos if 'repos' in args else False
#         if 'paths' in args:
#             self.paths = args.paths
#         else:
#             self.paths = [args.path]
# 
# Path: vcstool/commands/command.py
# def simple_main(parser, command_class, args=None):
#     add_common_arguments(parser)
#     args = parser.parse_args(args)
# 
#     command = command_class(args)
#     clients = find_repositories(command.paths, nested=command.nested)
#     if command.output_repos:
#         output_repositories(clients)
#     jobs = generate_jobs(clients, command)
#     results = execute_jobs(
#         jobs, show_progress=True, number_of_workers=args.workers,
#         debug_jobs=args.debug)
# 
#     output_results(results, hide_empty=args.hide_empty)
# 
#     any_error = any(r['returncode'] for r in results)
#     return 1 if any_error else 0


# Path: vcstool/commands/branch.py
import argparse
import sys
from vcstool.streams import set_streams
from .command import Command
from .command import simple_main





class BranchCommand(Command):

    command = 'branch'
    help = 'Show the branches'

    def __init__(self, args):
        super(BranchCommand, self).__init__(args)

        self.all = args.all