Sha256: 402c583fb7af2688329349366e1685e6e623a2207ddb9c5ad8738c38734a6c1f

Contents?: true

Size: 822 Bytes

Versions: 72

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

72 entries across 72 versions & 1 rubygems

Version Path
neetob-0.4.27 lib/neetob/cli/github/labels/list.rb
neetob-0.4.26 lib/neetob/cli/github/labels/list.rb
neetob-0.4.24 lib/neetob/cli/github/labels/list.rb
neetob-0.4.23 lib/neetob/cli/github/labels/list.rb
neetob-0.4.22 lib/neetob/cli/github/labels/list.rb
neetob-0.4.21 lib/neetob/cli/github/labels/list.rb
neetob-0.4.20 lib/neetob/cli/github/labels/list.rb
neetob-0.4.19 lib/neetob/cli/github/labels/list.rb
neetob-0.4.16 lib/neetob/cli/github/labels/list.rb
neetob-0.4.15 lib/neetob/cli/github/labels/list.rb
neetob-0.4.14 lib/neetob/cli/github/labels/list.rb
neetob-0.4.13 lib/neetob/cli/github/labels/list.rb
neetob-0.4.12 lib/neetob/cli/github/labels/list.rb
neetob-0.4.11 lib/neetob/cli/github/labels/list.rb
neetob-0.4.10 lib/neetob/cli/github/labels/list.rb
neetob-0.4.9 lib/neetob/cli/github/labels/list.rb
neetob-0.4.8 lib/neetob/cli/github/labels/list.rb
neetob-0.4.7 lib/neetob/cli/github/labels/list.rb
neetob-0.4.6 lib/neetob/cli/github/labels/list.rb
neetob-0.4.5 lib/neetob/cli/github/labels/list.rb