Print version on launch

This commit is contained in:
Seednode 2022-10-23 17:39:49 -05:00
parent 22b6127bf2
commit c52ace1fdb
2 changed files with 3 additions and 1 deletions

View File

@ -10,7 +10,7 @@ import (
"github.com/spf13/cobra"
)
var Version = "0.18.1"
var Version = "0.18.2"
func init() {
rootCmd.AddCommand(versionCmd)

View File

@ -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