mirror of
https://github.com/gravitl/netmaker.git
synced 2024-09-22 08:16:07 +08:00
23 lines
377 B
Go
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)
|
|
}
|