From 507fb86bf9dc499583ecb446e951eef62ed80b09 Mon Sep 17 00:00:00 2001 From: chaoqun <27287694+OpenWaygate@users.noreply.github.com> Date: Sun, 18 Feb 2024 22:05:27 +0800 Subject: [PATCH] :speech_balloon: Update commands' description --- cmd/channel/channel.go | 4 ++-- cmd/channel/list.go | 4 ++-- cmd/channel/update.go | 4 ++-- cmd/video/insert.go | 4 ++-- cmd/video/video.go | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/cmd/channel/channel.go b/cmd/channel/channel.go index 82773f4..982482a 100644 --- a/cmd/channel/channel.go +++ b/cmd/channel/channel.go @@ -16,8 +16,8 @@ var ( var channelCmd = &cobra.Command{ Use: "channel", - Short: "subcommand for channel manipulation", - Long: `subcommand for channel manipulation, which can be used to manipulate YouTube channels, such as showing channel details, updating channel details, etc.`, + Short: "manipulate YouTube channels", + Long: `manipulate YouTube channels, such as list, update, etc.`, Run: func(cmd *cobra.Command, args []string) { fmt.Println("channel called") }, diff --git a/cmd/channel/list.go b/cmd/channel/list.go index 89d3ed3..12e94c2 100644 --- a/cmd/channel/list.go +++ b/cmd/channel/list.go @@ -7,8 +7,8 @@ import ( var listCmd = &cobra.Command{ Use: "list", - Short: "subcommand for listing channels", - Long: `subcommand for listing channels, which can be used to show channel's info.`, + Short: "list channel's info", + Long: `list channel's info, such as title, description, etc.`, Run: func(cmd *cobra.Command, args []string) { c := yutuber.NewChannel( yutuber.WithChannelID(id), diff --git a/cmd/channel/update.go b/cmd/channel/update.go index 108f832..5fac202 100644 --- a/cmd/channel/update.go +++ b/cmd/channel/update.go @@ -7,8 +7,8 @@ import ( var updateCmd = &cobra.Command{ Use: "update", - Short: "subcommand for updating channels", - Long: `subcommand for updating channels, which can be used to update channel's info.`, + Short: "update channel's info", + Long: `update channel's info, such as title, description, etc.`, Run: func(cmd *cobra.Command, args []string) { c := yutuber.NewChannel( yutuber.WithChannelID(id), diff --git a/cmd/video/insert.go b/cmd/video/insert.go index f2be685..e6ec7af 100644 --- a/cmd/video/insert.go +++ b/cmd/video/insert.go @@ -8,8 +8,8 @@ import ( var insertCmd = &cobra.Command{ Use: "insert", - Short: "subcommand for inserting a video", - Long: `subcommand for inserting a video, which can be used to upload a video to YouTube.`, + Short: "upload a video to YouTube", + Long: `upload a video to YouTube, with the specified title, description, tags, etc.`, Run: func(cmd *cobra.Command, args []string) { v := yutuber.NewVideo( yutuber.WithVideoPath(path), diff --git a/cmd/video/video.go b/cmd/video/video.go index 903f0ec..81b6110 100644 --- a/cmd/video/video.go +++ b/cmd/video/video.go @@ -27,8 +27,8 @@ var ( // videoCmd represents the video command var videoCmd = &cobra.Command{ Use: "video", - Short: "subcommand for video manipulation", - Long: `subcommand for video manipulation, which can be used to manipulate YouTube videos, such as uploading, updating, deleting, etc.`, + Short: "manipulate YouTube videos", + Long: `manipulate YouTube videos, such as insert, update, etc.`, Run: func(cmd *cobra.Command, args []string) { fmt.Println("video called") },