From d06e95cdb79cfab37dd3c0149a441e5d0d51c2d6 Mon Sep 17 00:00:00 2001 From: abs3nt Date: Thu, 12 Jan 2023 18:48:53 -0800 Subject: [PATCH] artists and albums --- cmd/albums.go | 21 --------------------- cmd/artists.go | 27 --------------------------- 2 files changed, 48 deletions(-) delete mode 100644 cmd/albums.go delete mode 100644 cmd/artists.go diff --git a/cmd/albums.go b/cmd/albums.go deleted file mode 100644 index ccf32f7..0000000 --- a/cmd/albums.go +++ /dev/null @@ -1,21 +0,0 @@ -package cmd - -import ( - "gospt/internal/commands" - - "github.com/spf13/cobra" -) - -// albumsCmd represents the albums command -var albumsCmd = &cobra.Command{ - Use: "albums", - Short: "get all saved albums", - Long: `get all saved albums`, - Run: func(cmd *cobra.Command, args []string) { - commands.UserAlbums(ctx, client, 1) - }, -} - -func init() { - rootCmd.AddCommand(albumsCmd) -} diff --git a/cmd/artists.go b/cmd/artists.go deleted file mode 100644 index 913f2f0..0000000 --- a/cmd/artists.go +++ /dev/null @@ -1,27 +0,0 @@ -package cmd - -import ( - "fmt" - - "gospt/internal/commands" - - "github.com/spf13/cobra" -) - -// artistsCmd represents the artists command -var artistsCmd = &cobra.Command{ - Use: "artists", - Short: "return all users artists", - Long: `return all users artists`, - Run: func(cmd *cobra.Command, args []string) { - _, err := commands.UserArtists(ctx, client, 1) - if err != nil { - fmt.Println(err.Error()) - } - return - }, -} - -func init() { - rootCmd.AddCommand(artistsCmd) -}