Skip to content

kounosukexxx/taqque

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

taqque

What is taqque?

This is a task manegement tool using queues with priority concept.

Motivation

I want to complete tasks in FIFO order, so I created taqque to manage tasks.

Installation

go install github.com/kounosukexxx/taqque@latest

How to use

list tasks

taqque

push a task

taqque push {title}

pop a task

taqque pop

push a task with priority

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}

pop a task with priority

You can also pop a task specifing priority.

By default, a task with 1 priority is popped.

taqque pop {priority}

Demonstration

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 |
+-------+----------+-------+
+-------+----------+-------+

Future improvement plan

  • undo previous task
  • make other queues (We can use only one single queue now)
  • push and pop a task specifing index

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages