diff options
| author | Jeff Carr <[email protected]> | 2024-02-13 13:50:19 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-02-13 13:50:19 -0600 |
| commit | 0ef88b82d17055cf579a3fc42f4188655ab68bed (patch) | |
| tree | 45d6b889e9373294456a8055e46ecdb5d0a925f2 /globalDisplayOptions.go | |
| parent | e4c3aafb7b48ee44b677ee6e5d244ad85aecf985 (diff) | |
add a submit button
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'globalDisplayOptions.go')
| -rw-r--r-- | globalDisplayOptions.go | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/globalDisplayOptions.go b/globalDisplayOptions.go index 884a989..c41ddc0 100644 --- a/globalDisplayOptions.go +++ b/globalDisplayOptions.go @@ -1,15 +1,10 @@ package main import ( - "fmt" - "os" - "path/filepath" - "go.wit.com/gui" "go.wit.com/lib/debugger" "go.wit.com/lib/gui/gowit" "go.wit.com/lib/gui/logsettings" - "go.wit.com/log" ) func globalDisplaySetRepoState() { @@ -73,33 +68,6 @@ func globalDisplayOptions(vbox *gui.Node) { } me.scanEveryMinute = group1.NewCheckbox("Scan every minute").SetChecked(false) - group1.NewButton("make go.work file", func() { - me.autotypistWindow.Disable() - - 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 (") - for _, repo := range me.allrepos { - if repo.status.Exists("go.mod") { - fmt.Fprintln(f, "\t"+repo.String()) - } else { - log.Info("missing go.mod for", repo.String()) - repo.status.MakeRedomod() - } - } - fmt.Fprintln(f, ")") - - me.autotypistWindow.Enable() - }) - var tagsW *tagWindow group1.NewButton("git tags Window", func() { if tagsW == nil { |
