Sha256: 6c63bdaca72d4e930773593b73e3c43a8bfa8aa4f7b92d3950bfcbd515bcb2cb
Contents?: true
Size: 888 Bytes
Versions: 2
Compression:
Stored size: 888 Bytes
Contents
# encoding: utf-8 module GithubCLI class Commands::Collaborators < Command namespace :collab desc 'list <user> <repo>', 'Lists collaborators' def list(user, repo) Collaborator.all user, repo, options[:params], options[:format] end desc 'add <user> <repo> <collab>', 'Add a collaborator' def add(user, repo, collab) Collaborator.add user, repo, collab, options[:params], options[:format] end desc 'collab <user> <repo> <collab>', 'Checks if user is a collaborator on a given repo' def collab(user, repo, collab) Collaborator.collaborator? user, repo, collab, options[:params], options[:format] end desc 'remove <user> <repo> <id>', 'Remove a collaborator' def remove(user, repo, collab) Collaborator.remove user, repo, collab, options[:params]. options[:format] end end # Collaborators end # GithubCLI
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
github_cli-0.4.2 | lib/github_cli/commands/collaborators.rb |
github_cli-0.4.1 | lib/github_cli/commands/collaborators.rb |