Introduce models.Entity type

This commit is contained in:
Philipp Wolfer 2023-12-10 14:22:38 +01:00
parent a59a542967
commit c4587b80af
No known key found for this signature in database
GPG key ID: 8FDF744D4919943B
6 changed files with 18 additions and 9 deletions

View file

@ -38,7 +38,7 @@ func NewTransferCmd[
](
cmd *cobra.Command,
db *storage.Database,
entity string,
entity models.Entity,
source string,
target string,
) (TransferCmd[E, I, R], error) {
@ -57,7 +57,7 @@ func NewTransferCmd[
type TransferCmd[E models.Backend, I models.ImportBackend, R models.ListensResult | models.LovesResult] struct {
cmd *cobra.Command
db *storage.Database
entity string
entity models.Entity
sourceName string
targetName string
ExpBackend E