refactor(templates): rename show to list for CLI consistency

Other subcommand groups (server, env, ssh, webpage, git proxy) use
`list` for enumeration; align templates with the same convention.
This commit is contained in:
Zhengshou Lai
2026-05-08 20:56:14 +08:00
parent 11f5635c94
commit 0317189623
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -21,9 +21,9 @@ def templates_register(path):
click.secho(f"Registered: {resolved}", fg="green")
@templates_cmd.command("show")
def templates_show():
"""Show the current registry and available templates."""
@templates_cmd.command("list")
def templates_list():
"""List the current registry and available templates."""
if not templates_registry.CONFIG_PATH.exists():
click.echo("No registry. Run: mytoolkit templates register <path>")
return