Closed orymate closed 5 years ago
nils may remain from v1 code, and not trivial to find. Also, dynamic generation of optional requirements is more complex than needed this way:
opts := []survey.AskOpt{} if required { opts = append(opts, survey.WithValidator(survey.Required)) } survey.AskOne(input, &output, opts...)
Thanks for the contribution! I can see how this would be useful for migrating from v1 -> v2 :+1:
I'm not sure why the build is failing. I thought this was fixed in #239
nils may remain from v1 code, and not trivial to find. Also, dynamic generation of optional requirements is more complex than needed this way: