2023-10-14 16:27:58 +00:00
|
|
|
package cmd
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
rootCmd.AddCommand(downloadCoverCmd)
|
|
|
|
}
|
|
|
|
|
|
|
|
var downloadCoverCmd = &cobra.Command{
|
|
|
|
Use: "download_cover",
|
2023-10-20 17:52:55 +00:00
|
|
|
Aliases: []string{"dl"},
|
2023-10-14 16:27:58 +00:00
|
|
|
Short: "Returns url for currently playing song art",
|
|
|
|
Long: `Returns url for currently playing song art`,
|
|
|
|
Args: cobra.MatchAll(cobra.ExactArgs(1)),
|
|
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
|
|
commands.DownloadCover(ctx, args)
|
|
|
|
},
|
|
|
|
}
|