gospt/src/cmd/pause.go

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)
},
}