Sha256: ca4a81a4ca49eb415436558db1fc163a416f2c3175c36e3cbd0edc889b25eb33
Contents?: true
Size: 1.19 KB
Versions: 2
Compression:
Stored size: 1.19 KB
Contents
# encoding: utf-8 module GithubCLI class Commands::Followers < Command namespace :follower desc 'list', "Lists an authenticated user's followers" method_option :user, :type => :string, :aliases => ["-u"], :desc => 'List a <user> followers', :banner => '<user>' def list Follower.all options[:user], options[:params], options[:format] end desc 'following', 'List who the authenticated user is following' method_option :user, :type => :string, :aliases => ["-u"], :desc => 'List who a <user> is following', :banner => '<user>' def following Follower.following options[:user], options[:params], options[:format] end desc 'follower <user>', 'Check if you are following a user' def follower(user) Follower.following? user, options[:params], options[:format] end desc 'follow <user>', 'Follow a user' def follow(user) Follower.follow user, options[:params], options[:format] end desc 'unfollow <user>', 'Unfollow a user' def unfollow(user) Follower.unfollow user, options[:params], options[:format] end end # Followers end # GithubCLI
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
github_cli-0.4.2 | lib/github_cli/commands/followers.rb |
github_cli-0.4.1 | lib/github_cli/commands/followers.rb |