diff options
| author | Jeff Carr <[email protected]> | 2024-01-19 18:37:27 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-19 18:37:27 -0600 |
| commit | db36cef85a81d1978f5fe1d3bf46698547afd088 (patch) | |
| tree | 92bea64224a34cc00a22f73d67ebcc3cb32a1d70 /repolist.go | |
| parent | fa56bf146b80c84eea6f7cd46a589634a69aabef (diff) | |
more more into repostatus package
better working labels
autotypist auto hides
hide unmodified repos works again
go build args out of order
download the toolkits
first auto rebuild of autotypist
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'repolist.go')
| -rw-r--r-- | repolist.go | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/repolist.go b/repolist.go index 170627e..0f46f86 100644 --- a/repolist.go +++ b/repolist.go @@ -40,3 +40,39 @@ func myrepolist() []string { lines := strings.Split(out, "\n") return lines } + +func (r *repo) Hide() { + r.pLabel.Hide() + r.pButton.Hide() + r.cButton.Hide() + r.lastTag.Hide() + r.vLabel.Hide() + + r.masterName.Hide() + r.masterVersion.Hide() + r.develName.Hide() + r.develVersion.Hide() + r.userName.Hide() + r.userVersion.Hide() + r.dirtyLabel.Hide() + r.showButton.Hide() + r.hidden = true +} + +func (r *repo) Show() { + r.pLabel.Show() + r.pButton.Show() + r.cButton.Show() + r.lastTag.Show() + r.vLabel.Show() + + r.masterName.Show() + r.masterVersion.Show() + r.develName.Show() + r.develVersion.Show() + r.userName.Show() + r.userVersion.Show() + r.dirtyLabel.Show() + r.showButton.Show() + r.hidden = false +} |
