Skip to content

Commit

Permalink
QuietUi: implement *f() methods required by the packer.Ui interface
Browse files Browse the repository at this point in the history
  • Loading branch information
edigaryev committed Apr 17, 2024
1 parent 403b194 commit 2cf2904
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions builder/tart/quiet_ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,18 @@ func (ui QuietUi) Ask(s string) (string, error) {
return ui.BaseUi.Ask(s)
}

func (ui QuietUi) Askf(s string, args ...any) (string, error) {
return ui.BaseUi.Askf(s)
}

func (ui QuietUi) Say(s string) {
// do nothing
}

func (ui QuietUi) Sayf(s string, a ...any) {
// do nothing
}

func (ui QuietUi) Message(s string) {
// do nothing
}
Expand All @@ -25,6 +33,10 @@ func (ui QuietUi) Error(s string) {
ui.BaseUi.Error(s)
}

func (ui QuietUi) Errorf(s string, args ...any) {
ui.BaseUi.Errorf(s, args...)
}

func (ui QuietUi) Machine(s string, s2 ...string) {
ui.BaseUi.Machine(s, s2...)
}
Expand Down

0 comments on commit 2cf2904

Please sign in to comment.