37 lines
487 B
Go
Raw Normal View History

2024-02-17 22:57:47 -08:00
package commands
import (
"context"
"github.com/zmb3/spotify/v2"
"go.uber.org/fx"
)
type CommanderResult struct {
fx.Out
Commander *Commander
}
type CommanderParams struct {
fx.In
Context context.Context
Client *spotify.Client
}
type Commander struct {
Context context.Context
Client *spotify.Client
}
func NewCommander(p CommanderParams) CommanderResult {
c := &Commander{
Context: p.Context,
Client: p.Client,
}
return CommanderResult{
Commander: c,
}
}