Sha256: da982733ff34fbd06ad01116c5903c95ada24062bb98d1a2d54ef1985b987f34

Contents?: true

Size: 890 Bytes

Versions: 3

Compression:

Stored size: 890 Bytes

Contents

# encoding: utf-8

module GithubCLI
  class Commands::Assignees < Command

    namespace :assignee

    desc 'list <user> <repo>', 'Lists all the available assignees'
    long_desc <<-DESC
      Lists all the available assignees (owner + collaborators) to which issues may be assigned
    DESC
    def list(user, repo)
      global_options = options.dup
      params = options[:params].dup
      Util.hash_without!(global_options, params.keys + ['params'])
      Assignee.all user, repo, params, global_options
    end

    desc 'check <user> <repo> <assignee>', 'Check if <assignee> is assigned to <repo>'
    def check(user, repo, assignee)
      global_options = options.dup
      params = options[:params].dup
      Util.hash_without!(global_options, params.keys + ['params'])
      Assignee.check user, repo, assignee, params, global_options
    end

  end # Assignees
end # GithubCLI

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
github_cli-0.6.2 lib/github_cli/commands/assignees.rb
github_cli-0.6.1 lib/github_cli/commands/assignees.rb
github_cli-0.6.0 lib/github_cli/commands/assignees.rb