Update help formatting, allow help to be filtered by tag

This commit is contained in:
2025-05-31 21:51:08 -04:00
parent 1585098513
commit 21af003bc7
7 changed files with 99 additions and 55 deletions

View File

@ -21,7 +21,8 @@ flx = Falyx("Deployment CLI")
flx.add_command(
key="D",
aliases=["deploy"],
description="Deploy a service to a specified region.",
description="Deploy",
help_text="Deploy a service to a specified region.",
action=Action(
name="deploy_service",
action=deploy,
@ -31,6 +32,7 @@ flx.add_command(
"region": {"help": "Deployment region", "choices": ["us-east-1", "us-west-2"]},
"verbose": {"help": "Enable verbose mode"},
},
tags=["deployment", "service"],
)
deploy_chain = ChainedAction(
@ -48,8 +50,10 @@ deploy_chain = ChainedAction(
flx.add_command(
key="N",
aliases=["notify"],
description="Deploy a service and notify.",
description="Deploy and Notify",
help_text="Deploy a service and notify.",
action=deploy_chain,
tags=["deployment", "service", "notification"],
)
asyncio.run(flx.run())