From 3a982468de43230c6b3b033cfa54f27e8c6133b2 Mon Sep 17 00:00:00 2001 From: abs3nt Date: Fri, 13 Jan 2023 23:08:36 -0800 Subject: [PATCH] aliases --- src/cmd/link.go | 7 ++++--- src/cmd/unlike.go | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/cmd/link.go b/src/cmd/link.go index 5df8765..1675be1 100644 --- a/src/cmd/link.go +++ b/src/cmd/link.go @@ -11,9 +11,10 @@ import ( // linkCmd represents the link command var linkCmd = &cobra.Command{ - Use: "link", - Short: "Print link to currently playing song", - Long: `Print link to currently playing song`, + Use: "link", + Aliases: []string{"yy"}, + Short: "Print link to currently playing song", + Long: `Print link to currently playing song`, Run: func(cmd *cobra.Command, args []string) { link, err := commands.Link(ctx, client) if err != nil { diff --git a/src/cmd/unlike.go b/src/cmd/unlike.go index 38c34c6..fb14ff9 100644 --- a/src/cmd/unlike.go +++ b/src/cmd/unlike.go @@ -11,9 +11,10 @@ func init() { } var unlikeCmd = &cobra.Command{ - Use: "unlike", - Short: "unlikes song", - Long: `unlikes song`, + Use: "unlike", + Aliases: []string{"u"}, + Short: "unlikes song", + Long: `unlikes song`, Run: func(cmd *cobra.Command, args []string) { commands.Unlike(ctx, client) },