Open nisdas opened 4 years ago
I have also experienced this.
The following example
prompt = promptui.Prompt{
Label: "Quantos agentes precisam ser instalados",
Validate: func(input string) error {
_, err := strconv.ParseInt(input, 0, 64)
if err != nil {
return errors.New("Por favor digite um número inteiro")
}
return nil
},
}
serverCountString, err := prompt.Run()
if err != nil {
return &ce.Error{Arg: 1, Message: err.Error()}
}
I believe the problem only occurs when trying to reuse the prompt variable. for me it is resolved.
This happens quite often, whenever running a prompt. Ex: