gospt/src/cmd/pause.go
2023-01-13 22:27:38 -08:00

21 lines
331 B
Go

package cmd
import (
"gospt/src/commands"
"github.com/spf13/cobra"
)
func init() {
rootCmd.AddCommand(pauseCmd)
}
var pauseCmd = &cobra.Command{
Use: "pause",
Short: "Pauses spotify",
Long: `Pauses currently playing song on spotify`,
Run: func(cmd *cobra.Command, args []string) {
commands.Pause(ctx, client)
},
}