22 lines
307 B
Go
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)
|
|
}
|
|
} |