mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-06 09:22:42 +08:00
21 lines
503 B
Go
21 lines
503 B
Go
package network
|
|
|
|
import (
|
|
"github.com/gravitl/netmaker/cli/functions"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var networkRefreshKeysCmd = &cobra.Command{
|
|
Use: "refresh_keys [NETWORK NAME]",
|
|
Short: "Refresh public and private key pairs of a network",
|
|
Long: `Refresh public and private key pairs of a network`,
|
|
Args: cobra.ExactArgs(1),
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
functions.PrettyPrint(functions.RefreshKeys(args[0]))
|
|
},
|
|
}
|
|
|
|
func init() {
|
|
rootCmd.AddCommand(networkRefreshKeysCmd)
|
|
}
|