Sha256: 9d94634d32262b2ec2385ab56465006a276c60c8465eafe87fde2100531d82ff

Contents?: true

Size: 943 Bytes

Versions: 58

Compression:

Stored size: 943 Bytes

Contents

# frozen_string_literal: true

require "thor"

require_relative "../base"

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

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

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

Version data entries

58 entries across 58 versions & 1 rubygems

Version Path
neetob-0.5.16 lib/neetob/cli/github/labels/show.rb
neetob-0.5.15 lib/neetob/cli/github/labels/show.rb
neetob-0.5.14 lib/neetob/cli/github/labels/show.rb
neetob-0.5.13 lib/neetob/cli/github/labels/show.rb
neetob-0.5.12 lib/neetob/cli/github/labels/show.rb
neetob-0.5.11 lib/neetob/cli/github/labels/show.rb
neetob-0.5.10 lib/neetob/cli/github/labels/show.rb
neetob-0.5.9 lib/neetob/cli/github/labels/show.rb
neetob-0.5.8 lib/neetob/cli/github/labels/show.rb
neetob-0.5.7 lib/neetob/cli/github/labels/show.rb
neetob-0.5.6 lib/neetob/cli/github/labels/show.rb
neetob-0.5.5 lib/neetob/cli/github/labels/show.rb
neetob-0.5.4 lib/neetob/cli/github/labels/show.rb
neetob-0.5.3 lib/neetob/cli/github/labels/show.rb
neetob-0.5.2 lib/neetob/cli/github/labels/show.rb
neetob-0.5.1 lib/neetob/cli/github/labels/show.rb
neetob-0.5.0 lib/neetob/cli/github/labels/show.rb
neetob-0.4.37 lib/neetob/cli/github/labels/show.rb
neetob-0.4.36 lib/neetob/cli/github/labels/show.rb
neetob-0.4.35 lib/neetob/cli/github/labels/show.rb