This is a task manegement tool using queues with priority concept.
I want to complete tasks in FIFO order, so I created taqque to manage tasks.
go install github.com/kounosukexxx/taqque@latest
taqque
taqque push {title}
taqque pop
You can't set negative priority.
Tasks are listed in descending order of priority.
By default, a task is pushed with 1 priority.
taqque push {title} {priority}
You can also pop a task specifing priority.
By default, a task with 1 priority is popped.
taqque pop {priority}
taqque push assinmentA
+-------+----------+------------+
| INDEX | PRIORITY | TITLE |
+-------+----------+------------+
| 0 | 1.00 | assinmentA |
+-------+----------+------------+
taqque push assinmentB
+-------+----------+------------+
| INDEX | PRIORITY | TITLE |
+-------+----------+------------+
| 0 | 1.00 | assinmentA |
| 1 | 1.00 | assinmentB |
+-------+----------+------------+
taqque pop
+-------+----------+------------+
| INDEX | PRIORITY | TITLE |
+-------+----------+------------+
| 0 | 1.00 | assinmentB |
+-------+----------+------------+
taqque push high_priority_task 2
+-------+----------+--------------------+
| INDEX | PRIORITY | TITLE |
+-------+----------+--------------------+
| 0 | 2.00 | high_priority_task |
| 1 | 1.00 | assinmentB |
+-------+----------+--------------------+
taqque pop
+-------+----------+--------------------+
| INDEX | PRIORITY | TITLE |
+-------+----------+--------------------+
| 0 | 2.00 | high_priority_task |
+-------+----------+--------------------+
taqque pop 2
+-------+----------+-------+
| INDEX | PRIORITY | TITLE |
+-------+----------+-------+
+-------+----------+-------+
- undo previous task
- make other queues (We can use only one single queue now)
- push and pop a task specifing index