How to use the vcstool.commands.command.simple_main function in vcstool

To help you get started, we’ve selected a few vcstool examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dirk-thomas / vcstool / vcstool / commands / log.py View on Github external
def main(args=None, stdout=None, stderr=None):
    set_streams(stdout=stdout, stderr=stderr)
    parser = get_parser()
    return simple_main(parser, LogCommand, args)
github dirk-thomas / vcstool / vcstool / commands / diff.py View on Github external
def main(args=None, stdout=None, stderr=None):
    set_streams(stdout=stdout, stderr=stderr)
    parser = get_parser()
    return simple_main(parser, DiffCommand, args)
github dirk-thomas / vcstool / vcstool / commands / pull.py View on Github external
def main(args=None, stdout=None, stderr=None):
    set_streams(stdout=stdout, stderr=stderr)
    parser = get_parser()
    return simple_main(parser, PullCommand, args)
github dirk-thomas / vcstool / vcstool / commands / remotes.py View on Github external
def main(args=None, stdout=None, stderr=None):
    set_streams(stdout=stdout, stderr=stderr)
    parser = get_parser()
    return simple_main(parser, RemotesCommand, args)
github dirk-thomas / vcstool / vcstool / commands / branch.py View on Github external
def main(args=None, stdout=None, stderr=None):
    set_streams(stdout=stdout, stderr=stderr)
    parser = get_parser()
    return simple_main(parser, BranchCommand, args)
github dirk-thomas / vcstool / vcstool / commands / status.py View on Github external
def main(args=None, stdout=None, stderr=None):
    set_streams(stdout=stdout, stderr=stderr)
    parser = get_parser()
    return simple_main(parser, StatusCommand, args)