package main import ( "go.wit.com/lib/env" "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", env.Get("gopath")+"/go.work") shell.PathRun(env.Get("gopath"), []string{"mv", "go.work", "go.work.last"}) me.forge.MakeGoWork() shell.PathRun(env.Get("gopath"), []string{"go", "work", "use"}) log.Info("") log.Info("original go.work file saved as go.work.last") log.Info("") }