summaryrefslogtreecommitdiff
path: root/configfile.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-03-01 18:03:17 -0600
committerJeff Carr <[email protected]>2024-03-01 18:03:17 -0600
commite3202ae1e997057702da62466ab8d61c53bca9ff (patch)
treec7e36d8b3b0d83312473f00399d56d1c82eb3a9a /configfile.go
parentca67fa6cd1ea401d6a7d1ab10b265b1d6f049acb (diff)
save config file location in repolist
Diffstat (limited to 'configfile.go')
-rw-r--r--configfile.go5
1 files changed, 5 insertions, 0 deletions
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
+}