summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-21 08:32:59 -0600
committerJeff Carr <[email protected]>2024-02-21 08:32:59 -0600
commitdf0ff5af1cd92287f79c7033cde4d339e0d8b628 (patch)
tree9230b0b2cc4d4e776c0a91e50f36c6685f92a764 /structs.go
parent42c506c0982ea85d54443a39e4995c44060287df (diff)
purge code for the autotypist
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go63
1 files changed, 6 insertions, 57 deletions
diff --git a/structs.go b/structs.go
index 1e8a343..56391fb 100644
--- a/structs.go
+++ b/structs.go
@@ -5,22 +5,21 @@ import (
"go.wit.com/lib/gadgets"
)
-var me *autoType
+var me *mainType
-func (b *autoType) Disable() {
+func (b *mainType) Disable() {
b.mainbox.Disable()
}
-func (b *autoType) Enable() {
+func (b *mainType) Enable() {
b.mainbox.Enable()
}
// this app's variables
-type autoType struct {
- // allrepos map[string]*repo
+type mainType struct {
myGui *gui.Node
- autotypistWindow *gui.Node
+ mainWindow *gadgets.BasicWindow
// the main box. enable/disable this
mainbox *gui.Node
@@ -31,26 +30,10 @@ type autoType struct {
// our view of the repositories
repos *repoWindow
- // #### autotypist Global Display Options
+ // #### Sorting options for the repolist
autoHidePerfect *gui.Node
autoHideReadOnly *gui.Node
- // #### autotypist Global Build Options
- // what to change all the branches to
- // so, as a developer, you can move all the repos
- // to the 'devel' branch and then test a devel branch build
- // then switch back to your 'username' branch and do a build there
- toMoveToBranch string
-
- // this button will regenerate everyones go.mod & go.sum
- rerunGoMod *gui.Node
-
- // if checked, will stop trying to os.Exec() things after failure
- stopOnErrors *gui.Node
-
- // button to attempt to autorebuild
- autoRebuildButton *gui.Node
-
// checkbox for --dry-run
autoDryRun *gui.Node
@@ -64,19 +47,11 @@ type autoType struct {
// what is being used as ~/go/src
goSrcPwd *gadgets.OneLiner
- downloadEverythingButton *gui.Node
-
- // delete ~/go/src & ~/go/pkg buttons
- deleteGoSrcPkgB *gui.Node
-
// displays a summary of all the repos
// has total dirty, total read-only
// total patches, etc
summary *patchSummary
- // shows how long the scan went for
- duration *gui.Node
-
// when switch to user or devel branches, autocreate them
autoCreateBranches *gui.Node
@@ -85,29 +60,3 @@ type autoType struct {
newBranch *gui.Node
setBranchB *gui.Node
}
-
-/*
-type repo struct {
- hidden bool
- lasttagrev string
- lasttag string
- giturl string
-
- pLabel *gui.Node // path label
-
- lastTag *gui.Node // last tagged version label
- vLabel *gui.Node // version label
- dirtyLabel *gui.Node // git state (dirty or not?)
- goSumStatus *gui.Node // what is the state of the go.sum file
-
- masterVersion *gui.Node // the master branch version
- develVersion *gui.Node // the devel branch version
- userVersion *gui.Node // the user branch version
-
- endBox *gui.Node // a general box at the end of the row
- statusButton *gui.Node // opens up the status window
- diffButton *gui.Node // opens up the status window
-
- status *repostatus.RepoStatus
-}
-*/