summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-15 10:41:20 -0500
committerJeff Carr <[email protected]>2025-10-15 10:41:20 -0500
commite53c5bb205827022eca057327869ff7beb2dd27c (patch)
tree9ee794ecc96614f48dc488c30870ccbb2c409b16
parent6bf6cd03a651013a327d31427d0366cd8aa1c8de (diff)
maybe useful, maybe not
-rw-r--r--flags.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/flags.go b/flags.go
index 0638b71..24a3fce 100644
--- a/flags.go
+++ b/flags.go
@@ -1,5 +1,14 @@
package config
+// returns true if config is working okay
+func InitValid() bool {
+ if configPB == nil {
+ // todo: try to re-init it here
+ return false
+ }
+ return true
+}
+
func Get(flag string) string {
if configPB == nil {
return ""