Sha256: d421c7a175da552151981e3e92d6a3dc4cd95bacc3ab9e8a658656666ca2bfa4

Contents?: true

Size: 994 Bytes

Versions: 22

Compression:

Stored size: 994 Bytes

Contents

# frozen_string_literal: true

require "thor"

require_relative "../base"

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

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

          def run
            check_for_apps_and_all_neeto_repos_option(apps, all_neeto_repos)
            matching_apps = find_all_matching_apps(apps, :github, sandbox, false, all_neeto_repos)
            matching_apps.each do |app|
              ui.info("\n  Labels of #{app}  \n")
              begin
                labels = client.labels(app)
                ui.success(labels)
              rescue StandardError => e
                ExceptionHandler.new(e).process
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
neetob-ud-1.0.59 lib/neetob/cli/github/labels/list.rb
neetob-ud-0.2.8 lib/neetob/cli/github/labels/list.rb
neetob-ud-0.2.6 lib/neetob/cli/github/labels/list.rb
neetob-ud-0.2.4 lib/neetob/cli/github/labels/list.rb
neetob-ud-0.2.3 lib/neetob/cli/github/labels/list.rb
neetob-ud-0.2.2 lib/neetob/cli/github/labels/list.rb
neetob-ud-0.2.1 lib/neetob/cli/github/labels/list.rb
neetob-ud-0.2.0 lib/neetob/cli/github/labels/list.rb
neetob-ud-0.1.3 lib/neetob/cli/github/labels/list.rb
neetob-ud-0.1.2 lib/neetob/cli/github/labels/list.rb
neetob-ud-0.1.1 lib/neetob/cli/github/labels/list.rb
neetob-ud-0.1.0 lib/neetob/cli/github/labels/list.rb
neetob-0.2.2 lib/neetob/cli/github/labels/list.rb
neetob-0.2.1 lib/neetob/cli/github/labels/list.rb
neetob-0.2.0 lib/neetob/cli/github/labels/list.rb
neetob-0.1.5 lib/neetob/cli/github/labels/list.rb
neetob-ud-0.2.14 lib/neetob/cli/github/labels/list.rb
neetob-ud-0.2.13 lib/neetob/cli/github/labels/list.rb
neetob-0.1.4 lib/neetob/cli/github/labels/list.rb
neetob-ud-0.2.11 lib/neetob/cli/github/labels/list.rb