artists and albums

This commit is contained in:
abs3nt 2023-01-12 18:48:53 -08:00
parent 652bb376d3
commit d06e95cdb7
2 changed files with 0 additions and 48 deletions

View File

@ -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)
}

View File

@ -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)
}