# File lib/rhc/commands/team.rb, line 62
    def list
      teams = rest_client.send(options.mine ? :owned_teams : :teams, {:include => "members"})

      teams.each do |t|
        display_team(t, true)
      end

      if options.mine
        success "You have #{pluralize(teams.length, 'team')}."
      else
        success "You are a member of #{pluralize(teams.length, 'team')}."
      end

      0
    end