blob: fd8baebdffcc2f14d54e27f91db6900e94a2843e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
  | 
package main
import (
	"go.wit.com/lib/gui/shell"
	"go.wit.com/log"
)
func autoWork() {
	// remake the go.work file
	if !argv.AutoWork {
		return
	}
	log.Info("About to re-create", me.forge.Config.ReposDir+"/go.work")
	shell.PathRun(me.forge.Config.ReposDir, []string{"mv", "go.work", "go.work.last"})
	me.forge.MakeGoWork()
	shell.PathRun(me.forge.Config.ReposDir, []string{"go", "work", "use"})
	log.Info("")
	log.Info("original go.work file saved as go.work.last")
	log.Info("")
}
  |