# 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