save config file location in repolist
This commit is contained in:
parent
ca67fa6cd1
commit
e3202ae1e9
|
@ -12,6 +12,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func (v *RepoList) InitRepoList(cfgfile string) {
|
func (v *RepoList) InitRepoList(cfgfile string) {
|
||||||
|
v.cfgfile = cfgfile
|
||||||
lines := parsecfg(cfgfile)
|
lines := parsecfg(cfgfile)
|
||||||
for _, line := range lines {
|
for _, line := range lines {
|
||||||
var repo *RepoRow
|
var repo *RepoRow
|
||||||
|
@ -184,3 +185,7 @@ func (rl *RepoList) ArgCheckoutUser() bool {
|
||||||
log.Log(REPOWARN, "Ran git checkout in", count, "repos. failure count =", failed)
|
log.Log(REPOWARN, "Ran git checkout in", count, "repos. failure count =", failed)
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (rl *RepoList) Cfgfile() string {
|
||||||
|
return rl.cfgfile
|
||||||
|
}
|
||||||
|
|
|
@ -21,6 +21,7 @@ type RepoList struct {
|
||||||
goSrcPwd string
|
goSrcPwd string
|
||||||
allrepos map[string]*RepoRow
|
allrepos map[string]*RepoRow
|
||||||
viewName string
|
viewName string
|
||||||
|
cfgfile string
|
||||||
|
|
||||||
reposbox *gui.Node
|
reposbox *gui.Node
|
||||||
reposgrid *gui.Node
|
reposgrid *gui.Node
|
||||||
|
|
Loading…
Reference in New Issue