diff options
| author | demo <demo@antix1> | 2026-05-29 11:32:40 -0400 |
|---|---|---|
| committer | demo <demo@antix1> | 2026-05-29 11:32:40 -0400 |
| commit | 3e2e7a93446329913b315eea5eca1a350c2769e0 (patch) | |
| tree | 725cb355d4f3c87bd7a390065a4cb3a1bf35074b | |
| parent | b5ed390f1b8b63d5568f9f2d044a362e82344e80 (diff) | |
wip: dump raw taskType struct when listing tasks
| -rw-r--r-- | cmds.go | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 }) |
