gospt/cmd/download_cover.go
abs3nt 2a942a3803
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
update, checks in format, rename alias for dl
2023-10-20 10:52:55 -07:00

21 lines
447 B
Go

package cmd
import (
"github.com/spf13/cobra"
)
func init() {
rootCmd.AddCommand(downloadCoverCmd)
}
var downloadCoverCmd = &cobra.Command{
Use: "download_cover",
Aliases: []string{"dl"},
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)
},
}