gospt/cmd/play.go

20 lines
379 B
Go
Raw Permalink Normal View History

2023-01-09 15:52:21 -08:00
package cmd
import (
"github.com/spf13/cobra"
)
func init() {
rootCmd.AddCommand(playCmd)
}
var playCmd = &cobra.Command{
2023-01-13 23:06:43 -08:00
Use: "play",
2023-01-20 14:19:16 -08:00
Aliases: []string{"pl", "start", "s"},
2023-01-13 23:06:43 -08:00
Short: "Plays spotify",
Long: `Plays queued song on spotify, uses last used device and activates it if needed`,
2023-01-09 15:52:21 -08:00
Run: func(cmd *cobra.Command, args []string) {
2023-02-17 16:08:25 -06:00
commands.Play(ctx)
2023-01-09 15:52:21 -08:00
},
}