diff --git a/httprunner/cli.py b/httprunner/cli.py index 16a1442d..50290bef 100644 --- a/httprunner/cli.py +++ b/httprunner/cli.py @@ -166,5 +166,13 @@ def main_hrun_alias(): main() +def main_make_alias(): + """ command alias + hmake = httprunner make + """ + sys.argv.insert(1, "make") + main() + + if __name__ == "__main__": main() diff --git a/pyproject.toml b/pyproject.toml index 6bda067e..b4e105fd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -46,8 +46,9 @@ uvicorn = "^0.11.3" fastapi = "^0.49.0" [tool.poetry.scripts] -hrun = "httprunner.cli:main_hrun_alias" httprunner = "httprunner.cli:main" +hrun = "httprunner.cli:main_hrun_alias" +hmake = "httprunner.cli:main_make_alias" [build-system] requires = ["poetry>=1.0.0"]