chore(config): remove zerolog

Signed-off-by: Bo-Yi Wu <[email protected]>
This commit is contained in:
Bo-Yi Wu authored and Jason Song committed 2022-11-24 15:36:48 +08:00
1 parent b83f36674b
commit 9225a3a856
3 files changed
+38 -67

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
package cmd
import "github.com/kelseyhightower/envconfig"
type (
// Config provides the system configuration.
Config struct {
Debug bool `envconfig:"DRONE_DEBUG"`
Trace bool `envconfig:"DRONE_TRACE"`
}
)
// fromEnviron returns the settings from the environment.
func fromEnviron() (Config, error) {
cfg := Config{}
err := envconfig.Process("", &cfg)
return cfg, err
}