Track bundled vendor runtime sources
Some checks failed
CI / main (push) Has been cancelled
CI / release-e2e (push) Has been cancelled

This commit is contained in:
2026-07-07 10:05:50 +08:00
parent fbe179ab53
commit 52636c91ae
2111 changed files with 1850012 additions and 14 deletions

29
vendor/aigcpanel/cli/cmd/root.go vendored Normal file
View File

@@ -0,0 +1,29 @@
package cmd
import (
"os"
"github.com/spf13/cobra"
)
var appVersion string
// Execute sets the version and runs the root command.
func Execute(version string) {
appVersion = version
if err := rootCmd.Execute(); err != nil {
os.Exit(1)
}
}
var rootCmd = &cobra.Command{
Use: "aigcpanel",
Short: "AIGCPanel CLI",
Long: "AIGCPanel command-line tool for interacting with the local AigcPanel service.",
}
func init() {
rootCmd.AddCommand(versionCmd)
rootCmd.AddCommand(modelListCmd)
rootCmd.AddCommand(taskCmd)
}