gospt/cmd/playurl.go
jjohnstondev e5bef071c7
Some checks failed
continuous-integration/drone/tag Build is failing
refac
2023-01-09 15:52:21 -08:00

22 lines
396 B
Go

package cmd
import (
"gospt/internal/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)
},
}