info.go 408 B

1234567891011121314151617181920
  1. package server
  2. import (
  3. "github.com/gravitl/netmaker/cli/functions"
  4. "github.com/spf13/cobra"
  5. )
  6. var serverInfoCmd = &cobra.Command{
  7. Use: "info",
  8. Args: cobra.NoArgs,
  9. Short: "Retrieve server information",
  10. Long: `Retrieve server information`,
  11. Run: func(cmd *cobra.Command, args []string) {
  12. functions.PrettyPrint(functions.GetServerInfo())
  13. },
  14. }
  15. func init() {
  16. rootCmd.AddCommand(serverInfoCmd)
  17. }