Revert "feat: Support config files with viper (#4558)" (#4692)

This reverts commit c8e299c8f1.
This commit is contained in:
Garrett Delfosse
2022-10-21 20:04:27 +00:00
committed by GitHub
parent 0d27b59ebb
commit a2fb444911
35 changed files with 1089 additions and 920 deletions
-8
View File
@@ -6,10 +6,6 @@ import (
"path/filepath"
)
const (
FlagName = "global-config"
)
// Root represents the configuration directory.
type Root string
@@ -46,10 +42,6 @@ func (r Root) PostgresPort() File {
return File(filepath.Join(r.PostgresPath(), "port"))
}
func (r Root) DeploymentConfigPath() string {
return filepath.Join(string(r), "server.yaml")
}
// File provides convenience methods for interacting with *os.File.
type File string