change: remove startproject in python version, move all features to go version

This commit is contained in:
debugtalk
2022-03-26 14:25:17 +08:00
parent e382f692e4
commit ee86bb9292
29 changed files with 1152 additions and 893 deletions

View File

@@ -9,7 +9,6 @@ from loguru import logger
from httprunner import __description__, __version__
from httprunner.compat import ensure_cli_args
from httprunner.make import init_make_parser, main_make
from httprunner.scaffold import init_parser_scaffold, main_scaffold
from httprunner.utils import ga_client, init_sentry_sdk
init_sentry_sdk()
@@ -65,7 +64,6 @@ def main():
subparsers = parser.add_subparsers(help="sub-command help")
sub_parser_run = init_parser_run(subparsers)
sub_parser_scaffold = init_parser_scaffold(subparsers)
sub_parser_make = init_make_parser(subparsers)
if len(sys.argv) == 1:
@@ -80,9 +78,6 @@ def main():
elif sys.argv[1] in ["-h", "--help"]:
# httprunner -h
parser.print_help()
elif sys.argv[1] == "startproject":
# httprunner startproject
sub_parser_scaffold.print_help()
elif sys.argv[1] == "run":
# httprunner run
pytest.main(["-h"])
@@ -109,8 +104,6 @@ def main():
if sys.argv[1] == "run":
sys.exit(main_run(extra_args))
elif sys.argv[1] == "startproject":
main_scaffold(args)
elif sys.argv[1] == "make":
main_make(args.testcase_path)