From 15cc3912218e04004a172060009c735a2a17187c Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Mon, 21 Jul 2025 16:22:11 +0300 Subject: It's now possible to build eko and eko-server with flake.nix --- cmd/client/main.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'cmd/client/main.go') diff --git a/cmd/client/main.go b/cmd/client/main.go index 54f1599..87e3d98 100644 --- a/cmd/client/main.go +++ b/cmd/client/main.go @@ -17,13 +17,22 @@ package main import ( + "fmt" "log" "os" + "github.com/kyren223/eko/embeds" "github.com/kyren223/eko/internal/client" ) func main() { + if len(os.Args) > 1 && os.Args[1] == "-v" { + fmt.Println("version:", embeds.Version) + fmt.Println("commit:", embeds.Commit) + fmt.Println("build date:", embeds.BuildDate) + return + } + logFile, err := os.OpenFile("client.log", os.O_APPEND|os.O_CREATE|os.O_WRONLY|os.O_TRUNC, 0600) if err != nil { log.Fatalln(err) -- cgit v1.3.1