taqque

command module
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2023 License: MIT Imports: 5 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL