code: func (m *Meta) WorkspaceOverridden() (string, bool) {
  	if envVar := os.Getenv(WorkspaceNameEnvVar); envVar != "" {
  		return envVar, true
  	}
  
  	envData, err := ioutil.ReadFile(filepath.Join(m.DataDir(), local.DefaultWorkspaceFile))
  	current := string(bytes.TrimSpace(envData))
  	if current == "" {
  		current = backend.DefaultStateName
  	}
  
  	if err != nil && !os.IsNotExist(err) {
  		// always return the default if we can't get a workspace name
  		log.Printf("[ERROR] failed to read current workspace: %s", err)
  	}
  
  	return current, false
  }
docs: // WorkspaceOverridden returns the name of the currently configured workspace,
  // corresponding to the desired named state, as well as a bool saying whether
  // this was set via the TF_WORKSPACE environment variable.