From 441806f29fce8a6dbbcfff22a93c3e8d52d12962 Mon Sep 17 00:00:00 2001 From: Lajos Koszti Date: Mon, 1 Jul 2024 08:45:22 +0200 Subject: [PATCH] feat: print build date on version query --- cmd/sekret.link/main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/sekret.link/main.go b/cmd/sekret.link/main.go index 12d64b8..043597d 100644 --- a/cmd/sekret.link/main.go +++ b/cmd/sekret.link/main.go @@ -28,6 +28,7 @@ import ( var ( version string + build string ) func shutDown(shutdowns ...func() error) chan error { @@ -137,7 +138,8 @@ func getConfig(ctx context.Context) (*api.HandlerConfig, error) { flag.Parse() if queryVersion { - fmt.Println(version) + fmt.Printf("%s %s", version, build) + fmt.Println() os.Exit(0) }