diff options
| author | Jeff Carr <[email protected]> | 2025-10-08 01:25:40 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-08 01:25:40 -0500 |
| commit | 26fe7d72d7ad3e788c9596e835feb8c9ef41ed2d (patch) | |
| tree | f89ec1b1930bc2ae3a96ff1927f887f662d0fc31 | |
| parent | a14c24a581f2e8a38a8c37fc2b013962472c36ce (diff) | |
add memerable names
| -rw-r--r-- | tableBuild.go | 4 | ||||
| -rw-r--r-- | tableDefault.go | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/tableBuild.go b/tableBuild.go index 99f08cb..870a94e 100644 --- a/tableBuild.go +++ b/tableBuild.go @@ -10,8 +10,8 @@ import ( func (f *Forge) GetPackageVersion(repo *gitpb.Repo) string { var s string - s = repo.GetCurrentBranchVersion() - if repo.IsDirty() { + s = repo.GetUserVersion() + "s" + if repo.CheckDirty() { s += "-dirty" } return s diff --git a/tableDefault.go b/tableDefault.go index 39857c6..c3dba27 100644 --- a/tableDefault.go +++ b/tableDefault.go @@ -9,6 +9,9 @@ import ( ) // this is the default table layout for repos in forge +func (f *Forge) PrintTable(pb *gitpb.Repos) { + f.PrintDefaultTB(pb) +} func (f *Forge) PrintDefaultTB(pb *gitpb.Repos) { tablePB := f.makeDefaultTB(pb) |
