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