build stuff
This commit is contained in:
@@ -11,6 +11,8 @@ import (
|
||||
"github.com/spf13/pflag"
|
||||
)
|
||||
|
||||
var version string = "develop"
|
||||
|
||||
type ConfigDef struct {
|
||||
Key string
|
||||
Env string
|
||||
@@ -102,6 +104,10 @@ func GetConfigDefs[T ServerConfig | ClientConfig]() []ConfigDef {
|
||||
return defs
|
||||
}
|
||||
|
||||
func GetVersion() string {
|
||||
return version
|
||||
}
|
||||
|
||||
func getConfigValue(cmdFlags *pflag.FlagSet, def ConfigDef) string {
|
||||
// 1. Get Flags First
|
||||
if cmdFlags != nil {
|
||||
|
||||
Reference in New Issue
Block a user