clone

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloneOrgRepositories

func CloneOrgRepositories(orgName, teamName, baseDestPath string) error

CloneOrgRepositories clones all repositories for the given organization.

func CloneRepositories

func CloneRepositories(repoURL, orgName, teamName, destPath string) error

CloneRepository clones a single repository from the given URL into the specified directory.

func CloneRepository

func CloneRepository(repo Repository, destPath string) error

CloneRepository clones a single repository from the given URL into the specified directory using SSH.

Types

type Repository

type Repository struct {
	Name   string `json:"name"`
	SSHURL string `json:"ssh_url"`
}

Repository represents a GitHub repository

func GetOrgRepositories

func GetOrgRepositories(orgName, teamName string) ([]Repository, error)

GetOrgRepositories fetches repositories for a given GitHub organization

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL