feat: add hmake command alias

This commit is contained in:
debugtalk
2020-05-15 15:58:20 +08:00
parent ca7570443f
commit 3e4c798e8a
2 changed files with 10 additions and 1 deletions

View File

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

View File

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