feat(pidproxy): read startsecs from env

chore: centralize env prefix
This commit is contained in:
2023-12-10 22:23:43 +11:00
parent 8704f80d4b
commit ad8499daa5
6 changed files with 19 additions and 10 deletions

View File

@@ -14,7 +14,6 @@ const (
// DummyPath = "/workspaces/wingmate/cmd/experiment/dummy/dummy"
DummyPath = "/usr/local/bin/wmdummy"
EnvDummyPath = "DUMMY_PATH"
EnvPrefix = "WINGMATE"
EnvLog = "LOG"
EnvLogMessage = "LOG_MESSAGE"
EnvDefaultLogMessage = "oneshot executed"
@@ -23,7 +22,7 @@ const (
)
func main() {
viper.SetEnvPrefix(EnvPrefix)
viper.SetEnvPrefix(wingmate.EnvPrefix)
viper.BindEnv(EnvDummyPath)
viper.BindEnv(EnvLog)
viper.BindEnv(EnvLogMessage)