build stuff

This commit is contained in:
2025-09-20 18:29:27 -04:00
parent d2b9f273e0
commit 516427dcda
8 changed files with 206 additions and 8 deletions

View File

@@ -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 {