Files
warewulf/internal/app/wwctl/node/status/root.go
2021-12-30 23:26:45 +00:00

25 lines
686 B
Go

package nodestatus
import "github.com/spf13/cobra"
var (
baseCmd = &cobra.Command{
DisableFlagsInUseLine: true,
Use: "status [OPTIONS] [NODENAME...]",
Short: "View the provisioning status of nodes",
Long: "View and monitor the status of nodes as they are provisioned and check in.",
RunE: CobraRunE,
Args: cobra.MinimumNArgs(0),
}
SetWatch bool
)
func init() {
baseCmd.PersistentFlags().BoolVar(&SetWatch, "watch", false, "Watch the status automatically")
}
// GetRootCommand returns the root cobra.Command for the application.
func GetCommand() *cobra.Command {
return baseCmd
}