mirror of
https://git.sr.ht/~phw/scotty
synced 2025-04-30 05:37:05 +02:00
Introduce models.Entity type
This commit is contained in:
parent
a59a542967
commit
c4587b80af
6 changed files with 18 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue