server/cmd/root.go
Chang lue Tsen 8addcc584b init: 1.0.0
2025-04-25 12:08:29 +09:00

31 lines
610 B
Go

package cmd
import (
"fmt"
"os"
"github.com/spf13/cobra"
)
func init() {
rootCmd.AddCommand(startCmd)
rootCmd.AddCommand(versionCmd)
}
var rootCmd = &cobra.Command{
Use: "PPanel",
Short: "PPanel is a modern multi-user agent panel.",
Long: `[ PPanel is a pure, professional, and perfect open-source proxy panel tool, designed to be your ideal choice for learning and practical use.]
[ Simple and easy to operate.]`,
Run: func(cmd *cobra.Command, args []string) {
fmt.Println("args:", args)
},
}
func Execute() {
if err := rootCmd.Execute(); err != nil {
fmt.Println(err)
os.Exit(1)
}
}