code: func (b *binary) LocalState() (*states.State, error) {
  	f, err := b.OpenFile("terraform.tfstate")
  	if err != nil {
  		return nil, err
  	}
  	defer f.Close()
  
  	stateFile, err := statefile.Read(f)
  	if err != nil {
  		return nil, fmt.Errorf("Error reading statefile: %s", err)
  	}
  	return stateFile.State, nil
  }
docs: // LocalState is a helper for easily reading the local backend's state file
  // terraform.tfstate from the working directory.