code: func (cmd *TargetCommand) setOrgAndSpace() error {
  	org, warnings, err := cmd.Actor.GetOrganizationByName(cmd.Organization)
  	cmd.UI.DisplayWarnings(warnings)
  	if err != nil {
  		return err
  	}
  
  	space, warnings, err := cmd.Actor.GetSpaceByOrganizationAndName(org.GUID, cmd.Space)
  	cmd.UI.DisplayWarnings(warnings)
  	if err != nil {
  		return err
  	}
  
  	cmd.Config.SetOrganizationInformation(org.GUID, cmd.Organization)
  	cmd.Config.SetSpaceInformation(space.GUID, space.Name, space.AllowSSH)
  
  	return nil
  }
docs: // setOrgAndSpace sets organization and space