Sha256: 402c583fb7af2688329349366e1685e6e623a2207ddb9c5ad8738c38734a6c1f

Contents?: true

Size: 822 Bytes

Versions: 71

Compression:

Stored size: 822 Bytes

Contents

# frozen_string_literal: true

require "thor"

require_relative "../base"

module Neetob
  class CLI
    module Github
      module Labels
        class List < Base
          attr_accessor :repos, :sandbox

          def initialize(repos, sandbox = false)
            super()
            @repos = repos
            @sandbox = sandbox
          end

          def run
            matching_repos = find_all_matching_apps_or_repos(repos, :github, sandbox)
            matching_repos.each do |repo|
              ui.info("\n  Labels of #{repo}  \n")
              begin
                labels = client.labels(repo)
                ui.success(labels)
              rescue StandardError => e
                ExceptionHandler.new(e).process
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

71 entries across 71 versions & 1 rubygems

Version Path
neetob-0.5.29 lib/neetob/cli/github/labels/list.rb
neetob-0.5.28 lib/neetob/cli/github/labels/list.rb
neetob-0.5.27 lib/neetob/cli/github/labels/list.rb
neetob-0.5.26 lib/neetob/cli/github/labels/list.rb
neetob-0.5.25 lib/neetob/cli/github/labels/list.rb
neetob-0.5.24 lib/neetob/cli/github/labels/list.rb
neetob-0.5.23 lib/neetob/cli/github/labels/list.rb
neetob-0.5.22 lib/neetob/cli/github/labels/list.rb
neetob-0.5.21 lib/neetob/cli/github/labels/list.rb
neetob-0.5.20 lib/neetob/cli/github/labels/list.rb
neetob-0.5.19 lib/neetob/cli/github/labels/list.rb
neetob-0.5.18 lib/neetob/cli/github/labels/list.rb
neetob-0.5.17 lib/neetob/cli/github/labels/list.rb
neetob-0.5.16 lib/neetob/cli/github/labels/list.rb
neetob-0.5.15 lib/neetob/cli/github/labels/list.rb
neetob-0.5.14 lib/neetob/cli/github/labels/list.rb
neetob-0.5.13 lib/neetob/cli/github/labels/list.rb
neetob-0.5.12 lib/neetob/cli/github/labels/list.rb
neetob-0.5.11 lib/neetob/cli/github/labels/list.rb
neetob-0.5.10 lib/neetob/cli/github/labels/list.rb