diff options
| author | Jeff Carr <[email protected]> | 2024-12-15 08:45:44 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-15 08:45:44 -0600 |
| commit | b3bfa8915c1cc39bb36094829273d43621eb39ee (patch) | |
| tree | 4538664a91c049e4f523a4e9ec44cf7fe3062795 /work.go | |
| parent | 7cade75da86c346cd39ee37e85c066347cdaf274 (diff) | |
lots more code cleanups
Diffstat (limited to 'work.go')
| -rw-r--r-- | work.go | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -0,0 +1,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", forge.GetGoSrc()+"/go.work") + shell.PathRun(forge.GetGoSrc(), []string{"mv", "go.work", "go.work.last"}) + forge.MakeGoWork() + shell.PathRun(forge.GetGoSrc(), []string{"go", "work", "use"}) + log.Info("") + log.Info("original go.work file saved as go.work.last") + log.Info("") +} |
