refactor: Use explicit reader/writer instead of filepath for drive
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
package inventory
|
||||
|
||||
type MetadataConfig struct {
|
||||
Metadata string
|
||||
}
|
||||
@@ -8,10 +8,11 @@ import (
|
||||
"github.com/pojntfx/stfs/internal/converters"
|
||||
models "github.com/pojntfx/stfs/internal/db/sqlite/models/metadata"
|
||||
"github.com/pojntfx/stfs/internal/persisters"
|
||||
"github.com/pojntfx/stfs/pkg/config"
|
||||
)
|
||||
|
||||
func Find(
|
||||
state MetadataConfig,
|
||||
state config.MetadataConfig,
|
||||
|
||||
expression string,
|
||||
|
||||
|
||||
@@ -7,10 +7,11 @@ import (
|
||||
"github.com/pojntfx/stfs/internal/converters"
|
||||
models "github.com/pojntfx/stfs/internal/db/sqlite/models/metadata"
|
||||
"github.com/pojntfx/stfs/internal/persisters"
|
||||
"github.com/pojntfx/stfs/pkg/config"
|
||||
)
|
||||
|
||||
func List(
|
||||
state MetadataConfig,
|
||||
state config.MetadataConfig,
|
||||
|
||||
name string,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user