mirror of
https://github.com/gravitl/netmaker.git
synced 2025-11-03 11:02:11 +08:00
add node management
This commit is contained in:
22
cli/cmd/node/uncordon.go
Normal file
22
cli/cmd/node/uncordon.go
Normal file
@@ -0,0 +1,22 @@
|
||||
package node
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/gravitl/netmaker/cli/functions"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
var nodeUncordonCmd = &cobra.Command{
|
||||
Use: "uncordon [NETWORK NAME] [NODE ID]",
|
||||
Args: cobra.ExactArgs(2),
|
||||
Short: "Get a node by ID",
|
||||
Long: `Get a node by ID`,
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
fmt.Println(*functions.UncordonNode(args[0], args[1]))
|
||||
},
|
||||
}
|
||||
|
||||
func init() {
|
||||
rootCmd.AddCommand(nodeUncordonCmd)
|
||||
}
|
||||
Reference in New Issue
Block a user