7 // ConcurrentUi is a wrapper around a Ui interface (and implements that
8 // interface) making the underlying Ui concurrency safe.
9 type ConcurrentUi struct {
14 func (u *ConcurrentUi) Ask(query string) (string, error) {
18 return u.Ui.Ask(query)
21 func (u *ConcurrentUi) AskSecret(query string) (string, error) {
25 return u.Ui.AskSecret(query)
28 func (u *ConcurrentUi) Error(message string) {
35 func (u *ConcurrentUi) Info(message string) {
42 func (u *ConcurrentUi) Output(message string) {
49 func (u *ConcurrentUi) Warn(message string) {