feat: command alias, hrun = httprunner run

This commit is contained in:
debugtalk
2020-04-23 21:52:14 +08:00
parent 3235f5b63c
commit 8275407fa1
2 changed files with 9 additions and 2 deletions

View File

@@ -151,5 +151,13 @@ def main():
main_locusts(args, extra_args)
def main_hrun_alias():
""" command alias
hrun = httprunner run
"""
sys.argv.insert(1, "run")
main()
if __name__ == '__main__':
main()

View File

@@ -45,8 +45,7 @@ uvicorn = "^0.11.3"
fastapi = "^0.49.0"
[tool.poetry.scripts]
hrun = "httprunner.cli:main"
ate = "httprunner.cli:main"
hrun = "httprunner.cli:main_hrun_alias"
httprunner = "httprunner.cli:main"
[build-system]