mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-05 23:51:25 +08:00
feat: command alias, hrun = httprunner run
This commit is contained in:
@@ -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
@@ -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]
|
||||||
|
|||||||
Reference in New Issue
Block a user