refactor(env): move env parsing to separate repo

This commit is contained in:
yusing
2025-09-26 20:41:10 +08:00
parent 00d137d05c
commit f7149453d6
8 changed files with 42 additions and 98 deletions

View File

@@ -20,6 +20,7 @@ import (
"github.com/yusing/godoxy/internal/types"
W "github.com/yusing/godoxy/internal/watcher"
"github.com/yusing/godoxy/internal/watcher/events"
"github.com/yusing/goutils/env"
)
type (
@@ -70,7 +71,7 @@ func NewFileProvider(filename string) (p *Provider, err error) {
func NewDockerProvider(name string, dockerHost string) *Provider {
if dockerHost == common.DockerHostFromEnv {
dockerHost = common.GetEnvString("DOCKER_HOST", client.DefaultDockerHost)
dockerHost = env.GetEnvString("DOCKER_HOST", client.DefaultDockerHost)
}
p := newProvider(provider.ProviderTypeDocker)