summaryrefslogtreecommitdiff
path: root/doList.go
diff options
context:
space:
mode:
Diffstat (limited to 'doList.go')
-rw-r--r--doList.go19
1 files changed, 10 insertions, 9 deletions
diff --git a/doList.go b/doList.go
index a7b2a17..beb6187 100644
--- a/doList.go
+++ b/doList.go
@@ -6,20 +6,21 @@ import (
)
func doList() error {
-
log.Infof("do list here. Patchsets.Len()=%d\n", me.forge.Patchsets.Len())
for pset := range me.forge.Patchsets.IterAll() {
pset.PrintTable()
}
- /*
- // show all the patchsets with Names
- for pset := range me.forge.Patchsets.IterAll() {
- log.Info("Info", pset.Name, pset.Uuid)
- for i, patch := range pset.Patches.Patches {
- log.Info("\t", i, patch.CommitHash, patch.Namespace)
- }
+ return nil
+}
+
+func doClean() error {
+ log.Infof("clean Patchsets.Len()=%d\n", me.forge.Patchsets.Len())
+ // show all the patchsets with Names
+ for pset := range me.forge.Patchsets.IterAll() {
+ for patch := range pset.Patches.IterAll() {
+ log.Info("\t", patch.CommitHash, patch.PatchId, patch.Namespace)
}
- */
+ }
return nil
}