delete.go 480 B

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