2018-10-31 16:45:03 +01:00
|
|
|
package remote
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/hashicorp/terraform/backend"
|
|
|
|
)
|
|
|
|
|
|
|
|
// CLIInit implements backend.CLI
|
|
|
|
func (b *Remote) CLIInit(opts *backend.CLIOpts) error {
|
2018-11-15 20:26:46 +01:00
|
|
|
if cli, ok := b.local.(backend.CLI); ok {
|
|
|
|
if err := cli.CLIInit(opts); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-10-31 16:45:03 +01:00
|
|
|
b.CLI = opts.CLI
|
|
|
|
b.CLIColor = opts.CLIColor
|
|
|
|
b.ContextOpts = opts.ContextOpts
|
2018-11-15 20:26:46 +01:00
|
|
|
|
2018-10-31 16:45:03 +01:00
|
|
|
return nil
|
|
|
|
}
|