From e3202ae1e997057702da62466ab8d61c53bca9ff Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 1 Mar 2024 18:03:17 -0600 Subject: [PATCH] save config file location in repolist --- configfile.go | 5 +++++ structs.go | 1 + 2 files changed, 6 insertions(+) diff --git a/configfile.go b/configfile.go index 78a1527..ee38327 100644 --- a/configfile.go +++ b/configfile.go @@ -12,6 +12,7 @@ import ( ) func (v *RepoList) InitRepoList(cfgfile string) { + v.cfgfile = cfgfile lines := parsecfg(cfgfile) for _, line := range lines { var repo *RepoRow @@ -184,3 +185,7 @@ func (rl *RepoList) ArgCheckoutUser() bool { log.Log(REPOWARN, "Ran git checkout in", count, "repos. failure count =", failed) return true } + +func (rl *RepoList) Cfgfile() string { + return rl.cfgfile +} diff --git a/structs.go b/structs.go index 356aeb8..b16c29c 100644 --- a/structs.go +++ b/structs.go @@ -21,6 +21,7 @@ type RepoList struct { goSrcPwd string allrepos map[string]*RepoRow viewName string + cfgfile string reposbox *gui.Node reposgrid *gui.Node