mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-05-16 07:01:54 -04:00
25 lines
494 B
Go
25 lines
494 B
Go
// Copyright (c) The OpenTofu Authors
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
// Copyright (c) 2023 HashiCorp, Inc.
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
package remote
|
|
|
|
import (
|
|
"github.com/opentofu/opentofu/internal/backend"
|
|
)
|
|
|
|
// CLIInit implements backend.CLI
|
|
func (b *Remote) CLIInit(opts *backend.CLIOpts) error {
|
|
if cli, ok := b.local.(backend.CLI); ok {
|
|
if err := cli.CLIInit(opts); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
b.View = opts.View
|
|
b.ContextOpts = opts.ContextOpts
|
|
|
|
return nil
|
|
}
|