diff options
| author | Jeff Carr <[email protected]> | 2024-12-02 06:59:56 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-02 06:59:56 -0600 |
| commit | 3895519f25a603b6b75b54c0d9ad57b7128045ac (patch) | |
| tree | 0a0477f48af81bc54f804407b2925589e3303c1e /main.go | |
| parent | 8afc4c713576b3509e15942dfd3dae5e8b8b8906 (diff) | |
start developing this for real
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 30 |
1 files changed, 19 insertions, 11 deletions
@@ -3,25 +3,40 @@ package main // An app to submit patches for the 30 GO GUI repos import ( + "os" + + "go.wit.com/dev/alexflint/arg" "go.wit.com/lib/gadgets" + "go.wit.com/lib/protobuf/forgepb" "go.wit.com/log" "go.wit.com/gui" ) +// sent via -ldflags +var VERSION string +var BUILDTIME string + func main() { me = new(mainType) + me.pp = arg.MustParse(&argv) + + // load the ~/.config/forge/ config + me.forge = forgepb.Init() + os.Setenv("REPO_WORK_PATH", me.forge.GetGoSrc()) + + // processes any --list like options + // may exit + list() - me.myGui = gui.New().Default() + me.myGui = gui.New() + me.myGui.Default() me.mainWindow = gadgets.RawBasicWindow("submit & test patchsets") me.mainWindow.Make() me.mainWindow.Show() me.mainbox = me.mainWindow.Box() - vbox1 := me.mainbox.NewVerticalBox("BOX1") - globalDisplayOptions(vbox1) - // disable the interface while everything is scanned me.Disable() @@ -31,13 +46,6 @@ func main() { me.repos = makeRepoView() - // parse config file and scan for .git repos - me.repos.initRepoList() - - // reads in the State of all the repos - // TODO: should not really be necessary directly after init() - me.repos.View.ScanRepositories() - // processing is done. update the repo summary box me.summary.Update() |
