Files
warewulf/internal/app/wwctl/server/start/root.go
2021-01-14 20:23:42 -08:00

22 lines
437 B
Go

package start
import "github.com/spf13/cobra"
var (
baseCmd = &cobra.Command{
Use: "start",
Short: "Start Warewulf server",
RunE: CobraRunE,
}
SetForeground bool
)
func init() {
baseCmd.PersistentFlags().BoolVarP(&SetForeground, "foreground", "f", false, "Run daemon process in the foreground")
}
// GetRootCommand returns the root cobra.Command for the application.
func GetCommand() *cobra.Command {
return baseCmd
}