2026-04-29
This commit is contained in:
@@ -4,17 +4,17 @@ import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"gitea.sunhpc.com/kelvin/sunhpc"
|
||||
"gitea.sunhpc.com/kelvin/sunhpc/internal/app/control"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
root := sunhpc.GetRootCommand()
|
||||
root := control.GetRootCommand()
|
||||
|
||||
err := root.Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "ERROR: %s\n", err)
|
||||
if sunhpc.DebugFlag {
|
||||
if control.DebugFlag {
|
||||
fmt.Printf("\nSTACK TRACE: %+v\n", err)
|
||||
}
|
||||
os.Exit(255)
|
||||
|
||||
Reference in New Issue
Block a user