Skip to content

Commit a8e8687

Browse files
authored
465 add --group flag to thv run for adding mcp server to group (#1119)
1 parent 54714da commit a8e8687

File tree

19 files changed

+1068
-328
lines changed

19 files changed

+1068
-328
lines changed

cmd/thv/app/commands.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func NewRootCmd(enableUpdates bool) *cobra.Command {
5252
rootCmd.AddCommand(newSecretCommand())
5353
rootCmd.AddCommand(inspectorCommand())
5454
rootCmd.AddCommand(newMCPCommand())
55-
//rootCmd.AddCommand(groupCmd) // TODO: add back in once we have a working group command, and update the docs
55+
// rootCmd.AddCommand(groupCmd) // TODO: add back in once we have a working group command, and update the docs
5656

5757
// Silence printing the usage on error
5858
rootCmd.SilenceUsage = true

cmd/thv/app/list.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,18 +106,19 @@ func printMCPServersOutput(workloadList []workloads.Workload) error {
106106
func printTextOutput(workloadList []workloads.Workload) {
107107
// Create a tabwriter for pretty output
108108
w := tabwriter.NewWriter(os.Stdout, 0, 0, 3, ' ', 0)
109-
fmt.Fprintln(w, "NAME\tPACKAGE\tSTATUS\tURL\tPORT\tTOOL TYPE\tCREATED AT")
109+
fmt.Fprintln(w, "NAME\tPACKAGE\tSTATUS\tURL\tPORT\tTOOL TYPE\tGROUP\tCREATED AT")
110110

111111
// Print workload information
112112
for _, c := range workloadList {
113113
// Print workload information
114-
fmt.Fprintf(w, "%s\t%s\t%s\t%s\t%d\t%s\t%s\n",
114+
fmt.Fprintf(w, "%s\t%s\t%s\t%s\t%d\t%s\t%s\t%s\n",
115115
c.Name,
116116
c.Package,
117117
c.Status,
118118
c.URL,
119119
c.Port,
120120
c.ToolType,
121+
c.Group,
121122
c.CreatedAt,
122123
)
123124
}

0 commit comments

Comments
 (0)