Skip to content

Commit f188476

Browse files
committed
💬 Update enum flags' usage
1 parent ab61bcf commit f188476

File tree

13 files changed

+37
-37
lines changed

13 files changed

+37
-37
lines changed

cmd/activity/activity.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ const (
1313
short = "List YouTube activities"
1414
long = "List YouTube activities, such as likes, favorites, uploads, etc"
1515
ciUsage = "ID of the channel"
16-
homeUsage = "true, false, or empty"
17-
mineUsage = "true, false, or empty"
16+
homeUsage = "true|false|null"
17+
mineUsage = "true|false|null"
1818
paUsage = "Filter on activities published after this date"
1919
pbUsage = "Filter on activities published before this date"
2020
rcUsage = ""

cmd/caption/caption.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@ const (
1414
short = "Manipulate YouTube captions"
1515
long = "List, insert, update, download, or delete YouTube captions"
1616
fileUsage = "Path to save the caption file"
17-
attUsage = "unknown, primary, commentary, or descriptive"
17+
attUsage = "unknown|primary|commentary|descriptive"
1818
iasUsage = "Whether YouTube synchronized the caption track to the audio track in the video"
1919
iscUsage = "Whether the track contains closed captions for the deaf and hard of hearing"
2020
isdUsage = "whether the caption track is a draft"
2121
iserUsage = "Whether caption track is formatted for 'easy reader'"
2222
islUsage = "Whether the caption track uses large text for the vision-impaired"
2323
languageUsage = "Language of the caption track"
2424
nameUsage = "Name of the caption track"
25-
tkUsage = "standard, ASR, or forced"
25+
tkUsage = "standard|ASR|forced"
2626
vidUsage = "ID of the video"
27-
tfmtUsage = "sbv, srt, or vtt"
27+
tfmtUsage = "sbv|srt|vtt"
2828
tlangUsage = "Translate the captions into this language"
2929
)
3030

cmd/comment/comment.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ const (
1616
acidUsage = "Channel id of the comment author"
1717
crUsage = "Whether the viewer can rate the comment"
1818
cidUsage = "Channel id of the video owner"
19-
tfUsage = "textFormatUnspecified, html, or plainText"
19+
tfUsage = "textFormatUnspecified|html|plainText"
2020
toUsage = "Text of the comment"
21-
msUsage = "heldForReview, published, or rejected"
21+
msUsage = "heldForReview|published|rejected"
2222
baUsage = "If set to true the author of the comment gets added to the ban list"
2323
vidUsage = "ID of the video"
24-
vrUsage = "none, like, or dislike"
24+
vrUsage = "none|like|dislike"
2525
)
2626

2727
var (

cmd/commentThread/commentThread.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ const (
1515
atrtcidUsage = "Returns the comment threads of all videos of the channel and the channel comments as well"
1616
acidUsage = "Channel id of the comment author"
1717
cidUsage = "Channel id of the video owner"
18-
msUsage = "published, heldForReview, likelySpam, or rejected"
19-
orderUsage = "orderUnspecified, time, or relevance"
18+
msUsage = "published|heldForReview|likelySpam|rejected"
19+
orderUsage = "orderUnspecified|time|relevance"
2020
stUsage = "Search terms"
21-
tfUsage = "textFormatUnspecified, or html"
21+
tfUsage = "textFormatUnspecified|html"
2222
toUsage = "Text of the comment"
2323
)
2424

cmd/mcp.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ import (
1818
const (
1919
mcpShort = "Start MCP server"
2020
mcpLong = "Start MCP server to handle requests from clients"
21-
modeUsage = "stdio, or http"
22-
portUsage = "Port to listen on for HTTP or SSE mode"
21+
modeUsage = "stdio|http"
22+
portUsage = "Port to listen on for HTTP mode"
2323
)
2424

2525
var (

cmd/playlist/playlist.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const (
1919
mineUsage = "Return the playlists owned by the authenticated user"
2020
tagsUsage = "Comma separated tags"
2121
languageUsage = "Language of the playlist"
22-
privacyUsage = "public, private, or unlisted"
22+
privacyUsage = "public|private|unlisted"
2323
)
2424

2525
var (

cmd/playlistItem/playlistItem.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ const (
1313
long = "List, insert, update, or delete YouTube playlist items"
1414
titleUsage = "Title of the playlist item"
1515
descUsage = "Description of the playlist item"
16-
kindUsage = "video, channel, or playlist"
16+
kindUsage = "video|channel|playlist"
1717
kvidUsage = "ID of the video if kind is video"
1818
kcidUsage = "ID of the channel if kind is channel"
1919
kpidUsage = "ID of the playlist if kind is playlist"
2020
vidUsage = "Return the playlist items associated with the given video id"
2121
cidUsage = "ID that YouTube uses to uniquely identify the user that added the item to the playlist"
22-
privacyUsage = "public, private, or unlisted"
22+
privacyUsage = "public|private|unlisted"
2323
)
2424

2525
var (

cmd/search/search.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ const (
1313
short = "Search for YouTube resources"
1414
long = "Search for YouTube resources"
1515
cidUsage = "Filter on resources belonging to this channelId"
16-
ctUsage = "channelTypeUnspecified, any, or show"
17-
etUsage = "none, upcoming, live, or completed"
16+
ctUsage = "channelTypeUnspecified|any|show"
17+
etUsage = "none|upcoming|live|completed"
1818
fcoUsage = "Search owned by content owner"
1919
fdUsage = "Only retrieve videos uploaded using the project id of the authenticated user"
2020
fmUsage = "Search for the private videos of the authenticated user"
@@ -26,19 +26,19 @@ const (
2626
qUsage = "Textual search terms to match"
2727
rcUsage = "Display the content as seen by viewers in this country"
2828
rlUsage = "Return results relevant to this language"
29-
ssUsage = "safeSearchSettingUnspecified, none, moderate, or strict"
29+
ssUsage = "safeSearchSettingUnspecified|none|moderate|strict"
3030
tidUsage = "Restrict results to a particular topic"
3131
typesUsage = "Restrict results to a particular set of resource types from One Platform"
32-
vcUsage = "videoCaptionUnspecified, any, closedCaption, or none"
32+
vcUsage = "videoCaptionUnspecified|any|closedCaption|none"
3333
vcidUsage = "Filter on videos in a specific category"
3434
vdeUsage = "Filter on the definition of the videos"
35-
vdiUsage = "any, 2d, or 3d"
36-
vduUsage = "videoDurationUnspecified, any, short, medium, or long"
37-
veUsage = "videoEmbeddableUnspecified, any, or true"
38-
vlUsage = "any, youtube, or creativeCommon"
39-
vpppUsage = "videoPaidProductPlacementUnspecified, any, or true"
40-
vsUsage = "videoSyndicatedUnspecified, any, or true"
41-
vtUsage = "videoTypeUnspecified, any, movie, or episode"
35+
vdiUsage = "any|2d|3d"
36+
vduUsage = "videoDurationUnspecified|any|short|medium|long"
37+
veUsage = "videoEmbeddableUnspecified|any|true"
38+
vlUsage = "any|youtube|creativeCommon"
39+
vpppUsage = "videoPaidProductPlacementUnspecified|any|true"
40+
vsUsage = "videoSyndicatedUnspecified|any|true"
41+
vtUsage = "videoTypeUnspecified|any|movie|episode"
4242
)
4343

4444
var (

cmd/subscription/subscription.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ const (
1616
descUsage = "Description of the subscription"
1717
fcidUsage = "Return the subscriptions to the subset of these channels that the authenticated user is subscribed to"
1818
mineUsage = "Return the subscriptions of the authenticated user"
19-
mrsUsage = "true, false, or leave empty"
19+
mrsUsage = "true|false|null"
2020
msUsage = "Return the subscribers of the given channel owner"
21-
orderUsage = "subscriptionOrderUnspecified, relevance, unread, or alphabetical"
21+
orderUsage = "subscriptionOrderUnspecified|relevance|unread|alphabetical"
2222
titleUsage = "Title of the subscription"
2323
)
2424

cmd/video/rate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const (
2323
rateShort = "Rate a video on YouTube"
2424
rateLong = "Rate a video on YouTube, with the specified rating"
2525
rateIdsUsage = "IDs of the videos to rate"
26-
rateRUsage = "like, dislike, or none"
26+
rateRUsage = "like|dislike|none"
2727
)
2828

2929
type rateIn struct {

0 commit comments

Comments
 (0)