Sha256: 3e00957a26848cf36387bf70cbb05d5a9b39ba1c8e86fc08f459f5346b1c2962
Contents?: true
Size: 531 Bytes
Versions: 1
Compression:
Stored size: 531 Bytes
Contents
# frozen_string_literal: true module GithubEventsExport # Entrypoint for CLI usage class CLI STATUS_SUCCESS = 0 STATUS_FAILURE = 1 def self.run(argv) new(Options.new(argv)).run end def initialize(options) @options = options end def run Export.new(client).run STATUS_SUCCESS end private attr_reader :options def client @client ||= ::Octokit::Client.new( access_token: options[:token], auto_paginate: true ) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
github_events_export-0.1.0 | lib/github_events_export/cli.rb |