rm old code
This commit is contained in:
parent
e4a8fa53a7
commit
95598ea910
|
@ -17,30 +17,6 @@ func globalResetOptions(box *gui.Node) {
|
|||
|
||||
grid.NewButton("remake 'go.work' file", func() {
|
||||
me.repos.View.MakeGoWork()
|
||||
/*
|
||||
goSrcDir := me.goSrcPwd.String()
|
||||
filename := filepath.Join(goSrcDir, "go.work")
|
||||
|
||||
f, err := os.OpenFile(filename, os.O_WRONLY|os.O_CREATE, 0600)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
defer f.Close()
|
||||
fmt.Fprintln(f, "go 1.21.4")
|
||||
fmt.Fprintln(f, "")
|
||||
fmt.Fprintln(f, "use (")
|
||||
loop := me.repos.View.ReposSortByName()
|
||||
for loop.Scan() {
|
||||
repo := loop.Repo()
|
||||
if repo.Status.Exists("go.mod") {
|
||||
fmt.Fprintln(f, "\t"+repo.Status.GoPath())
|
||||
} else {
|
||||
log.Info("missing go.mod for", repo.Status.GoPath())
|
||||
// repo.Status.MakeRedomod()
|
||||
}
|
||||
}
|
||||
fmt.Fprintln(f, ")")
|
||||
*/
|
||||
})
|
||||
grid.NextRow()
|
||||
|
||||
|
|
Loading…
Reference in New Issue