Merge pull request #1733 from Banno/fix-colorize-ui-ask-secret

adding new AskSecret to ColorizeUi
This commit is contained in:
Mitchell Hashimoto 2015-04-29 11:09:09 -07:00
commit 31716cee27
1 changed files with 4 additions and 0 deletions

View File

@ -22,6 +22,10 @@ func (u *ColorizeUi) Ask(query string) (string, error) {
return u.Ui.Ask(u.colorize(query, u.OutputColor)) return u.Ui.Ask(u.colorize(query, u.OutputColor))
} }
func (u *ColorizeUi) AskSecret(query string) (string, error) {
return u.Ui.AskSecret(u.colorize(query, u.OutputColor))
}
func (u *ColorizeUi) Output(message string) { func (u *ColorizeUi) Output(message string) {
u.Ui.Output(u.colorize(message, u.OutputColor)) u.Ui.Output(u.colorize(message, u.OutputColor))
} }