gospt/src/cmd/playurl.go

22 lines
391 B
Go

package cmd
import (
"gospt/src/commands"
"github.com/spf13/cobra"
)
func init() {
rootCmd.AddCommand(playurlCmd)
}
var playurlCmd = &cobra.Command{
Use: "playurl",
Short: "Plays song from provided url",
Args: cobra.MatchAll(cobra.ExactArgs(1)),
Long: `Plays song from provided url`,
Run: func(cmd *cobra.Command, args []string) {
commands.PlayUrl(ctx, client, args)
},
}