mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-04-30 16:03:37 -04:00
command + backend: rename various API objects to "Workspace" terminology
We're shifting terminology from "environment" to "workspace". This takes care of some of the main internal API surface that was using the old terminology, though is not intended to be entirely comprehensive and is mainly just to minimize the amount of confusion for maintainers as we continue moving towards eliminating the old terminology.
This commit is contained in:
@@ -47,10 +47,10 @@ func (c *WorkspaceCommand) Synopsis() string {
|
||||
return "Workspace management"
|
||||
}
|
||||
|
||||
// validEnvName returns true is this name is valid to use as a workspace name.
|
||||
// validWorkspaceName returns true is this name is valid to use as a workspace name.
|
||||
// Since most named states are accessed via a filesystem path or URL, check if
|
||||
// escaping the name would be required.
|
||||
func validEnvName(name string) bool {
|
||||
func validWorkspaceName(name string) bool {
|
||||
return name == url.PathEscape(name)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user