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