Documentation ¶
Index ¶
- func ConfigPath(args []string)
- func ConfigToken(args []string)
- func DownloadFile(filePath string, url string) error
- func DumpOrganizationRepositories(args []string) error
- func DumpPrivateRepositories(args []string) error
- func DumpPublicRepositories(args []string)
- func GetOrganizationRepository(args []string) error
- func GetPrivateRepository(args []string) error
- func GetPublicRepository(args []string)
- func GitLogin() (context.Context, *github.Client)
- func ListOrganizationRepositories(args []string) error
- func ListOrganizations(args []string) error
- func ListPrivateRepositories() error
- func ListPublicRepositories(args []string)
- func MakeDir(entity string) (string, error)
- type ApiResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigPath ¶ added in v0.2.0
func ConfigPath(args []string)
ConfigPath sets the download path in the configuration and logs the action.
func ConfigToken ¶ added in v0.2.0
func ConfigToken(args []string)
ConfigToken sets the GitHub token in the configuration and logs the action.
func DownloadFile ¶
DownloadFile downloads a file from a given URL and saves it to the specified filepath.
func DumpOrganizationRepositories ¶
DumpOrganizationRepositories downloads the zipballs of all repositories in an organization.
func DumpPrivateRepositories ¶
DumpPrivateRepositories downloads the zipballs of all private repositories for the authenticated user.
func DumpPublicRepositories ¶
func DumpPublicRepositories(args []string)
DumpPublicRepositories downloads the zipballs of all public repositories for a GitHub user.
func GetOrganizationRepository ¶
GetOrganizationRepository downloads the zipball of a specific repository in an organization.
func GetPrivateRepository ¶
GetPrivateRepository downloads the zipball of a specific private repository.
func GetPublicRepository ¶
func GetPublicRepository(args []string)
GetPublicRepository downloads the zipball of a specific public repository for a GitHub user.
func GitLogin ¶
GitLogin authenticates with GitHub using the provided token. It returns a context and a GitHub client.
func ListOrganizationRepositories ¶
ListOrganizationRepositories fetches and logs a list of repositories for a GitHub organization.
func ListOrganizations ¶
ListOrganizations fetches and logs a list of GitHub organizations.
func ListPrivateRepositories ¶
func ListPrivateRepositories() error
ListPrivateRepositories fetches and logs a list of private repositories for the authenticated user.
func ListPublicRepositories ¶
func ListPublicRepositories(args []string)
ListPublicRepositories fetches and logs a list of public repositories for a GitHub user.