Sha256: e772dee1b73dd4d68f75d8c37819cc2716c4bf4e8d36b4b7f90c0d93335d94c0

Contents?: true

Size: 924 Bytes

Versions: 3

Compression:

Stored size: 924 Bytes

Contents

# frozen_string_literal: true

require "thor"

require_relative "../base"

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

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

          def run
            matching_apps = find_all_matching_apps(apps, :github, sandbox)
            matching_apps.each do |app|
              ui.info("\n \"#{label_name}\" label details from #{app}  \n")
              begin
                label_details = client.label(app, 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

3 entries across 3 versions & 1 rubygems

Version Path
neetob-0.1.2 lib/neetob/cli/github/labels/show.rb
neetob-0.1.1 lib/neetob/cli/github/labels/show.rb
neetob-0.1.0 lib/neetob/cli/github/labels/show.rb