code: func (cmd *TargetCommand) displayTargetTable(user configv3.User) {
  	table := [][]string{
  		{cmd.UI.TranslateText("api endpoint:"), cmd.Config.Target()},
  		{cmd.UI.TranslateText("api version:"), cmd.Actor.CloudControllerAPIVersion()},
  		{cmd.UI.TranslateText("user:"), user.Name},
  	}
  
  	if cmd.Config.HasTargetedOrganization() {
  		table = append(table, []string{
  			cmd.UI.TranslateText("org:"), cmd.Config.TargetedOrganization().Name,
  		})
  	}
  
  	if cmd.Config.HasTargetedSpace() {
  		table = append(table, []string{
  			cmd.UI.TranslateText("space:"), cmd.Config.TargetedSpace().Name,
  		})
  	}
  	cmd.UI.DisplayKeyValueTable("", table, 3)
  }
docs: // displayTargetTable neatly displays target information.