21 lines
371 B
Go
21 lines
371 B
Go
|
package cloud
|
||
|
|
||
|
import (
|
||
|
"github.com/hashicorp/terraform/internal/backend"
|
||
|
)
|
||
|
|
||
|
// CLIInit implements backend.CLI
|
||
|
func (b *Cloud) CLIInit(opts *backend.CLIOpts) error {
|
||
|
if cli, ok := b.local.(backend.CLI); ok {
|
||
|
if err := cli.CLIInit(opts); err != nil {
|
||
|
return err
|
||
|
}
|
||
|
}
|
||
|
|
||
|
b.CLI = opts.CLI
|
||
|
b.CLIColor = opts.CLIColor
|
||
|
b.ContextOpts = opts.ContextOpts
|
||
|
|
||
|
return nil
|
||
|
}
|