From c52ace1fdb8b7efe5613cae23e00e1d619eceb9e Mon Sep 17 00:00:00 2001 From: Seednode Date: Sun, 23 Oct 2022 17:39:49 -0500 Subject: [PATCH] Print version on launch --- cmd/version.go | 2 +- cmd/web.go | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/version.go b/cmd/version.go index 7659233..21e173d 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -10,7 +10,7 @@ import ( "github.com/spf13/cobra" ) -var Version = "0.18.1" +var Version = "0.18.2" func init() { rootCmd.AddCommand(versionCmd) diff --git a/cmd/web.go b/cmd/web.go index 1c96f2a..0ca8e92 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -456,6 +456,8 @@ func serveHtmlHandler(paths []string, re regexp.Regexp) appHandler { func doNothing(http.ResponseWriter, *http.Request) {} func ServePage(args []string) error { + fmt.Printf("roulette v%v\n", Version) + paths, err := normalizePaths(args) if err != nil { return err