gospt/cmd/playurl.go

20 lines
360 B
Go
Raw Normal View History

2023-01-09 23:52:21 +00:00
package cmd
import (
"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) {
2023-02-17 22:08:25 +00:00
commands.PlayUrl(ctx, args)
2023-01-09 23:52:21 +00:00
},
}