From 926662e9702b90dd72291911fee5576033a9dc6b Mon Sep 17 00:00:00 2001 From: Nate Meyer <672246+notnmeyer@users.noreply.github.com> Date: Mon, 11 May 2026 14:08:28 -0700 Subject: [PATCH] ascii art in version output --- cmd/build_info.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/cmd/build_info.go b/cmd/build_info.go index fbd59ba..08425f4 100644 --- a/cmd/build_info.go +++ b/cmd/build_info.go @@ -10,6 +10,15 @@ var ( commit = "none" ) +// includes a leading newline to make it easy to read the ascii art here in the source +const versionHeader = ` + __ ____ ____ ____ _____ + / / / __ \/ __ \/ __ \/ ___/ + / / / / / / / / / /_/ /\__ \ + / /___/ /_/ / /_/ / ____/___/ / +/_____/\____/\____/_/ /____/ +` + func init() { if info, ok := debug.ReadBuildInfo(); ok && version == "dev" { if info.Main.Version != "" && info.Main.Version != "(devel)" { @@ -22,4 +31,6 @@ func init() { } } } + header := strings.TrimPrefix(versionHeader, "\n") + rootCmd.SetVersionTemplate(header + "\n{{with .Name}}{{printf \"%s \" .}}{{end}}{{printf \"version %s\" .Version}}\n") }