github.com/terramate-io/tf@v0.0.0-20230830114523-fce866b4dfcd/command/workdir/doc.go (about) 1 // Copyright (c) HashiCorp, Inc. 2 // SPDX-License-Identifier: MPL-2.0 3 4 // Package workdir models the various local artifacts and state we keep inside 5 // a Terraform "working directory". 6 // 7 // The working directory artifacts and settings are typically initialized or 8 // modified by "terraform init", after which they persist for use by other 9 // commands in the same directory, but are not visible to commands run in 10 // other working directories or on other computers. 11 // 12 // Although "terraform init" is the main command which modifies a workdir, 13 // other commands do sometimes make more focused modifications for settings 14 // which can typically change multiple times during a session, such as the 15 // currently-selected workspace name. Any command which modifies the working 16 // directory settings must discard and reload any objects which derived from 17 // those settings, because otherwise the existing objects will often continue 18 // to follow the settings that were present when they were created. 19 package workdir