diff options
| author | Jeff Carr <[email protected]> | 2025-09-11 15:26:29 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-11 15:26:29 -0500 |
| commit | 6acc0b4f8bd793ae394060981ff10c43eab0bed6 (patch) | |
| tree | 967be85c214f23b5a1fe11533944105d62d6906b | |
| parent | ec661807da8b201cd51e544aee59e8de21aeb0df (diff) | |
mv
| -rw-r--r-- | addRepo.go | 95 | ||||
| -rw-r--r-- | windowControlBox.go (renamed from stateWindow.go) | 0 |
2 files changed, 0 insertions, 95 deletions
diff --git a/addRepo.go b/addRepo.go deleted file mode 100644 index 4a954ad..0000000 --- a/addRepo.go +++ /dev/null @@ -1,95 +0,0 @@ -package main - -/* -func RemoveFirstElement(slice []string) (string, []string) { - if len(slice) == 0 { - return "", slice // Return the original slice if it's empty - } - return slice[0], slice[1:] // Return the slice without the first element -} - -// homeDir, _ := os.UserHomeDir() - -func (c *controlBox) addRepoOld() { - path := strings.Trim(me.goPath, "/") // trim any extranous '/' chars put in the config file by the user - if path == "" { - log.Warn("addRepo() got empty path", path) - return - } - - // if repostatus.VerifyLocalGoRepo(path) { - // log.Verbose("path actually exists", path) - // } else { - // log.Warn("repostatus.VerifyLocalGoRepo() failed for for", path) - // return - // } - - c.pathL = gadgets.NewOneLiner(c.grid, "path") - c.pathL.SetText(path) - c.grid.NextRow() - - c.lastTag = gadgets.NewOneLiner(c.grid, "lastTag") - c.grid.NextRow() - - c.dirtyL = gadgets.NewOneLiner(c.grid, "dirty") - c.grid.NextRow() - - c.currentL = gadgets.NewOneLiner(c.grid, "current") - c.grid.NextRow() - - c.buildDate = gadgets.NewOneLiner(c.grid, "Build Date") - c.grid.NextRow() - - stamp := time.Now().UTC().Format("2006/01/02 15:04:05 UTC") - c.buildDate.SetText(stamp) - - c.tagDate = gadgets.NewBasicEntry(c.grid, "git tag Date") - c.grid.NextRow() - - var cbname string - var cbversion string - var debversion string - - if me.repo == nil { - cbname = "todo" - cbversion = "todo version" - debversion = "todo deb version" - } else { - cbname = me.repo.GetCurrentBranchName() - cbversion = me.repo.GetCurrentBranchVersion() - debversion = me.repo.DebianCurrentVersion() - } - - if me.repo == nil { - c.dirtyL.SetText("unknown") - } else { - if me.repo.CheckDirty() { - c.dirtyL.SetText("true") - } else { - c.dirtyL.SetText("false") - } - } - - if c.GoPath.String() == "" { - c.GoPath.SetText(me.goPath) - } - - var lasttag string = "unknown" - if me.repo != nil { - lasttag = me.repo.GetLastTagVersion() - if argv.Release { - debversion = me.repo.DebianReleaseVersion() - c.dirtyL.SetText("false") - } - } - - c.Version.SetText(debversion) - - c.lastTag.SetText(lasttag) - c.currentL.SetText(cbname + " " + cbversion) - - tagDate := getDateStamp(lasttag) - c.tagDate.SetText(tagDate) - return -} -*/ diff --git a/stateWindow.go b/windowControlBox.go index c5637a2..c5637a2 100644 --- a/stateWindow.go +++ b/windowControlBox.go |
