mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-11 23:54:22 +08:00
22 lines
503 B
Go
22 lines
503 B
Go
package ext_client
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/gravitl/netmaker/cli/functions"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var extClientConfigCmd = &cobra.Command{
|
|
Use: "config [NETWORK NAME] [EXTERNAL CLIENT ID]",
|
|
Args: cobra.ExactArgs(2),
|
|
Short: "Get an External Client Configuration",
|
|
Long: `Get an External Client Configuration`,
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
fmt.Println(functions.GetExtClientConfig(args[0], args[1]))
|
|
},
|
|
}
|
|
|
|
func init() {
|
|
rootCmd.AddCommand(extClientConfigCmd)
|
|
}
|