gospt/cmd/pause.go

20 lines
332 B
Go
Raw Permalink Normal View History

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