doc: update with stuff produced by the tool
This commit is contained in:
99
README.md
99
README.md
@@ -1,92 +1,87 @@
|
|||||||
# GOTASK
|
# GOTASK
|
||||||
|
|
||||||
Tiny project aiming at creating a CLI task tracker in Golang
|
Tiny project aiming to create a CLI task tracker in Golang
|
||||||
|
|
||||||
## Purpose
|
## Purpose
|
||||||
|
|
||||||
1. Practice Golang
|
1. Practice Golang
|
||||||
1. Keep track of tasks
|
1. Keep track of tasks
|
||||||
|
|
||||||
## Roadmap
|
|
||||||
1. ~~Add~~
|
|
||||||
2. ~~List all~~
|
|
||||||
3. Progress
|
|
||||||
4. Regress
|
|
||||||
5. List by
|
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
### Add tasks
|
### Add tasks
|
||||||
```console
|
```console
|
||||||
[user@host]$ gotask add "Publish code"
|
[user@host]$ gotask-cli add "Publish code"
|
||||||
New task "Publish code" added to do @ id=4
|
New task "Publish code" added to do @ id=4
|
||||||
```
|
```
|
||||||
|
|
||||||
### List all tasks
|
### List all tasks
|
||||||
```console
|
```console
|
||||||
[user@host]$ gotask list
|
[user@host]$ gotask-cli list
|
||||||
+---------------------------------------------------------------------+
|
+----+--------------+--------+---------------------+---------+
|
||||||
|id| Description | Status | Created | Updated |
|
| ID | DESCRIPTION | STATUS | CREATED | UPDATED |
|
||||||
|--|--------------|-------------|------------------|------------------|
|
+----+--------------+--------+---------------------+---------+
|
||||||
| 1| Update doc | todo | 01-03-2026 09:23 | | # Never updated
|
| 1 | Update doc | todo | 2026-04-03 22:34:40 | |
|
||||||
| 2| Write code | doing | 04-03-2026 10:13 | 05-03-2026 17:45 | # Set in progress at UpdateAt
|
| 2 | Write code | todo | 2026-04-03 22:38:26 | |
|
||||||
| 3| Write tests | done | 05-03-2026 11:34 | 01-04-2026 19:43 | # Done at UpdateAt
|
| 3 | Write tests | todo | 2026-04-03 22:38:45 | |
|
||||||
| 4| Publish code | todo | 01-04-2026 09:13 | |
|
| 4 | Publish code | todo | 2026-04-03 22:38:56 | |
|
||||||
+---------------------------------------------------------------------+
|
+----+--------------+--------+---------------------+---------+
|
||||||
```
|
```
|
||||||
|
|
||||||
### Mark progress
|
### Mark progress
|
||||||
```console
|
```console
|
||||||
[user@host]$ gotask progress 4
|
[user@host]$ gotask-cli progress 4
|
||||||
[todo] task "Publish code" progress to [doing]
|
[todo] task "Publish code" progress to [doing]
|
||||||
```
|
```
|
||||||
|
|
||||||
### List tasks by status
|
### List tasks by status
|
||||||
```console
|
```console
|
||||||
[user@host]$ gotask list doing
|
[user@host]$ gotask-cli list doing
|
||||||
+---------------------------------------------------------------------+
|
+----+--------------+--------+---------------------+---------------------+
|
||||||
|id| Description | Status | Created | Updated |
|
| ID | DESCRIPTION | STATUS | CREATED | UPDATED |
|
||||||
|--|--------------|-------------|------------------|------------------|
|
+----+--------------+--------+---------------------+---------------------+
|
||||||
| 2| Write code | doing | 04-03-2026 10:13 | 05-03-2026 17:45 |
|
| 4 | Publish code | doing | 2026-04-03 22:38:56 | 2026-04-03 22:44:36 |
|
||||||
| 4| Publish code | doing | 01-04-2026 09:13 | 01-04-2026 10:30 |
|
+----+--------------+--------+---------------------+---------------------+
|
||||||
+---------------------------------------------------------------------+
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Mark regress
|
### Mark regress
|
||||||
```console
|
```console
|
||||||
[user@host]$ gotask regress 4
|
[user@host]$ gotask-cli regress 4
|
||||||
[doing] task "Publish code" regress to [todo]
|
[doing] task "Publish code" regress to [todo]
|
||||||
```
|
```
|
||||||
|
|
||||||
### List task by id
|
|
||||||
```console
|
|
||||||
[user@host]$ gotask list 4
|
|
||||||
+---------------------------------------------------------------------+
|
|
||||||
|id| Description | Status | Created | Updated |
|
|
||||||
|--|--------------|-------------|------------------|------------------|
|
|
||||||
| 4| Publish code | todo | 01-04-2026 09:13 | 01-04-2026 10:33 |
|
|
||||||
+---------------------------------------------------------------------+
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
## Storing data
|
## Storing data
|
||||||
For convenience reasons, the data will be stored in a JSON file with the following structure.
|
For convenience reasons, the data will be stored in a JSON file with the following structure.
|
||||||
|
|
||||||
```json
|
```json
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"id": 1,
|
"Id": 1,
|
||||||
"Description": "Update doc",
|
"Description": "Update doc",
|
||||||
"Status": 0,
|
"Status": 0,
|
||||||
"Created": 1772353380,
|
"Created": 1775248480,
|
||||||
"UpdatedAt": -1
|
"Updated": -1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 2,
|
"Id": 2,
|
||||||
"Description": "Write code",
|
"Description": "Write code",
|
||||||
"Status": 1,
|
"Status": 0,
|
||||||
"Created": 1772615580,
|
"Created": 1775248706,
|
||||||
"UpdatedAt": 1772729100
|
"Updated": -1
|
||||||
}
|
},
|
||||||
|
{
|
||||||
|
"Id": 3,
|
||||||
|
"Description": "Write tests",
|
||||||
|
"Status": 0,
|
||||||
|
"Created": 1775248725,
|
||||||
|
"Updated": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Id": 4,
|
||||||
|
"Description": "Publish code",
|
||||||
|
"Status": 0,
|
||||||
|
"Created": 1775248736,
|
||||||
|
"Updated": 1775249113
|
||||||
|
}
|
||||||
]
|
]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user