From 3e4c798e8a15014303ac1266ad9f36579589ae76 Mon Sep 17 00:00:00 2001 From: debugtalk Date: Fri, 15 May 2020 15:58:20 +0800 Subject: [PATCH] feat: add hmake command alias --- httprunner/cli.py | 8 ++++++++ pyproject.toml | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) 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"]