Sha256: 9c59f94bad7e2daf6651429ac6a3b138c134f57ccfde30d9f173a6d6d463d500
Contents?: true
Size: 1.12 KB
Versions: 6
Compression:
Stored size: 1.12 KB
Contents
# encoding: utf-8 module GithubCLI class Commands::Starring < Command namespace :star desc 'list <user> <repo>', 'Lists stargazers' def list(user, repo) Starring.list user, repo, options[:params], options[:format] end desc 'starred', 'Lists repos being starred by a user' method_option :user, :type => :string, :aliases => ["-u"], :desc => 'Starred repositories for <user>' def starred params = options[:params].dup if options[:user] params['user'] = options[:user] end Starring.starred params, options[:format] end desc 'starring <user> <repo>', 'Check if you are starring a repository' def starring(user, repo) Starring.starring? user, repo, options[:params], options[:format] end desc 'star <user> <repo>', 'Star a repository' def star(user, repo) Starring.star user, repo, options[:params], options[:format] end desc 'unstar <user> <repo>', 'Unstar a repository' def unstar(user, repo) Starring.unstar user, repo, options[:params], options[:format] end end # Starring end # GithubCLI
Version data entries
6 entries across 6 versions & 1 rubygems