💬 Simplify long description

This commit is contained in:
OpenWaygate committed 2026-03-09 21:06:03 +08:00
1 parent fbd9fbba1e
commit 3f36d90cd2
52 files changed
+52 -52

No files matched your search

+1 -1
View File
@@ -20,7 +20,7 @@ import (
const (
listTool = "activity-list"
listShort = "List activities"
listLong = "List activities. Use this tool when you need to list activities such as uploads, likes, and favorites."
listLong = "List activities. Use this tool to list activities such as uploads, likes, and favorites."
listExample = `# List my activities
yutu activity list --mine
# List activities by channel ID with limit
+1 -1
View File
@@ -20,7 +20,7 @@ const (
deleteTool = "caption-delete"
deleteIdsUsage = "IDs of the captions to delete"
deleteShort = "Delete captions"
deleteLong = "Delete captions. Use this tool when you need to delete captions of a video by IDs."
deleteLong = "Delete captions. Use this tool to delete captions of a video by IDs."
deleteExample = `# Delete a caption by ID
yutu caption delete --ids abc123
# Delete multiple captions
+1 -1
View File
@@ -20,7 +20,7 @@ const (
downloadTool = "caption-download"
downloadIdUsage = "ID of the caption to download"
downloadShort = "Download a caption"
downloadLong = "Download a caption. Use this tool when you need to download a caption from a video."
downloadLong = "Download a caption. Use this tool to download a caption from a video."
downloadExample = `# Download a caption as SRT
yutu caption download --id abc123 --file subtitle.srt
# Download a caption as VTT
+1 -1
View File
@@ -20,7 +20,7 @@ import (
const (
insertTool = "caption-insert"
insertShort = "Insert a caption"
insertLong = "Insert a caption. Use this tool when you need to insert a caption to a video."
insertLong = "Insert a caption. Use this tool to insert a caption to a video."
insertExample = `# Insert a caption to a video
yutu caption insert --file subtitle.srt --videoId dQw4w9WgXcQ
# Insert a caption with language and name
+1 -1
View File
@@ -21,7 +21,7 @@ const (
listTool = "caption-list"
listIdsUsage = "IDs of the captions to list"
listShort = "List captions"
listLong = "List captions. Use this tool when you need to list captions of a video."
listLong = "List captions. Use this tool to list captions of a video."
listExample = `# List captions of a video
yutu caption list --videoId dQw4w9WgXcQ
# List captions in JSON format
+1 -1
View File
@@ -20,7 +20,7 @@ import (
const (
updateTool = "caption-update"
updateShort = "Update a video caption"
updateLong = "Update a video caption. Use this tool when you need to update a video caption."
updateLong = "Update a video caption. Use this tool to update a video caption."
updateExample = `# Publish a draft caption
yutu caption update --videoId dQw4w9WgXcQ --isDraft=false
# Update caption language and name
+1 -1
View File
@@ -21,7 +21,7 @@ const (
listTool = "channel-list"
listIdsUsage = "Return the channels with the specified Ids"
listShort = "List channel information"
listLong = "List channel information. Use this tool when you need to list channel information."
listLong = "List channel information. Use this tool to list channel information."
listExample = `# List my channel info
yutu channel list --mine
# List channel by handle
+1 -1
View File
@@ -21,7 +21,7 @@ const (
updateTool = "channel-update"
updateIdUsage = "ID of the channel to update"
updateShort = "Update channel information"
updateLong = "Update channel information. Use this tool when you need to update channel information."
updateLong = "Update channel information. Use this tool to update channel information."
updateExample = `# Update channel description
yutu channel update --id UC_x5XG1OV2P6uZZ5FSM9Ttw --description 'New description'
# Update channel title and country
+1 -1
View File
@@ -20,7 +20,7 @@ import (
const (
insertTool = "channelBanner-insert"
insertShort = "Insert a channel banner"
insertLong = "Insert a channel banner. Use this tool when you need to upload a channel banner."
insertLong = "Insert a channel banner. Use this tool to upload a channel banner."
insertExample = `# Upload a channel banner
yutu channelBanner insert --channelId UC_x5XG1OV2P6uZZ5FSM9Ttw --file banner.jpg
# Upload a channel banner with JSON output
+1 -1
View File
@@ -20,7 +20,7 @@ const (
deleteTool = "channelSection-delete"
deleteIdsUsage = "Delete the channel sections with the given ids"
deleteShort = "Delete channel sections"
deleteLong = "Delete channel sections. Use this tool when you need to delete channel sections by IDs."
deleteLong = "Delete channel sections. Use this tool to delete channel sections by IDs."
deleteExample = `# Delete a channel section by ID
yutu channelSection delete --ids abc123
# Delete multiple channel sections
+1 -1
View File
@@ -21,7 +21,7 @@ const (
listTool = "channelSection-list"
listIdsUsage = "Return the channel sections with the given ids"
listShort = "List channel sections"
listLong = "List channel sections. Use this tool when you need to list channel sections."
listLong = "List channel sections. Use this tool to list channel sections."
listExample = `# List my channel sections
yutu channelSection list --mine
# List channel sections by channel ID
+1 -1
View File
@@ -18,7 +18,7 @@ import (
const (
deleteTool = "comment-delete"
deleteShort = "Delete comments"
deleteLong = "Delete comments. Use this tool when you need to delete comments by IDs."
deleteLong = "Delete comments. Use this tool to delete comments by IDs."
deleteExample = `# Delete a comment by ID
yutu comment delete --ids abc123
# Delete multiple comments
+1 -1
View File
@@ -21,7 +21,7 @@ const (
insertTool = "comment-insert"
insertPidUsage = "ID of the parent comment"
insertShort = "Create a comment"
insertLong = "Create a comment. Use this tool when you need to create a comment on a video."
insertLong = "Create a comment. Use this tool to create a comment on a video."
insertExample = `# Reply to a comment
yutu comment insert --channelId UC_x5X --videoId dQw4w9 --authorChannelId UA_x5X --parentId UgyXXX --textOriginal 'Hello'
# Reply with rating enabled
+1 -1
View File
@@ -21,7 +21,7 @@ const (
listTool = "comment-list"
listPidUsage = "Returns replies to the specified comment"
listShort = "List comments"
listLong = "List comments. Use this tool when you need to list comments by IDs."
listLong = "List comments. Use this tool to list comments by IDs."
listExample = `# List replies to a comment
yutu comment list --parentId UgyXXXXXXXX --maxResults 10
# List specific comments in JSON format
+1 -1
View File
@@ -20,7 +20,7 @@ import (
const (
masTool = "comment-markAsSpam"
masShort = "Mark comments as spam"
masLong = "Mark comments as spam. Use this tool when you need to mark comments as spam."
masLong = "Mark comments as spam. Use this tool to mark comments as spam."
masExample = `# Mark a comment as spam
yutu comment markAsSpam --ids abc123
# Mark multiple comments as spam
+1 -1
View File
@@ -20,7 +20,7 @@ import (
const (
smsTool = "comment-setModerationStatus"
smsShort = "Set comment moderation status"
smsLong = "Set comment moderation status. Use this tool when you need to set comment moderation status."
smsLong = "Set comment moderation status. Use this tool to set comment moderation status."
smsExample = `# Publish a held comment
yutu comment setModerationStatus --ids abc123 --moderationStatus published
# Hold multiple comments for review
+1 -1
View File
@@ -21,7 +21,7 @@ const (
updateTool = "comment-update"
updateIdUsage = "ID of the comment"
updateShort = "Update a comment on a video"
updateLong = "Update a comment on a video. Use this tool when you need to update a comment on a video."
updateLong = "Update a comment on a video. Use this tool to update a comment on a video."
updateExample = `# Update comment text
yutu comment update --id abc123 --textOriginal 'Updated comment'
# Like a comment
+1 -1
View File
@@ -21,7 +21,7 @@ const (
insertTool = "commentThread-insert"
insertVidUsage = "ID of the video"
insertShort = "Insert a new comment thread"
insertLong = "Insert a new comment thread. Use this tool when you need to insert a new comment thread."
insertLong = "Insert a new comment thread. Use this tool to insert a new comment thread."
insertExample = `# Post a comment on a video
yutu commentThread insert --channelId UC_x5X --videoId dQw4w9WgXcQ --authorChannelId UA_x5X --textOriginal 'Great video!'
# Post a comment with JSON output
+1 -1
View File
@@ -21,7 +21,7 @@ const (
listTool = "commentThread-list"
listVidUsage = "Returns the comment threads of the specified video"
listShort = "List comment threads"
listLong = "List comment threads. Use this tool when you need to list comment threads."
listLong = "List comment threads. Use this tool to list comment threads."
listExample = `# List comment threads on a video
yutu commentThread list --videoId dQw4w9WgXcQ --maxResults 10
# Search comment threads by terms
+1 -1
View File
@@ -17,7 +17,7 @@ import (
const (
listShort = "List i18n languages"
listLong = `List i18n languages. Use this tool when you need to list available internationalization languages.`
listLong = `List i18n languages. Use this tool to list available internationalization languages.`
)
func init() {
+1 -1
View File
@@ -17,7 +17,7 @@ import (
const (
listShort = "List i18n regions"
listLong = `List i18n regions. Use this tool when you need to list available internationalization regions.`
listLong = `List i18n regions. Use this tool to list available internationalization regions.`
)
func init() {
+1 -1
View File
@@ -20,7 +20,7 @@ import (
const (
listTool = "member-list"
listShort = "List channel members"
listLong = "List channel members. Use this tool when you need to list information about channel members."
listLong = "List channel members. Use this tool to list information about channel members."
listExample = `# List all current members
yutu member list --mode all_current
# List members with limit
+1 -1
View File
@@ -20,7 +20,7 @@ import (
const (
listTool = "membershipsLevel-list"
listShort = "List memberships levels"
listLong = "List memberships levels. Use this tool when you need to list information about channel membership levels."
listLong = "List memberships levels. Use this tool to list information about channel membership levels."
listExample = `# List membership levels in JSON format
yutu membershipsLevel list --output json`
)
+1 -1
View File
@@ -20,7 +20,7 @@ const (
deleteTool = "playlist-delete"
deleteIdsUsage = "IDs of the playlists to delete"
deleteShort = "Delete playlists"
deleteLong = "Delete playlists. Use this tool when you need to delete playlists by IDs."
deleteLong = "Delete playlists. Use this tool to delete playlists by IDs."
deleteExample = `# Delete a playlist by ID
yutu playlist delete --ids PLxxxx
# Delete multiple playlists
+1 -1
View File
@@ -21,7 +21,7 @@ const (
insertTool = "playlist-insert"
insertCidUsage = "Channel id of the playlist"
insertShort = "Create a new playlist"
insertLong = "Create a new playlist. Use this tool when you need to create a new playlist."
insertLong = "Create a new playlist. Use this tool to create a new playlist."
insertExample = `# Create a public playlist
yutu playlist insert --title 'My Playlist' --channelId UC_x5XG1OV2P6uZZ5FSM9Ttw --privacy public
# Create a private playlist with description
+1 -1
View File
@@ -22,7 +22,7 @@ const (
listIdsUsage = "Return the playlists with the given Ids for Stubby or Apiary"
listCidUsage = "Return the playlists owned by the specified channel id"
listShort = "List playlist information"
listLong = "List playlist information. Use this tool when you need to list playlist information."
listLong = "List playlist information. Use this tool to list playlist information."
listExample = `# List my playlists
yutu playlist list --mine
# List playlists by channel ID with limit
+1 -1
View File
@@ -21,7 +21,7 @@ const (
updateTool = "playlist-update"
updateIdUsage = "ID of the playlist to update"
updateShort = "Update a playlist"
updateLong = "Update a playlist. Use this tool when you need to update a playlist."
updateLong = "Update a playlist. Use this tool to update a playlist."
updateExample = `# Update playlist title
yutu playlist update --id PLxxx --title 'Updated Title'
# Update playlist description and privacy
+1 -1
View File
@@ -19,7 +19,7 @@ import (
const (
deleteTool = "playlistImage-delete"
deleteShort = "Delete playlist images"
deleteLong = "Delete playlist images. Use this tool when you need to delete playlist images by IDs."
deleteLong = "Delete playlist images. Use this tool to delete playlist images by IDs."
deleteExample = `# Delete a playlist image by ID
yutu playlistImage delete --ids abc123
# Delete multiple playlist images
+1 -1
View File
@@ -20,7 +20,7 @@ import (
const (
insertTool = "playlistImage-insert"
insertShort = "Insert a playlist image"
insertLong = "Insert a playlist image. Use this tool when you need to insert a YouTube playlist image for a given playlist ID."
insertLong = "Insert a playlist image. Use this tool to insert a YouTube playlist image for a given playlist ID."
insertExample = `# Insert a playlist cover image
yutu playlistImage insert --file cover.jpg --playlistId PLxxx
# Insert a hero image
+1 -1
View File
@@ -20,7 +20,7 @@ import (
const (
listTool = "playlistImage-list"
listShort = "List playlist images"
listLong = "List playlist images. Use this tool when you need to list playlist images."
listLong = "List playlist images. Use this tool to list playlist images."
listExample = `# List images of a playlist
yutu playlistImage list --parent PLxxx
# List playlist images with limit in JSON format
+1 -1
View File
@@ -20,7 +20,7 @@ import (
const (
updateTool = "playlistImage-update"
updateShort = "Update a playlist image"
updateLong = "Update a playlist image. Use this tool when you need to update a playlist image."
updateLong = "Update a playlist image. Use this tool to update a playlist image."
updateExample = `# Update a playlist image
yutu playlistImage update --playlistId PLxxx --type hero --width 2048 --height 1152`
)
+1 -1
View File
@@ -20,7 +20,7 @@ const (
deleteTool = "playlistItem-delete"
deleteIdsUsage = "IDs of the playlist items to delete"
deleteShort = "Delete items from a playlist"
deleteLong = "Delete items from a playlist. Use this tool when you need to delete items from a playlist by IDs."
deleteLong = "Delete items from a playlist. Use this tool to delete items from a playlist by IDs."
deleteExample = `# Delete a playlist item by ID
yutu playlistItem delete --ids abc123
# Delete multiple playlist items
+1 -1
View File
@@ -21,7 +21,7 @@ const (
insertTool = "playlistItem-insert"
insertPidUsage = "The id that YouTube uses to uniquely identify the playlist that the item is in"
insertShort = "Insert a playlist item into a playlist"
insertLong = "Insert a playlist item into a playlist. Use this tool when you need to insert a playlist item into a playlist."
insertLong = "Insert a playlist item into a playlist. Use this tool to insert a playlist item into a playlist."
insertExample = `# Add a video to a playlist
yutu playlistItem insert --kind video --playlistId PLxxx --channelId UC_x5X --kVideoId dQw4w9WgXcQ
# Add a video to a playlist with privacy setting
+1 -1
View File
@@ -22,7 +22,7 @@ const (
listIdsUsage = "IDs of the playlist items to list"
listPidUsage = "Return the playlist items within the given playlist"
listShort = "List playlist items"
listLong = "List playlist items. Use this tool when you need to list playlist items."
listLong = "List playlist items. Use this tool to list playlist items."
listExample = `# List items in a playlist
yutu playlistItem list --playlistId PLxxx
# List playlist items with limit in JSON format
+1 -1
View File
@@ -21,7 +21,7 @@ const (
updateTool = "playlistItem-update"
updateIdUsage = "ID of the playlist item to update"
updateShort = "Update a playlist item"
updateLong = "Update a playlist item. Use this tool when you need to update a playlist item."
updateLong = "Update a playlist item. Use this tool to update a playlist item."
updateExample = `# Update playlist item title
yutu playlistItem update --id abc123 --title 'Updated Title'
# Update playlist item description and privacy
+1 -1
View File
@@ -20,7 +20,7 @@ import (
const (
listTool = "search-list"
listShort = "Search resources"
listLong = "Search resources. Use this tool when you need to search for videos, channels, playlists, and other resources."
listLong = "Search resources. Use this tool to search for videos, channels, playlists, and other resources."
listExample = `# Search for videos by keyword
yutu search list --q 'golang tutorial' --maxResults 10
# Search videos by duration in JSON format
+1 -1
View File
@@ -19,7 +19,7 @@ const (
deleteTool = "subscription-delete"
deleteIdsUsage = "IDs of the subscriptions to delete"
deleteShort = "Delete subscriptions"
deleteLong = "Delete subscriptions. Use this tool when you need to delete subscriptions by IDs."
deleteLong = "Delete subscriptions. Use this tool to delete subscriptions by IDs."
deleteExample = `# Delete a subscription by ID
yutu subscription delete --ids abc123
# Delete multiple subscriptions
+1 -1
View File
@@ -21,7 +21,7 @@ const (
insertTool = "subscription-insert"
insertCidUsage = "ID of the channel to be subscribed"
insertShort = "Insert a new subscription"
insertLong = "Insert a new subscription. Use this tool when you need to insert a new subscription."
insertLong = "Insert a new subscription. Use this tool to insert a new subscription."
insertExample = `# Subscribe to a channel
yutu subscription insert --subscriberChannelId UC_abc --channelId UC_x5XG1OV2P6uZZ5FSM9Ttw
# Subscribe with a title
+1 -1
View File
@@ -22,7 +22,7 @@ const (
listIdsUsage = "Return the subscriptions with the given ids for Stubby or Apiary"
listCidUsage = "Return the subscriptions of the given channel owner"
listShort = "List subscription information"
listLong = "List subscription information. Use this tool when you need to list subscription information."
listLong = "List subscription information. Use this tool to list subscription information."
listExample = `# List my subscriptions
yutu subscription list --mine
# List subscriptions by channel ID with limit
+1 -1
View File
@@ -20,7 +20,7 @@ import (
const (
listTool = "superChatEvent-list"
listShort = "List Super Chat events"
listLong = "List Super Chat events. Use this tool when you need to list Super Chat events."
listLong = "List Super Chat events. Use this tool to list Super Chat events."
listExample = `# List Super Chat events
yutu superChatEvent list --maxResults 10`
)
+1 -1
View File
@@ -20,7 +20,7 @@ import (
const (
setTool = "thumbnail-set"
setShort = "Set a thumbnail for a video"
setLong = "Set a thumbnail for a video. Use this tool when you need to set a thumbnail for a video."
setLong = "Set a thumbnail for a video. Use this tool to set a thumbnail for a video."
setExample = `# Set a thumbnail for a video
yutu thumbnail set --file image.jpg --videoId dQw4w9WgXcQ
# Set a thumbnail with JSON output
+1 -1
View File
@@ -19,7 +19,7 @@ const (
deleteTool = "video-delete"
deleteIdsUsage = "IDs of the videos to delete"
deleteShort = "Delete videos"
deleteLong = "Delete videos. Use this tool when you need to delete videos by IDs."
deleteLong = "Delete videos. Use this tool to delete videos by IDs."
deleteExample = `# Delete a video by ID
yutu video delete --ids dQw4w9WgXcQ
# Delete multiple videos
+1 -1
View File
@@ -21,7 +21,7 @@ const (
getRatingTool = "video-getRating"
grIdsUsage = "IDs of the videos to get the rating for"
getRatingShort = "Get video ratings"
getRatingLong = "Get video ratings. Use this tool when you need to get video ratings by IDs."
getRatingLong = "Get video ratings. Use this tool to get video ratings by IDs."
getRatingExample = `# Get rating of a video
yutu video getRating --ids dQw4w9WgXcQ
# Get ratings of multiple videos in JSON format
+1 -1
View File
@@ -21,7 +21,7 @@ const (
insertTool = "video-insert"
insertLangUsage = "Language of the video"
insertShort = "Upload a video"
insertLong = "Upload a video. Use this tool when you need to upload a video."
insertLong = "Upload a video. Use this tool to upload a video."
insertExample = `# Upload a public video
yutu video insert --file video.mp4 --title 'My Video' --categoryId 22 --privacy public
# Upload a private video with tags
+1 -1
View File
@@ -22,7 +22,7 @@ const (
listIdsUsage = "Return videos with the given ids"
listMrUsage = "Return videos liked/disliked by the authenticated user"
listShort = "List video information"
listLong = "List video information. Use this tool when you need to list video information."
listLong = "List video information. Use this tool to list video information."
listExample = `# List a video by ID
yutu video list --ids dQw4w9WgXcQ
# List multiple videos in JSON format
+1 -1
View File
@@ -20,7 +20,7 @@ const (
rateIdsUsage = "IDs of the videos to rate"
rateRUsage = "like|dislike|none"
rateShort = "Rate a video"
rateLong = "Rate a video. Use this tool when you need to rate a video."
rateLong = "Rate a video. Use this tool to rate a video."
rateExample = `# Like a video
yutu video rate --ids dQw4w9WgXcQ --rating like
# Dislike multiple videos
+1 -1
View File
@@ -21,7 +21,7 @@ const (
raIdsUsage = "IDs of the videos to report abuse on"
raLangUsage = "Language that the content was viewed in"
reportAbuseShort = "Report abuse on a video"
reportAbuseLong = "Report abuse on a video. Use this tool when you need to report abuse on a video."
reportAbuseLong = "Report abuse on a video. Use this tool to report abuse on a video."
reportAbuseExample = `# Report abuse on a video
yutu video reportAbuse --ids dQw4w9WgXcQ --reasonId V
# Report abuse with secondary reason and language
+1 -1
View File
@@ -22,7 +22,7 @@ const (
updateIdUsage = "ID of the video to update"
updateLangUsage = "Language of the video"
updateShort = "Update a video"
updateLong = "Update a video. Use this tool when you need to update a video."
updateLong = "Update a video. Use this tool to update a video."
updateExample = `# Update video title
yutu video update --id dQw4w9WgXcQ --title 'New Title'
# Update video description and privacy
+1 -1
View File
@@ -20,7 +20,7 @@ import (
const (
listTool = "videoAbuseReportReason-list"
listShort = "List video abuse report reasons"
listLong = "List video abuse report reasons. Use this tool when you need to list available abuse report reasons."
listLong = "List video abuse report reasons. Use this tool to list available abuse report reasons."
listExample = `# List video abuse report reasons
yutu videoAbuseReportReason list --hl en`
)
+1 -1
View File
@@ -41,7 +41,7 @@ func init() {
const (
listShort = "List video categories"
listLong = `List video categories. Use this tool when you need to list available video categories.`
listLong = `List video categories. Use this tool to list available video categories.`
)
var listCmd = &cobra.Command{
+1 -1
View File
@@ -19,7 +19,7 @@ import (
const (
setTool = "watermark-set"
setShort = "Set a watermark for channel's videos"
setLong = "Set a watermark for channel's videos. Use this tool when you need to set a watermark for channel's videos."
setLong = "Set a watermark for channel's videos. Use this tool to set a watermark for channel's videos."
setExample = `# Set a watermark for a channel
yutu watermark set --channelId UC_x5XG1OV2P6uZZ5FSM9Ttw --file watermark.png
# Set a watermark with position and offset
+1 -1
View File
@@ -18,7 +18,7 @@ import (
const (
unsetTool = "watermark-unset"
unsetShort = "Unset a watermark for channel's videos"
unsetLong = "Unset a watermark for channel's videos. Use this tool when you need to unset a watermark for a channel's videos."
unsetLong = "Unset a watermark for channel's videos. Use this tool to unset a watermark for a channel's videos."
unsetExample = `# Unset watermark for a channel
yutu watermark unset --channelId UC_x5XG1OV2P6uZZ5FSM9Ttw`
)