From c8844b5f7dc4431022735cf0b5bb86af14d06db9 Mon Sep 17 00:00:00 2001 From: debugtalk Date: Fri, 15 May 2020 16:02:50 +0800 Subject: [PATCH] feat: add har2case command alias --- httprunner/cli.py | 8 ++++++++ pyproject.toml | 1 + 2 files changed, 9 insertions(+) diff --git a/httprunner/cli.py b/httprunner/cli.py index 50290bef..78e2b6fb 100644 --- a/httprunner/cli.py +++ b/httprunner/cli.py @@ -174,5 +174,13 @@ def main_make_alias(): main() +def main_har2case_alias(): + """ command alias + har2case = httprunner har2case + """ + sys.argv.insert(1, "har2case") + main() + + if __name__ == "__main__": main() diff --git a/pyproject.toml b/pyproject.toml index b4e105fd..581e6588 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -49,6 +49,7 @@ fastapi = "^0.49.0" httprunner = "httprunner.cli:main" hrun = "httprunner.cli:main_hrun_alias" hmake = "httprunner.cli:main_make_alias" +har2case = "httprunner.cli:main_har2case_alias" [build-system] requires = ["poetry>=1.0.0"]