summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-23 11:22:33 -0600
committerJeff Carr <[email protected]>2024-01-23 11:22:33 -0600
commitc408a7cca557f8e8933484cff20934564ec70d17 (patch)
treec6d02efe74f4dbe2b080189bf6d9ba44f1eefdf0 /structs.go
parentb4f1bf383600dd96491b13deb13fbed9e6be4cad (diff)
working towards global branch settings
repostatus improvements common branch handling scan all repos code cleanups check dirty before global delete go mod using a quieter gui smarter scripting Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go28
1 files changed, 17 insertions, 11 deletions
diff --git a/structs.go b/structs.go
index 077bba9..25d819e 100644
--- a/structs.go
+++ b/structs.go
@@ -13,10 +13,9 @@ var reposbox *gui.Node
var reposgrid *gui.Node
var reposgroup *gui.Node
-var me *repoType
+var me *autoType
-type repoType struct {
- script [][]string
+type autoType struct {
allrepos map[*repo]string
myGui *gui.Node
@@ -43,25 +42,34 @@ type repoType struct {
// if checked, will stop trying to os.Exec() things after failure
stopOnErrors *gui.Node
- autoRebuildButton *gui.Node // button to attempt to autorebuild
+ // button to attempt to autorebuild
+ autoRebuildButton *gui.Node
+
+ // checkbox for --dry-run
+ autoDryRun *gui.Node
+
+ // The current working directory
+ autoWorkingPwd *gadgets.OneLiner
+
+ downloadEverythingButton *gui.Node
}
+/*
var cmds *gui.Node
var doit *gui.Node
var dryrun *gui.Node
+*/
type repo struct {
hidden bool
path string
lasttagrev string
lasttag string
- // tags []string
pLabel *gui.Node // path label
// bLabel *gui.Node // branch label
- lastTag *gui.Node // last tagged version label
- vLabel *gui.Node // version label
- // tagsDrop *gui.Node // list of all tags
+ lastTag *gui.Node // last tagged version label
+ vLabel *gui.Node // version label
dirtyLabel *gui.Node // git state (dirty or not?)
// masterName *gui.Node // the master branch name
@@ -71,9 +79,7 @@ type repo struct {
// userName *gui.Node // the jcarr branch name
userVersion *gui.Node // the jcarr branch version
- cButton *gui.Node // commit button
- pButton *gui.Node // push button
- showButton *gui.Node // the button!
+ statusButton *gui.Node // opens up the status window
status *repostatus.RepoStatus
}