add sv1 version

This commit is contained in:
2025-10-11 16:24:58 +03:00
parent 9c140abc6d
commit 40be3c8d09
2 changed files with 4 additions and 0 deletions

View File

@@ -5,6 +5,7 @@ import (
"runtime"
"github.com/akyaiy/GoSally-mvp/src/internal/engine/config"
"github.com/akyaiy/GoSally-mvp/src/internal/server/sv1"
"github.com/spf13/cobra"
)
@@ -14,6 +15,7 @@ var verCmd = &cobra.Command{
Short: "Return node version",
Run: func(cmd *cobra.Command, args []string) {
fmt.Printf("GoSally node: %s\n", config.NodeVersion)
fmt.Printf("sv1 version: %s\n", sv1.SV1Version)
fmt.Printf("Go version: %s\n", runtime.Version())
fmt.Printf("Go OS/Arch: %s/%s\n", runtime.GOOS, runtime.GOARCH)
},

View File

@@ -9,6 +9,8 @@ import (
"github.com/akyaiy/GoSally-mvp/src/internal/engine/app"
)
var SV1Version = "null"
// HandlerV1InitStruct structure is only for initialization
type HandlerV1InitStruct struct {
Ver string