feat: add version command to output current version number

This commit is contained in:
duorameng
2026-06-18 23:16:55 +08:00
parent 19374e7054
commit 9e35207925
4 changed files with 22 additions and 1 deletions
+11
View File
@@ -0,0 +1,11 @@
package version
import (
"fmt"
"github.com/engigu/baihu-panel/internal/constant"
)
func Run(args []string) {
fmt.Printf("白虎面板 (Baihu Panel) v%s (Build time: %s)\n", constant.Version, constant.BuildTime)
}