artists and albums
This commit is contained in:
parent
652bb376d3
commit
d06e95cdb7
@ -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)
|
|
||||||
}
|
|
@ -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)
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user