delete.go 489 B

1234567891011121314151617181920212223
  1. package network_user
  2. import (
  3. "fmt"
  4. "github.com/gravitl/netmaker/cli/functions"
  5. "github.com/spf13/cobra"
  6. )
  7. var networkuserDeleteCmd = &cobra.Command{
  8. Use: "delete [NETWORK NAME] [NETWORK USER NAME]",
  9. Args: cobra.ExactArgs(2),
  10. Short: "Delete a network user",
  11. Long: `Delete a network user`,
  12. Run: func(cmd *cobra.Command, args []string) {
  13. functions.DeleteNetworkUser(args[0], args[1])
  14. fmt.Println("Success")
  15. },
  16. }
  17. func init() {
  18. rootCmd.AddCommand(networkuserDeleteCmd)
  19. }