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