Sha256: 2a027b38e2b2271e53e2421a4ef5bc55984cafb3adda49e6487384f94db4bf1d

Contents?: true

Size: 308 Bytes

Versions: 5

Compression:

Stored size: 308 Bytes

Contents

# frozen_string_literal: true

module Geet
  module Services
    class ListIssues
      def execute(repository, output: $stdout)
        issues = repository.issues

        issues.each do |issue|
          output.puts "#{issue.number}. #{issue.title} (#{issue.link})"
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
geet-0.2.0 lib/geet/services/list_issues.rb
geet-0.1.12 lib/geet/services/list_issues.rb
geet-0.1.11 lib/geet/services/list_issues.rb
geet-0.1.10 lib/geet/services/list_issues.rb
geet-0.1.9 lib/geet/services/list_issues.rb