netmaker/cli/cmd/server/health.go
2022-11-28 18:16:56 +05:30

21 lines
398 B
Go

package server
import (
"github.com/gravitl/netmaker/cli/functions"
"github.com/spf13/cobra"
)
var serverHealthCmd = &cobra.Command{
Use: "health",
Args: cobra.NoArgs,
Short: "View server health",
Long: `View server health`,
Run: func(cmd *cobra.Command, args []string) {
functions.PrettyPrint(functions.GetServerHealth())
},
}
func init() {
rootCmd.AddCommand(serverHealthCmd)
}