Documentation ¶
Index ¶
- Variables
- func DisableGoModReplaceDirectives(repoDir string, reposToReplace []string) error
- func EnableGoModReplaceDirectives(repoDir string, reposToReplace []string) error
- func Exec(binary string, params ...string) (*bytes.Buffer, *bytes.Buffer, error)
- func GetGoModInfo(repoDir string) (*modfile.File, error)
- func GoModTidy(repoDir string)
- func HasGoModFile(repoDir string) bool
- func IsPathGitRepo(path string) bool
- func PrintRepos(tag string, repos []Repo)
- func RegisterRepo(location string, tag string, repos []Repo)
- func RunCommand(repos []Repo, tag string, args ...string) error
- func RunGitCommand(repos []Repo, tag string, args ...string)
- func SetConfigFilePath()
- func TableStatus(repos []Repo, tag string, out io.Writer)
- func UnregisterRepo(path string, repos []Repo)
- func ValidTag(str string) bool
- type Repo
- type StdOutErr
- type VersionInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var ConfigDir = "/.config"
View Source
var ConfigFile = "/zg-repos.json"
Location of the config file under the $HOME dir
Functions ¶
func DisableGoModReplaceDirectives ¶ added in v0.3.0
func EnableGoModReplaceDirectives ¶ added in v0.3.0
func HasGoModFile ¶ added in v0.3.0
func IsPathGitRepo ¶ added in v0.3.0
func RegisterRepo ¶
Add a new repo to the list
func RunGitCommand ¶ added in v1.5.0
Run a git command across all repos with matching tag
Types ¶
type Repo ¶
type Repo struct { Name string `json:"name"` Location string `json:"location"` Tag string `json:"tag"` }
Repo struct
type VersionInfo ¶ added in v0.3.0
type VersionInfo struct { }
Click to show internal directories.
Click to hide internal directories.