ppanel-server/cmd/version.go
2025-09-27 10:17:16 +08:00

17 lines
301 B
Go

package cmd
import (
"fmt"
"github.com/perfect-panel/ppanel-server/internal/config"
"github.com/spf13/cobra"
)
var versionCmd = &cobra.Command{
Use: "version",
Short: "PPanel version",
Run: func(cmd *cobra.Command, args []string) {
fmt.Println("[PPanel version] " + config.Version)
},
}