Add app backend factory wiring

This commit is contained in:
2026-05-31 03:27:49 +00:00
parent 93805bcc8c
commit be4a61fbe6
6 changed files with 124 additions and 21 deletions

View File

@@ -5,7 +5,6 @@ import (
"fmt"
"io"
"gitea.maximumdirect.net/eric/distributor/internal/adapters/local"
"gitea.maximumdirect.net/eric/distributor/internal/bundle"
)
@@ -18,7 +17,7 @@ func Validate(ctx context.Context, options ValidateOptions) error {
if options.Path == "" {
return fmt.Errorf("validate command requires a path")
}
backend, err := local.New(options.Path)
backend, err := newBackendFactory().openLocalPath(ctx, options.Path)
if err != nil {
return err
}