💬 Update commands' description
This commit is contained in:
1 parent
b633152fa5
commit
507fb86bf9
5 files changed
+10
-10
No files matched your search
@@ -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")
|
||||
},
|
||||
|
||||
+2
-2
@@ -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),
|
||||
|
||||
@@ -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),
|
||||
|
||||
+2
-2
@@ -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),
|
||||
|
||||
+2
-2
@@ -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")
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user