command: set UIOutput
This commit is contained in:
parent
02d01141ca
commit
6d9463bfa8
|
@ -143,6 +143,10 @@ func (m *Meta) contextOpts() *terraform.ContextOpts {
|
|||
}
|
||||
opts.Variables = vs
|
||||
opts.UIInput = m.UIInput()
|
||||
opts.UIOutput = &UIOutput{
|
||||
Colorize: m.Colorize(),
|
||||
Ui: m.Ui,
|
||||
}
|
||||
|
||||
return &opts
|
||||
}
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
package command
|
||||
|
||||
import (
|
||||
"github.com/mitchellh/cli"
|
||||
"github.com/mitchellh/colorstring"
|
||||
)
|
||||
|
||||
// UIOutput is an implementation of terraform.UIOutput.
|
||||
type UIOutput struct {
|
||||
Colorize *colorstring.Colorize
|
||||
Ui cli.Ui
|
||||
}
|
||||
|
||||
func (u *UIOutput) Output(v string) {
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
package command
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/hashicorp/terraform/terraform"
|
||||
)
|
||||
|
||||
func TestUIOutput_impl(t *testing.T) {
|
||||
var _ terraform.UIOutput = new(UIOutput)
|
||||
}
|
Loading…
Reference in New Issue