# encoding: utf-8 module GithubCLI class Commands::Collaborators < Command namespace :collab desc 'list ', 'Lists collaborators' def list(owner, repo) Collaborator.all owner, repo, options[:params], options[:format] end desc 'add ', 'Add a collaborator' def add(owner, repo, user) Collaborator.add owner, repo, user, options[:params], options[:format] end desc 'collab ', 'Checks if user is a collaborator on a given repo' def collab(owner, repo, user) Collaborator.collaborator? owner, repo, user, options[:params], options[:format] end desc 'remove ', 'Remove a collaborator' def remove(owner, repo, user) Collaborator.remove owner, repo, user, options[:params], options[:format] end end # Collaborators end # GithubCLI