Sha256: 0604a646ea1235146ac169d0b854409ff37f9b6315c49f52d4cbbb7ef3b1ece6

Contents?: true

Size: 1.19 KB

Versions: 6

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 a user/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.follower 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

6 entries across 6 versions & 1 rubygems

Version Path
github_cli-0.5.9 lib/github_cli/commands/followers.rb
github_cli-0.5.8 lib/github_cli/commands/followers.rb
github_cli-0.5.7 lib/github_cli/commands/followers.rb
github_cli-0.5.6 lib/github_cli/commands/followers.rb
github_cli-0.5.5 lib/github_cli/commands/followers.rb
github_cli-0.5.4 lib/github_cli/commands/followers.rb