blob: 1d462e2b0a7e4711cbf931179a675d81a2987342 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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)
*/
}
|