summaryrefslogtreecommitdiff
path: root/structs.go
blob: 733fc8d4a3064749975da1dbf3e5a6fdfd293b18 (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
52
53
54
55
56
57
58
59
60
// watch all your go git repos
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 *autoType

type autoType struct {
	pp             *arg.Parser   // for parsing the command line args.  Yay to alexf lint!
	myGui          *gui.Node     // the gui handle itself
	releaseReasonS string        // = "gocui dropdown select"
	release        releaseStruct // notsure
	reposbox       *gui.Node     // notsure
	reposgrid      *gui.Node     // notsure
	reposgroup     *gui.Node     // notsure
	current        *gitpb.Repo   // tracks the next repo to publish
	found          *gitpb.Repos  // stores the list of repos to process things on
	done           []string      // gopaths for repos already published

	// this is the repo we are starting in
	// make sure it never changes so go.mod and go.sum are always there
	// 'go get' is called from here
	startRepo *gitpb.Repo

	// guireleaser window
	mainWindow *gadgets.BasicWindow
	mainBox    *gui.Node

	forge *forgepb.Forge // your customized repo preferences and settings

	// checkbox for --dry-run
	autoDryRun *gui.Node

	// checkbox for intermittent scanning
	scanEveryMinute *gui.Node

	// The current working directory
	autoWorkingPwd *gadgets.OneLiner

	// shows what directory being used as ~/go/src
	goSrcPwd *gadgets.OneLiner

	// button to download everything
	downloadEverythingButton *gui.Node

	// button to delete everythign ~/go/src & ~/go/pkg
	deleteGoSrcPkgB *gui.Node

	// button to set all repo branches to master
	setBranchesToMasterB *gui.Node

	// show the time it took to do a scan
	duration *gui.Node
}