# encoding: utf-8 module GithubCLI class Commands::Collaborators < Command namespace :collab desc 'list ', 'Lists collaborators' def list(user, repo) Collaborator.all user, repo, options[:params], options[:format] end desc 'add ', 'Add a collaborator' def add(user, repo, collab) Collaborator.add user, repo, collab, options[:params], options[:format] end desc '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 ', 'Remove a collaborator' def remove(user, repo, collab) Collaborator.remove user, repo, collab, options[:params], options[:format] end end # Collaborators end # GithubCLI