2018-10-31 16:45:03 +01:00
|
|
|
package remote
|
|
|
|
|
|
|
|
import (
|
2021-05-17 17:42:17 +02:00
|
|
|
"github.com/hashicorp/terraform/internal/backend"
|
2018-10-31 16:45:03 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
// 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
|
|
|
|
}
|