feat: add har2case command alias

This commit is contained in:
debugtalk
2020-05-15 16:02:50 +08:00
parent 3e4c798e8a
commit c8844b5f7d
2 changed files with 9 additions and 0 deletions

View File

@@ -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()

View File

@@ -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"]