summaryrefslogtreecommitdiff
path: root/structs.go
blob: c0b0c7db2c6fd38e9a4733e2ec32e70a5861d815 (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
package main

import (
	"go.wit.com/dev/alexflint/arg"
	"go.wit.com/gui"
	"go.wit.com/lib/gadgets"
	"go.wit.com/lib/protobuf/forgepb"
	"go.wit.com/lib/protobuf/gitpb"
)

var me *mainType

// this app's variables
type mainType struct {
	pp          *arg.Parser          // for parsing the command line args.  Yay to alexf lint!
	goSrc       string               // path to ~/go/src or go.work file
	goPath      string               // the goPath to use for the package
	hasWork     bool                 // true if using go.work file
	forge       *forgepb.Forge       // the interface to the 'forge' protobuf information
	repo        *gitpb.Repo          // this is the repo we are in
	myGui       *gui.Node            // the gui toolkit handle
	cBox        *controlBox          // the GUI box in the main window
	basicWindow *gadgets.BasicWindow // this is a basic window. the user can open and close it
}