diff options
| author | Kyren223 <Kyren223@proton.me> | 2025-07-21 16:22:11 +0300 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2025-07-21 16:22:11 +0300 |
| commit | 15cc3912218e04004a172060009c735a2a17187c (patch) | |
| tree | b161e8272d5f9f9d06faf42fecb862559e278683 /cmd/client | |
| parent | 7d5ce5721b250658a86af69b22e2f02ad443f431 (diff) | |
It's now possible to build eko and eko-server with flake.nix
Diffstat (limited to 'cmd/client')
| -rw-r--r-- | cmd/client/main.go | 9 |
1 files changed, 9 insertions, 0 deletions
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) |
