Both the ClientFactory and the main Factory need to reference survey to ask questions, but we need a single place to hold the reference to survey so we can switch it off for automation mode. This wrapper fills that gap.
| 12 | // automation mode. This wrapper fills that gap. |
| 13 | |
| 14 | type AskProvider interface { |
| 15 | IsInteractive() bool |
| 16 | DisableInteractive() |
| 17 | Ask(p survey.Prompt, response interface{}, opts ...survey.AskOpt) error |
| 18 | } |
| 19 | |
| 20 | type askWrapper struct { |
| 21 | asker Asker |
no outgoing calls
no test coverage detected