53 lines
1.4 KiB
Go
53 lines
1.4 KiB
Go
package main
|
|
|
|
import (
|
|
"go.wit.com/dev/alexflint/arg"
|
|
"go.wit.com/gui"
|
|
"go.wit.com/lib/gadgets"
|
|
"go.wit.com/lib/gui/prep"
|
|
"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
|
|
repo *gitpb.Repo // this is the repo we are in
|
|
myGui *prep.GuiPrep // the gui toolkit handle
|
|
}
|
|
|
|
type controlBox struct {
|
|
group *gui.Node // the group
|
|
grid *gui.Node // the grid
|
|
|
|
Package *gadgets.OneLiner
|
|
Source *gadgets.OneLiner
|
|
Version *gadgets.OneLiner
|
|
Maintainer *gadgets.OneLiner
|
|
Packager *gadgets.BasicEntry
|
|
GoPath *gadgets.BasicEntry
|
|
Namespace *gadgets.BasicEntry
|
|
URL *gadgets.BasicEntry
|
|
Architecture *gadgets.BasicDropdown
|
|
InstallPath *gadgets.BasicCombobox
|
|
Depends *gadgets.OneLiner
|
|
BuildDepends *gadgets.OneLiner
|
|
Recommends *gadgets.OneLiner
|
|
Conflicts *gadgets.BasicEntry
|
|
Test gui.Widget
|
|
Description *gadgets.OneLiner
|
|
|
|
// repostatus things
|
|
pathL *gadgets.OneLiner
|
|
lastTag *gadgets.OneLiner
|
|
dirtyL *gadgets.OneLiner
|
|
currentL *gadgets.OneLiner
|
|
buildDate *gadgets.OneLiner
|
|
tagDate *gadgets.BasicEntry
|
|
// status *repostatus.RepoStatus
|
|
}
|