Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SearchCmd = &cobra.Command{ Use: "search [QUERY]", Short: "Searches YouTube", Long: "Searches YouTube for channels, videos, and playlists.", Aliases: []string{"s"}, Args: cobra.MinimumNArgs(0), Run: func(cmd *cobra.Command, args []string) { if len(args) == 0 { views.SearchWithPrompt() } else { query := strings.Join(args, " ") views.SearchWithQuery(types.Context{ PrevView: "none", ActionInfo: map[string]string{ "query": query, }, }) } }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.