From bab2699f73cd473c5aa51be579b7344730736bcb Mon Sep 17 00:00:00 2001 From: leandrofars Date: Tue, 6 Feb 2024 00:19:41 -0300 Subject: [PATCH] docs(controller): add todo statements --- backend/services/controller/cmd/oktopus/main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/services/controller/cmd/oktopus/main.go b/backend/services/controller/cmd/oktopus/main.go index 8e80dc4..ecef129 100755 --- a/backend/services/controller/cmd/oktopus/main.go +++ b/backend/services/controller/cmd/oktopus/main.go @@ -22,6 +22,7 @@ import ( "github.com/leandrofars/oktopus/internal/ws" ) +// TODO: refact where this version number comes from const VERSION = "0.0.1" func main() { @@ -44,6 +45,7 @@ func main() { // Locks app running until it receives a stop command as Ctrl+C. signal.Notify(done, syscall.SIGINT) + //TODO: refact app confiurations and env loading to another package log.SetFlags(log.LstdFlags | log.Lshortfile) /* @@ -201,6 +203,8 @@ func main() { } +//TODO: refact functions below to another package + func lookupEnvOrString(key string, defaultVal string) string { if val, _ := os.LookupEnv(key); val != "" { return val