gospt/src/cmd/nowplaying.go
abs3nt 22fa7feab3
Some checks failed
ci/woodpecker/push/woodpecker Pipeline was successful
continuous-integration/drone/tag Build is passing
ci/woodpecker/tag/woodpecker Pipeline failed
aliases
2023-01-20 14:19:16 -08:00

22 lines
446 B
Go

package cmd
import (
"gospt/src/commands"
"github.com/spf13/cobra"
)
func init() {
rootCmd.AddCommand(nowPlayingCmd)
}
var nowPlayingCmd = &cobra.Command{
Use: "nowplaying",
Aliases: []string{"now"},
Short: "Shows song and artist of currently playing song",
Long: `Shows song and artist of currently playing song, useful for scripting`,
Run: func(cmd *cobra.Command, args []string) {
commands.NowPlaying(ctx, client)
},
}