Sha256: ac2108be205794f0cb6ba9cf9b8fe49c8060ad6cbc0cd38d41fbbf0adfc65d0f
Contents?: true
Size: 681 Bytes
Versions: 5
Compression:
Stored size: 681 Bytes
Contents
#!/usr/bin/env ruby require "bundler/inline" gemfile do source "https://rubygems.org" gem "multi_repo", require: "multi_repo/cli", path: File.expand_path("..", __dir__) end opts = Optimist.options do opt :org, "The org to list the users for", :type => :string, :required => true opt :team, "Show members of a specific team", :type => :string opt :alumni, "Whether or not to include alumni", :default => false end github = MultiRepo::Service::Github.new members = opts[:team] ? github.team_member_names(opts[:org], opts[:team]) : github.org_member_names(opts[:org]) members -= github.team_member_names(opts[:org], "alumni") unless opts[:alumni] puts members
Version data entries
5 entries across 5 versions & 1 rubygems