utils

package
v0.1.16 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 License: MIT, MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloneRepository

func CloneRepository(clonePath string, repoFullName string, ghExec GitHubExec) error

CloneRepository attempts to clone a repository into the specified path. It returns an error if the cloning process fails.

Types

type GitHubExec

type GitHubExec func(args ...string) (stdout, stderr bytes.Buffer, err error)

This abstraction allows for easier testing and decoupling from the actual CLI. Exec invokes a gh command in a subprocess and captures the output and error streams.

Jump to

Keyboard shortcuts

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