feat: command alias, hrun = httprunner run

This commit is contained in:
debugtalk
2020-04-23 21:52:14 +08:00
parent c537a50cc0
commit 12a7f4bbd1
2 changed files with 9 additions and 2 deletions
+8
View File
@@ -151,5 +151,13 @@ def main():
main_locusts(args, extra_args) main_locusts(args, extra_args)
def main_hrun_alias():
""" command alias
hrun = httprunner run
"""
sys.argv.insert(1, "run")
main()
if __name__ == '__main__': if __name__ == '__main__':
main() main()
+1 -2
View File
@@ -45,8 +45,7 @@ uvicorn = "^0.11.3"
fastapi = "^0.49.0" fastapi = "^0.49.0"
[tool.poetry.scripts] [tool.poetry.scripts]
hrun = "httprunner.cli:main" hrun = "httprunner.cli:main_hrun_alias"
ate = "httprunner.cli:main"
httprunner = "httprunner.cli:main" httprunner = "httprunner.cli:main"
[build-system] [build-system]