Closed rmfish closed 5 years ago
In my case, i use the survey ask one by one, it always do something and send feedback between the asks. So i want a message prompt without answer to display the feedback :)
I am not sure I understand your use-case, but prompts are just a Go interface. You can provide your own implementation in your code. If you don't want to re-render the prompt with the answer you could just implement a no-op Cleanup
function:
type MyConfirm struct {
Confirm
}
func (my *MyConfirm) Cleanup(val interface{}) error {
return nil
}
I am not sure I understand your use-case, but prompts are just a Go interface. You can provide your own implementation in your code. If you don't want to re-render the prompt with the answer you could just implement a no-op
Cleanup
function:type MyConfirm struct { Confirm } func (my *MyConfirm) Cleanup(val interface{}) error { return nil }
Yes , it solve my some problems
Add a info/warning message prompt without any answer.