Files
warewulf/cmd/wwclient/main.go
2022-01-26 11:15:48 +01:00

23 lines
320 B
Go

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