From 27c70bd6076a4eb3ac2c4314596b751415d4eecc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leandro=20Ant=C3=B4nio=20Farias=20Machado?= Date: Thu, 9 Mar 2023 22:15:52 -0300 Subject: [PATCH] feat: add semantic versioning --- .gitignore | 1 - cmd/oktopus/main.go | 6 ++++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index f99fe0d..7ce824b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,2 @@ *.log -*.db *.db \ No newline at end of file diff --git a/cmd/oktopus/main.go b/cmd/oktopus/main.go index 15fabf9..6ce386c 100755 --- a/cmd/oktopus/main.go +++ b/cmd/oktopus/main.go @@ -13,11 +13,13 @@ import ( "github.com/leandrofars/oktopus/internal/mqtt" ) +const VERSION = "0.0.1" + func main() { done := make(chan os.Signal, 1) signal.Notify(done, syscall.SIGINT, syscall.SIGTERM) - log.Println("Starting Oktopus Project TR-369 Controller...") + log.Println("Starting Oktopus Project TR-369 Controller Version:", VERSION) fl_broker := flag.Bool("mosquitto", false, "Defines if mosquitto container must run or not") // fl_endpointId := flag.String("endpoint_id", "proto::oktopus-controller", "Defines the enpoint id the Agent must trust on.") // fl_sub_topic := flag.String("sub_topic", "oktopus/v1/agent", "That's the topic agent must publish to, and the controller keeps on listening.") @@ -57,6 +59,6 @@ func main() { } } - log.Println(" Oktopus is out!") + log.Println("Oktopus is out!") }