start beta versioning

This commit is contained in:
2025-12-16 18:41:38 -05:00
parent 10da72a1f6
commit e2c6f15e5b
3 changed files with 28 additions and 4 deletions

View File

@@ -13,6 +13,7 @@ import (
"fes/src/doc"
"fes/src/new"
"fes/src/server"
"fes/src/version"
)
//go:embed core/*
@@ -38,8 +39,14 @@ func main() {
fmt.Println("Options:")
flag.PrintDefaults()
}
showVersion := flag.Bool("version", false, "Show version and exit")
flag.Parse()
if *showVersion {
version.Version()
}
if *config.Color {
color.NoColor = true
}