Rate current track

This commit is contained in:
Dan Jones 2023-08-27 20:07:00 -05:00
commit 83dc41cb8e
4 changed files with 83 additions and 9 deletions

View file

@ -11,13 +11,15 @@ import (
// currentCmd represents the current command
var currentCmd = &cobra.Command{
Use: "current",
Short: "A brief description of your command",
Long: `A longer description that spans multiple lines and likely contains examples
and usage of using your command. For example:
Short: "Shows information about the currently playing song",
/*
Long: `A longer description that spans multiple lines and likely contains examples
and usage of using your command. For example:
Cobra is a CLI library for Go that empowers applications.
This application is a tool to generate the needed files
to quickly create a Cobra application.`,
Cobra is a CLI library for Go that empowers applications.
This application is a tool to generate the needed files
to quickly create a Cobra application.`,
*/
Run: func(cmd *cobra.Command, args []string) {
curr, _ := mpd.GetCurrent()
curr.PrintAll(true)