logs.go 377 B

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