summaryrefslogtreecommitdiff
path: root/doTag.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-14 05:50:23 -0500
committerJeff Carr <[email protected]>2025-09-14 05:50:23 -0500
commit0aafe6bb86bf159c4793872b222d9a38fbde799d (patch)
tree57033ed8b8d38a00700a5f1e9f19962d1a66c834 /doTag.go
parent03b8e58451950b22839ff7ef1f15784fa27b6bfe (diff)
make generic print table PB to STDOUT
Diffstat (limited to 'doTag.go')
-rw-r--r--doTag.go28
1 files changed, 13 insertions, 15 deletions
diff --git a/doTag.go b/doTag.go
index 7491ce4..22d3e16 100644
--- a/doTag.go
+++ b/doTag.go
@@ -24,14 +24,24 @@ func FindRepoByFullPath(wd string) *gitpb.Repo {
}
func doTag() error {
+ wd, _ := os.Getwd()
if argv.Tag.List != nil {
- log.Info("list tags here")
+ repo := FindRepoByFullPath(wd)
+ if repo == nil {
+ log.Info("Could not find repo:", wd)
+ return nil
+ }
+
+ tagTablePB := makeTagTablePB(repo.Tags)
+ // tbox := win.Bottom.Box().SetProgName("TBOX")
+ // t.SetParent(tbox)
+ tagTablePB.MakeTable()
+ tagTablePB.PrintTable()
+ log.Info("list tags here", repo.Namespace)
return nil
}
if argv.Tag.Delete != "" {
- wd, _ := os.Getwd()
-
repo := FindRepoByFullPath(wd)
if repo == nil {
log.Info("Could not find repo:", wd)
@@ -57,18 +67,6 @@ func doTag() error {
return nil
}
- ns := "go.wit.com/apps/forge"
- repo := me.forge.Repos.FindByNamespace(ns)
- if repo == nil {
- return log.Errorf("could not find %s", ns)
- }
-
- tagTablePB := makeTagTablePB(repo.Tags)
- // tbox := win.Bottom.Box().SetProgName("TBOX")
- // t.SetParent(tbox)
- tagTablePB.MakeTable()
- tagTablePB.PrintTable()
-
log.Info("do other tag stuff here")
return nil
}