summaryrefslogtreecommitdiff
path: root/doList.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-07 20:34:08 -0500
committerJeff Carr <[email protected]>2025-09-07 21:41:26 -0500
commita099bbd3e656ac2d0cf1db656f08d91c673db437 (patch)
tree43a5c6e3902d85a73ecc5cadba281c6dafaa0b8c /doList.go
parentc2e0e8e80b5831996da38efbfaa4bb206875bf40 (diff)
add support for old version of the tool using new code
Diffstat (limited to 'doList.go')
-rw-r--r--doList.go17
1 files changed, 3 insertions, 14 deletions
diff --git a/doList.go b/doList.go
index 382c083..09068cc 100644
--- a/doList.go
+++ b/doList.go
@@ -8,23 +8,12 @@ import (
func doList() error {
log.Info("do list here")
- if err := me.forge.LoadPatchsets(); err != nil {
- badExit(err)
- }
-
- // first show the general patchset protobuf
- for pb := range me.forge.Patchsets.IterAll() {
- if pb.Name == "forge auto commit" {
- pb.ShowPatchsets()
- }
- }
-
// show all the patchsets with Names
for pset := range me.forge.Patchsets.IterAll() {
- if pset.Name == "forge auto commit" {
- continue
+ log.Info("Info", pset.Name, pset.Uuid)
+ for i, patch := range pset.Patches.Patches {
+ log.Info("\t", i, patch.CommitHash, patch.Namespace)
}
- pset.ShowPatchsets()
}
return nil
}