52 lines
1.5 KiB
Go
52 lines
1.5 KiB
Go
// Copyright 2025 eat-pray-ai & OpenWaygate
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package commentThread
|
|
|
|
import (
|
|
"github.com/eat-pray-ai/yutu/cmd"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
const (
|
|
short = "Manage YouTube comment threads"
|
|
long = "Manage YouTube comment threads. Use this tool to list or insert new top-level comment threads."
|
|
idsUsage = "IDs of the comment threads"
|
|
atrtcidUsage = "Returns the comment threads of all videos of the channel and the channel comments as well"
|
|
acidUsage = "Channel id of the comment author"
|
|
cidUsage = "Channel id of the video owner"
|
|
msUsage = "published|heldForReview|likelySpam|rejected"
|
|
orderUsage = "orderUnspecified|time|relevance"
|
|
stUsage = "Search terms"
|
|
tfUsage = "textFormatUnspecified|html"
|
|
toUsage = "Text of the comment"
|
|
)
|
|
|
|
var (
|
|
ids []string
|
|
allThreadsRelatedToChannelId string
|
|
authorChannelId string
|
|
channelId string
|
|
maxResults int64
|
|
moderationStatus string
|
|
order string
|
|
searchTerms string
|
|
textFormat string
|
|
textOriginal string
|
|
videoId string
|
|
parts []string
|
|
)
|
|
|
|
var commentThreadCmd = &cobra.Command{
|
|
Use: "commentThread",
|
|
Short: short,
|
|
Long: long,
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
_ = cmd.Help()
|
|
},
|
|
}
|
|
|
|
func init() {
|
|
cmd.RootCmd.AddCommand(commentThreadCmd)
|
|
}
|