diff options
| author | Jeff Carr <[email protected]> | 2024-11-29 22:21:58 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-11-29 22:21:58 -0600 |
| commit | f7c9af9537fcd0f0e4c1559868b48966acc0c995 (patch) | |
| tree | 5e6175ae707193158ddb329e98a0617ac8df9b0d /main.go | |
| parent | 24e942df16754df52ad6a921a56f66eeca00e3b1 (diff) | |
compiles again. doesn't work
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 19 |
1 files changed, 4 insertions, 15 deletions
@@ -9,6 +9,7 @@ import ( "go.wit.com/gui" "go.wit.com/lib/gui/gowit" "go.wit.com/lib/gui/shell" + "go.wit.com/lib/protobuf/forgepb" "go.wit.com/log" ) @@ -23,16 +24,9 @@ func main() { me = new(autoType) // load the ~/.config/forge/ config - if err := me.forge.ConfigLoad(); err != nil { - log.Warn("forgepb.ConfigLoad() failed", err) - os.Exit(-1) - } - - // load the ~/.config/forge/ machine file from zoopb - if err := me.machine.ConfigLoad(); err != nil { - log.Warn("zoopb.ConfigLoad() failed", err) - os.Exit(-1) - } + me.forge = forgepb.Init() + me.forge.ConfigPrintTable() + os.Setenv("REPO_WORK_PATH", me.forge.GetGoSrc()) // parse the command line arg.MustParse(&myargs) @@ -111,10 +105,6 @@ func main() { me.release.box.Disable() me.Disable() - // parse config file and scan for .git repos - me.repos.initRepoList() - // setTargetVersion() - // register a Show/Hide function for the repo list table me.repos.View.RegisterHideFunction(hideFunction) @@ -122,7 +112,6 @@ func main() { // TODO: should not really be necessary directly after init() me.repos.View.ScanRepositories() - loop := me.repos.View.ReposSortByName() for loop.Scan() { repo := loop.Repo() |
