gospt/cmd/pause.go

20 lines
332 B
Go
Raw Normal View History

2023-01-09 15:52:21 -08:00
package cmd
import (
"github.com/spf13/cobra"
)
func init() {
rootCmd.AddCommand(pauseCmd)
}
var pauseCmd = &cobra.Command{
2023-01-20 14:19:16 -08:00
Use: "pause",
Short: "Pauses spotify",
Aliases: []string{"pa"},
Long: `Pauses currently playing song on spotify`,
2023-01-09 15:52:21 -08:00
Run: func(cmd *cobra.Command, args []string) {
2023-02-17 16:08:25 -06:00
commands.Pause(ctx)
2023-01-09 15:52:21 -08:00
},
}