mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-27 09:21:14 -06:00
cb2e9119aa
Signed-off-by: namgyalangmo <75657887+namgyalangmo@users.noreply.github.com>
22 lines
1.1 KiB
Go
22 lines
1.1 KiB
Go
// Copyright (c) The OpenTofu Authors
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
// Copyright (c) 2023 HashiCorp, Inc.
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
// Package workdir models the various local artifacts and state we keep inside
|
|
// a OpenTofu "working directory".
|
|
//
|
|
// The working directory artifacts and settings are typically initialized or
|
|
// modified by "tofu init", after which they persist for use by other
|
|
// commands in the same directory, but are not visible to commands run in
|
|
// other working directories or on other computers.
|
|
//
|
|
// Although "tofu init" is the main command which modifies a workdir,
|
|
// other commands do sometimes make more focused modifications for settings
|
|
// which can typically change multiple times during a session, such as the
|
|
// currently-selected workspace name. Any command which modifies the working
|
|
// directory settings must discard and reload any objects which derived from
|
|
// those settings, because otherwise the existing objects will often continue
|
|
// to follow the settings that were present when they were created.
|
|
package workdir
|