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

23 lines
377 B
Go

package cmd
import (
"fmt"
"github.com/gravitl/netmaker/cli/functions"
"github.com/spf13/cobra"
)
var getLogsCmd = &cobra.Command{
Use: "logs",
Args: cobra.NoArgs,
Short: "Retrieve server logs",
Long: `Retrieve server logs`,
Run: func(cmd *cobra.Command, args []string) {
fmt.Println(functions.GetLogs())
},
}
func init() {
rootCmd.AddCommand(getLogsCmd)
}