Skip to content

Commit 78f50cd

Browse files
committed
🚸 Use table as default output
1 parent 3e61ad2 commit 78f50cd

File tree

50 files changed

+66
-83
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+66
-83
lines changed

cmd/activity/activity.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const (
1717
pbUsage = "Filter on activities published before this date"
1818
rcUsage = ""
1919
partsUsage = "Comma separated parts"
20-
outputUsage = "json or yaml"
20+
outputUsage = "json, yaml, or table"
2121
)
2222

2323
var (

cmd/activity/list.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ var listTool = mcp.NewTool(
5050
mcp.Description(partsUsage), mcp.Required(),
5151
),
5252
mcp.WithString(
53-
"output", mcp.DefaultString(""), mcp.Description(outputUsage),
53+
"output", mcp.DefaultString("table"), mcp.Description(outputUsage),
5454
mcp.Required(),
5555
),
5656
)
@@ -98,7 +98,7 @@ func init() {
9898
)
9999
listCmd.Flags().StringVarP(&regionCode, "regionCode", "r", "", rcUsage)
100100
listCmd.Flags().StringSliceVarP(&parts, "parts", "p", defaultParts, partsUsage)
101-
listCmd.Flags().StringVarP(&output, "output", "o", "", outputUsage)
101+
listCmd.Flags().StringVarP(&output, "output", "o", "table", outputUsage)
102102
}
103103

104104
func listHandler(ctx context.Context, request mcp.CallToolRequest) (

cmd/caption/list.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
const (
99
listShort = "List captions"
1010
listLong = "List captions of a video"
11-
listOutputUsage = "json or yaml"
11+
listOutputUsage = "json, yaml, or table"
1212
listIdsUsage = "IDs of the captions to list"
1313
)
1414

@@ -45,5 +45,5 @@ func init() {
4545
listCmd.Flags().StringSliceVarP(
4646
&parts, "parts", "p", []string{"id", "snippet"}, partsUsage,
4747
)
48-
listCmd.Flags().StringVarP(&output, "output", "o", "", listOutputUsage)
48+
listCmd.Flags().StringVarP(&output, "output", "o", "table", listOutputUsage)
4949
}

cmd/channel/list.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const (
99
listShort = "List channel's info"
1010
listLong = "List channel's info, such as title, description, etc."
1111
listIdsUsage = "Return the channels with the specified IDs"
12-
listOutputUsage = "json or yaml"
12+
listOutputUsage = "json, yaml, or table"
1313
)
1414

1515
var listCmd = &cobra.Command{
@@ -66,7 +66,7 @@ func init() {
6666
listCmd.Flags().StringVarP(
6767
&onBehalfOfContentOwner, "onBehalfOfContentOwner", "b", "", "",
6868
)
69-
listCmd.Flags().StringVarP(&output, "output", "o", "", listOutputUsage)
69+
listCmd.Flags().StringVarP(&output, "output", "o", "table", listOutputUsage)
7070
listCmd.Flags().StringSliceVarP(
7171
&parts, "parts", "p", []string{"id", "snippet", "status"}, partsUsage,
7272
)

cmd/channelSection/channelSection.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const (
1313
hlUsage = "Return content in specified language"
1414
mineUsage = "Return the ChannelSections owned by the authenticated user"
1515
partsUsage = "Comma separated parts"
16-
outputUsage = "json or yaml"
16+
outputUsage = "json, yaml, or table"
1717
)
1818

1919
var (

cmd/channelSection/list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,5 @@ func init() {
4646
listCmd.Flags().StringSliceVarP(
4747
&parts, "parts", "p", []string{"id", "snippet"}, partsUsage,
4848
)
49-
listCmd.Flags().StringVarP(&output, "output", "o", "json", outputUsage)
49+
listCmd.Flags().StringVarP(&output, "output", "o", "table", outputUsage)
5050
}

cmd/comment/list.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const (
99
listShort = "List YouTube comments"
1010
listLong = "List YouTube comments by ids"
1111
listPidUsage = "Returns replies to the specified comment"
12-
listOutputUsage = "json or yaml"
12+
listOutputUsage = "json, yaml, or table"
1313
)
1414

1515
var listCmd = &cobra.Command{
@@ -47,5 +47,5 @@ func init() {
4747
listCmd.Flags().StringSliceVarP(
4848
&parts, "parts", "p", []string{"id", "snippet"}, partsUsage,
4949
)
50-
listCmd.Flags().StringVarP(&output, "output", "o", "", listOutputUsage)
50+
listCmd.Flags().StringVarP(&output, "output", "o", "table", listOutputUsage)
5151
}

cmd/commentThread/commentThread.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ const (
1919
tfUsage = "textFormatUnspecified or html"
2020
toUsage = "Text of the comment"
2121
partsUsage = "Comma separated parts"
22-
outputUsage = "json, yaml, or silent"
2322
)
2423

2524
var (

cmd/commentThread/insert.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ import (
66
)
77

88
const (
9-
insertShort = "Insert a new comment thread"
10-
insertLong = "Insert a new comment thread"
11-
insertVidUsage = "ID of the video"
9+
insertShort = "Insert a new comment thread"
10+
insertLong = "Insert a new comment thread"
11+
insertVidUsage = "ID of the video"
12+
insertOutputUsage = "json, yaml, or silent"
1213
)
1314

1415
var insertCmd = &cobra.Command{
@@ -40,7 +41,7 @@ func init() {
4041
insertCmd.Flags().StringVarP(&channelId, "channelId", "c", "", cidUsage)
4142
insertCmd.Flags().StringVarP(&textOriginal, "textOriginal", "t", "", toUsage)
4243
insertCmd.Flags().StringVarP(&videoId, "videoId", "v", "", insertVidUsage)
43-
insertCmd.Flags().StringVarP(&output, "output", "o", "", outputUsage)
44+
insertCmd.Flags().StringVarP(&output, "output", "o", "", insertOutputUsage)
4445

4546
_ = insertCmd.MarkFlagRequired("authorChannelId")
4647
_ = insertCmd.MarkFlagRequired("channelId")

cmd/commentThread/list.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ import (
66
)
77

88
const (
9-
listShort = "List YouTube comment threads"
10-
listLong = "List YouTube comment threads"
11-
listVidUsage = "Returns the comment threads of the specified video"
9+
listShort = "List YouTube comment threads"
10+
listLong = "List YouTube comment threads"
11+
listVidUsage = "Returns the comment threads of the specified video"
12+
listOutputUsage = "json, yaml, or table"
1213
)
1314

1415
var listCmd = &cobra.Command{
@@ -57,5 +58,5 @@ func init() {
5758
listCmd.Flags().StringSliceVarP(
5859
&parts, "parts", "p", []string{"id", "snippet"}, partsUsage,
5960
)
60-
listCmd.Flags().StringVarP(&output, "output", "o", "", outputUsage)
61+
listCmd.Flags().StringVarP(&output, "output", "o", "table", listOutputUsage)
6162
}

0 commit comments

Comments
 (0)