Simplified version of node status monitoring with CLI

This commit is contained in:
Gregory Kurtzer
2021-12-30 23:26:45 +00:00
parent 02a5de3873
commit 525ac1184e
13 changed files with 229 additions and 2 deletions

View File

@@ -8,14 +8,15 @@ import (
"github.com/hpcng/warewulf/internal/app/wwctl/node/ready"
"github.com/hpcng/warewulf/internal/app/wwctl/node/sensors"
"github.com/hpcng/warewulf/internal/app/wwctl/node/set"
nodestatus "github.com/hpcng/warewulf/internal/app/wwctl/node/status"
"github.com/spf13/cobra"
)
var (
baseCmd = &cobra.Command{
DisableFlagsInUseLine: true,
Use: "node COMMAND [OPTONS]",
Short: "Node management",
Use: "node COMMAND [OPTONS]",
Short: "Node management",
Long: "Management of node settings. All node ranges can use brackets to identify\n" +
"node ranges. For example: n00[00-4].cluster[0-1] will identify the first 5 nodes\n" +
"in cluster0 and cluster1.",
@@ -30,6 +31,7 @@ func init() {
baseCmd.AddCommand(delete.GetCommand())
baseCmd.AddCommand(console.GetCommand())
baseCmd.AddCommand(ready.GetCommand())
baseCmd.AddCommand(nodestatus.GetCommand())
}
// GetRootCommand returns the root cobra.Command for the application.