Skip to content

Commit

Permalink
feat: print build date on version query
Browse files Browse the repository at this point in the history
  • Loading branch information
Ajnasz committed Jul 17, 2024
1 parent 6c45a10 commit 441806f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/sekret.link/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import (

var (
version string
build string
)

func shutDown(shutdowns ...func() error) chan error {
Expand Down Expand Up @@ -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)
}

Expand Down

0 comments on commit 441806f

Please sign in to comment.