forked from toolshed/abra
		
	fix: handle noinput case
This commit is contained in:
		| @ -105,6 +105,7 @@ You may also invoke this command in "wizard" mode and be prompted for input | |||||||
|  |  | ||||||
| 		table.Render() | 		table.Render() | ||||||
|  |  | ||||||
|  | 		if !internal.NoInput { | ||||||
| 			response := false | 			response := false | ||||||
| 			prompt := &survey.Confirm{ | 			prompt := &survey.Confirm{ | ||||||
| 				Message: "continue with record deletion?", | 				Message: "continue with record deletion?", | ||||||
| @ -117,6 +118,7 @@ You may also invoke this command in "wizard" mode and be prompted for input | |||||||
| 			if !response { | 			if !response { | ||||||
| 				logrus.Fatal("exiting as requested") | 				logrus.Fatal("exiting as requested") | ||||||
| 			} | 			} | ||||||
|  | 		} | ||||||
|  |  | ||||||
| 		_, err = provider.DeleteRecords(c.Context, zone, []libdns.Record{toDelete}) | 		_, err = provider.DeleteRecords(c.Context, zone, []libdns.Record{toDelete}) | ||||||
| 		if err != nil { | 		if err != nil { | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user