config.go 503 B

12345678910111213141516171819202122
  1. package ext_client
  2. import (
  3. "fmt"
  4. "github.com/gravitl/netmaker/cli/functions"
  5. "github.com/spf13/cobra"
  6. )
  7. var extClientConfigCmd = &cobra.Command{
  8. Use: "config [NETWORK NAME] [EXTERNAL CLIENT ID]",
  9. Args: cobra.ExactArgs(2),
  10. Short: "Get an External Client Configuration",
  11. Long: `Get an External Client Configuration`,
  12. Run: func(cmd *cobra.Command, args []string) {
  13. fmt.Println(functions.GetExtClientConfig(args[0], args[1]))
  14. },
  15. }
  16. func init() {
  17. rootCmd.AddCommand(extClientConfigCmd)
  18. }