def _main(): parser, options = parse_args() if options.action == 'venv': cmd_venv(options) sys.exit() if not options.inside_venv: exec_in_virtualenv(options) from performance.cli_run import cmd_run, cmd_list, cmd_list_groups from performance.compare import cmd_compare, cmd_show if options.action == 'run': cmd_run(parser, options) elif options.action == 'show': cmd_show(options) elif options.action == 'compare': cmd_compare(options) elif options.action == 'list': cmd_list(options) elif options.action == 'list_groups': cmd_list_groups(options) else: parser.print_help() sys.exit(1)
def _main(): parser, options = parse_args() if options.action == 'venv': cmd_venv(options) sys.exit() if not options.inside_venv: exec_in_virtualenv(options) from performance.cli_run import cmd_run, cmd_list from performance.compare import cmd_compare, cmd_show from performance.benchmarks import get_benchmark_groups if options.action == 'run': bench_funcs, bench_groups = get_benchmark_groups() cmd_run(parser, options, bench_funcs, bench_groups) elif options.action == 'show': cmd_show(options) elif options.action == 'compare': cmd_compare(options) elif options.action in ('list', 'list_groups'): bench_funcs, bench_groups = get_benchmark_groups() cmd_list(options, bench_funcs, bench_groups) else: parser.print_help() sys.exit(1)
def _main(): parser, options = parse_args() if options.action == 'venv': cmd_venv(options) sys.exit() elif options.action == 'compile': from performance.compile import cmd_compile cmd_compile(options) sys.exit() elif options.action == 'compile_all': from performance.compile import cmd_compile_all cmd_compile_all(options) sys.exit() elif options.action == 'upload': from performance.compile import cmd_upload cmd_upload(options) sys.exit() elif options.action == 'show': from performance.compare import cmd_show cmd_show(options) sys.exit() if not options.inside_venv: exec_in_virtualenv(options) from performance.cli_run import cmd_run, cmd_list, cmd_list_groups if options.action == 'run': cmd_run(parser, options) elif options.action == 'compare': from performance.compare import cmd_compare cmd_compare(options) elif options.action == 'list': cmd_list(options) elif options.action == 'list_groups': cmd_list_groups(options) else: parser.print_help() sys.exit(1)