summaryrefslogtreecommitdiff
path: root/cmds.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmds.go')
-rw-r--r--cmds.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmds.go b/cmds.go
index 241897c..233a08f 100644
--- a/cmds.go
+++ b/cmds.go
@@ -70,7 +70,9 @@ func (ctrl controller) cmdList() error {
b := tx.Bucket([]byte(ctrl.tasksBucketName))
b.ForEach(func(k, v []byte) error {
- fmt.Printf("%s. %s\n", k, v)
+ index := binary.BigEndian.Uint64(k)
+
+ fmt.Printf("%d. %s\n", index, v)
return nil
})