summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordemo <demo@antix1>2026-05-29 11:32:40 -0400
committerdemo <demo@antix1>2026-05-29 11:32:40 -0400
commit3e2e7a93446329913b315eea5eca1a350c2769e0 (patch)
tree725cb355d4f3c87bd7a390065a4cb3a1bf35074b
parentb5ed390f1b8b63d5568f9f2d044a362e82344e80 (diff)
wip: dump raw taskType struct when listing tasks
-rw-r--r--cmds.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/cmds.go b/cmds.go
index 233a08f..8ea1eff 100644
--- a/cmds.go
+++ b/cmds.go
@@ -71,8 +71,12 @@ func (ctrl controller) cmdList() error {
b.ForEach(func(k, v []byte) error {
index := binary.BigEndian.Uint64(k)
+ var tt taskType
+ if err := json.Unmarshal(v, &tt); err != nil {
+ return fmt.Errorf("can't unmarshal: %w", err)
+ }
- fmt.Printf("%d. %s\n", index, v)
+ fmt.Printf("%d. %#v\n", index, tt)
return nil
})