diff options
| author | Jeff Carr <[email protected]> | 2024-12-24 02:26:54 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-24 02:26:54 -0600 |
| commit | 2f7c1807a1e6fbc9c43c247c5374748ce0cecd79 (patch) | |
| tree | a094ef153f2152116c05e9ae207b498eab3b798c /main.go | |
| parent | 2b087365f68cb57a7dbebc29ac4f18bece9b554a (diff) | |
more cleanups
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 19 |
1 files changed, 12 insertions, 7 deletions
@@ -7,6 +7,7 @@ import ( "time" "go.wit.com/dev/alexflint/arg" + "go.wit.com/gui" "go.wit.com/lib/gui/shell" "go.wit.com/lib/protobuf/forgepb" "go.wit.com/lib/protobuf/gitpb" @@ -158,13 +159,17 @@ func main() { okExit("patches") } - // do the gui at the very end - if argv.DoGui { - doGui() - } - if !done { - // if nothing was selected, print out a table of them on STDOUT - doCobol() + // if the user doesn't want to open the GUI and + // nothing else was specified to be done, + // then just list the table to stdout + if gui.NoGui() { + if !done { + // if nothing was selected, print out a table of them on STDOUT + doCobol() + okExit("") + } } + // open the gui + doGui() okExit("") } |
