diff options
| author | Jeff Carr <[email protected]> | 2025-10-04 00:08:11 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-04 00:08:11 -0500 |
| commit | ce0986ee472f028d16076311992a6bc3e02fb528 (patch) | |
| tree | 58fd10a96371e752dd9a7582cfe7c5cf6e60d4c6 | |
| parent | 66d45bce6a2fff12ad9bc791db82cdda8062af29 (diff) | |
moved to 'wit' app for nowv0.0.161
| -rw-r--r-- | humanBuildTable.go | 24 |
1 files changed, 5 insertions, 19 deletions
diff --git a/humanBuildTable.go b/humanBuildTable.go index 6c2102e..99f08cb 100644 --- a/humanBuildTable.go +++ b/humanBuildTable.go @@ -6,7 +6,8 @@ import ( "go.wit.com/lib/protobuf/gitpb" ) -func (f *Forge) getPackageVersion(repo *gitpb.Repo) string { +// returns +func (f *Forge) GetPackageVersion(repo *gitpb.Repo) string { var s string s = repo.GetCurrentBranchVersion() @@ -16,7 +17,7 @@ func (f *Forge) getPackageVersion(repo *gitpb.Repo) string { return s } -func (f *Forge) getRepoType(repo *gitpb.Repo) string { +func (f *Forge) GetRepoType(repo *gitpb.Repo) string { var rtype string = repo.GetRepoType() switch rtype { case "binary": @@ -32,10 +33,6 @@ func (f *Forge) getRepoType(repo *gitpb.Repo) string { return rtype } -func (f *Forge) isInstalled(repo *gitpb.Repo) string { - return "X" -} - func (f *Forge) GetBuildBaseTB(pb *gitpb.Repos) *gitpb.ReposTable { t := pb.NewTable(".deb details") t.NewUuid() @@ -43,24 +40,13 @@ func (f *Forge) GetBuildBaseTB(pb *gitpb.Repos) *gitpb.ReposTable { var col *gitpb.RepoFunc col = t.AddStringFunc("Build Version", func(r *gitpb.Repo) string { - return f.getPackageVersion(r) + return f.GetPackageVersion(r) }) col.Width = 24 - col = t.AddState() - col.Width = 32 - col = t.AddStringFunc("RepoType", func(r *gitpb.Repo) string { - return f.getRepoType(r) + return f.GetRepoType(r) }) col.Width = 8 - - col = t.AddStringFunc("I", func(r *gitpb.Repo) string { - return f.isInstalled(r) - }) - col.Width = 2 - - col = t.AddNamespace() - col.Width = 22 return t } |
