# 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