piotrmurach/github_cli

View on GitHub
lib/github_cli/apis/fork.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

require_relative '../api'

module GithubCLI
  class Fork
    extend API

    def self.all(user, repo, params, options)
      output options do
        github_api(options).repos.forks.list user, repo, params
      end
    end

    def self.create(user, repo, params, options)
      output options do
        github_api(options).repos.forks.create user, repo, params
      end
    end
  end # Fork
end # GithubCLI