add help.go, splog.go module

This commit is contained in:
2026-04-29 14:08:59 +08:00
parent 53d56ec6e2
commit e762cbdfe3
8 changed files with 415 additions and 10 deletions

22
cmd/control/main.go Normal file
View File

@@ -0,0 +1,22 @@
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)
}
}

View File

@@ -1,10 +0,0 @@
package main
import (
"fmt"
"os"
)
func main() {
fmt.Printfn("hello world.")
}