diff options
| author | Jeff Carr <[email protected]> | 2024-03-07 00:50:58 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-03-07 00:50:58 -0600 |
| commit | bf83739801829107c0245e738d6c4360b021504e (patch) | |
| tree | fa0f0a172d6e856f237232e6e4d37f866183d35c /main.go | |
blergv0.0.1
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 51 |
1 files changed, 51 insertions, 0 deletions
@@ -0,0 +1,51 @@ +package main + +import ( + "os" + "path/filepath" + + "go.wit.com/lib/gui/shell" + "go.wit.com/log" +) + +// This is the beginning of the binary tree of GUI widgets +// var myGui *gui.Node + +// this is a basic window. the user can open and close it +// var basicWindow *gadgets.BasicWindow + +func main() { + if args.Repo == "" { + log.Info("You need to tell me what repo you want to work on") + log.Info("") + log.Info("go-clone --repo go.wit.com/apps/helloworld") + os.Exit(0) + } + /* + if args.Gui == "" { + myGui = gui.New() + myGui.Default() + } + */ + + filepath := filepath.Join("/home/jcarr/go/src", args.Repo) + os.Chdir(filepath) + + shell.TestTerminalColor() + readControlFile() + os.Exit(0) + + /* + // run the debugger if triggered from the commandline + if debugger.ArgDebug() { + go func() { + log.Sleep(2) + debugger.DebugWindow() + }() + } + + // go will sit here until the window exits + gui.Watchdog() + os.Exit(0) + */ +} |
