From c408a7cca557f8e8933484cff20934564ec70d17 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 23 Jan 2024 11:22:33 -0600 Subject: 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 --- structs.go | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) (limited to 'structs.go') 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 } -- cgit v1.2.3