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:
Martin Atkins
2017-05-30 17:13:43 -07:00
parent 33a266d61c
commit 418a8a8bc9
26 changed files with 96 additions and 95 deletions

View File

@@ -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)
}