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.5.10 lib/neetob/cli/github/labels/list.rb
neetob-0.5.9 lib/neetob/cli/github/labels/list.rb
neetob-0.5.8 lib/neetob/cli/github/labels/list.rb
neetob-0.5.7 lib/neetob/cli/github/labels/list.rb
neetob-0.5.6 lib/neetob/cli/github/labels/list.rb
neetob-0.5.5 lib/neetob/cli/github/labels/list.rb
neetob-0.5.4 lib/neetob/cli/github/labels/list.rb
neetob-0.5.3 lib/neetob/cli/github/labels/list.rb
neetob-0.5.2 lib/neetob/cli/github/labels/list.rb
neetob-0.5.1 lib/neetob/cli/github/labels/list.rb
neetob-0.5.0 lib/neetob/cli/github/labels/list.rb
neetob-0.4.37 lib/neetob/cli/github/labels/list.rb
neetob-0.4.36 lib/neetob/cli/github/labels/list.rb
neetob-0.4.35 lib/neetob/cli/github/labels/list.rb
neetob-0.4.34 lib/neetob/cli/github/labels/list.rb
neetob-0.4.33 lib/neetob/cli/github/labels/list.rb
neetob-0.4.32 lib/neetob/cli/github/labels/list.rb
neetob-0.4.31 lib/neetob/cli/github/labels/list.rb
neetob-0.4.30 lib/neetob/cli/github/labels/list.rb
neetob-0.4.28 lib/neetob/cli/github/labels/list.rb