22 lines
347 B
Go
22 lines
347 B
Go
package cmd
|
|
|
|
import (
|
|
"gitea.asdf.cafe/abs3nt/gospt/src/commands"
|
|
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func init() {
|
|
rootCmd.AddCommand(likeCmd)
|
|
}
|
|
|
|
var likeCmd = &cobra.Command{
|
|
Use: "like",
|
|
Aliases: []string{"l"},
|
|
Short: "Likes song",
|
|
Long: `Likes song`,
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
commands.Like(ctx, client)
|
|
},
|
|
}
|