refactor: fold auth and crypto into deezer domain

This commit is contained in:
Mathis Maquenne
2026-08-05 11:40:14 +02:00
parent 16c71c8688
commit dbd7837b17
11 changed files with 60 additions and 72 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ package cmd
import (
"fmt"
"github.com/mathismqn/godeez/internal/auth"
"github.com/mathismqn/godeez/internal/deezer"
"github.com/spf13/cobra"
)
@@ -13,7 +13,7 @@ func newLogoutCmd() *cobra.Command {
Short: "Remove stored Deezer credentials",
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
if err := auth.Clear(); err != nil {
if err := deezer.ClearCredentials(); err != nil {
return err
}