summaryrefslogtreecommitdiff
path: root/humanBuildTable.go
diff options
context:
space:
mode:
Diffstat (limited to 'humanBuildTable.go')
-rw-r--r--humanBuildTable.go24
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
}