code: func (cmd *TargetCommand) autoTargetSpace(orgGUID string) error {
  	spaces, warnings, err := cmd.Actor.GetOrganizationSpaces(orgGUID)
  	cmd.UI.DisplayWarnings(warnings)
  	if err != nil {
  		return err
  	}
  
  	if len(spaces) == 1 {
  		space := spaces[0]
  		cmd.Config.SetSpaceInformation(space.GUID, space.Name, space.AllowSSH)
  	}
  
  	return nil
  }
docs: // autoTargetSpace targets the space if there is only one space in the org
  // and no space arg was provided.