Files
sunhpc/cmd/control/main.go
2026-04-29 14:08:59 +08:00

22 lines
307 B
Go

package main
import (
"fmt"
"os"
"gitea.sunhpc.com/kelvin/sunhpc"
)
func main() {
root := sunhpc.GetRootCommand()
err := root.Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "ERROR: %s\n", err)
if sunhpc.DebugFlag {
fmt.Printf("\nSTACK TRACE: %+v\n", err)
}
os.Exit(255)
}
}