summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
})