Skip to content

Commit 2fc9c45

Browse files
authored
Add thv ls as an alias of thv list (#1354)
I kept typing ls instead of list. It was easier to fix the codebase than fix my fingers.
1 parent bc54731 commit 2fc9c45

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

cmd/thv/app/list.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@ import (
1414
)
1515

1616
var listCmd = &cobra.Command{
17-
Use: "list",
18-
Short: "List running MCP servers",
19-
Long: `List all MCP servers managed by ToolHive, including their status and configuration.`,
20-
RunE: listCmdFunc,
17+
Use: "list",
18+
Aliases: []string{"ls"},
19+
Short: "List running MCP servers",
20+
Long: `List all MCP servers managed by ToolHive, including their status and configuration.`,
21+
RunE: listCmdFunc,
2122
}
2223

2324
var (

0 commit comments

Comments
 (0)