Sha256: a8e7f6b8dee6b03289a86ae922bd7899fc8ece6cc24ece00e1c1f58785023601
Contents?: true
Size: 723 Bytes
Versions: 6
Compression:
Stored size: 723 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 synopsis "Show all members of an org." 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
6 entries across 6 versions & 1 rubygems