docs: update
This commit is contained in:
55
README.md
55
README.md
@@ -18,14 +18,14 @@ Tiny project aiming at creating a CLI task tracker in Golang
|
|||||||
### Add tasks
|
### Add tasks
|
||||||
```console
|
```console
|
||||||
[user@host]$ gotask add "Publish code"
|
[user@host]$ gotask add "Publish code"
|
||||||
New task 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 list
|
||||||
+---------------------------------------------------------------------+
|
+---------------------------------------------------------------------+
|
||||||
|id| Description | Status | CreatedAt | UpdatedAt |
|
|id| Description | Status | Created | Updated |
|
||||||
|--|--------------|-------------|------------------|------------------|
|
|--|--------------|-------------|------------------|------------------|
|
||||||
| 1| Update doc | todo | 01-03-2026 09:23 | | # Never updated
|
| 1| Update doc | todo | 01-03-2026 09:23 | | # Never updated
|
||||||
| 2| Write code | doing | 04-03-2026 10:13 | 05-03-2026 17:45 | # Set in progress at UpdateAt
|
| 2| Write code | doing | 04-03-2026 10:13 | 05-03-2026 17:45 | # Set in progress at UpdateAt
|
||||||
@@ -44,7 +44,7 @@ New task added to do @ id=4
|
|||||||
```console
|
```console
|
||||||
[user@host]$ gotask list doing
|
[user@host]$ gotask list doing
|
||||||
+---------------------------------------------------------------------+
|
+---------------------------------------------------------------------+
|
||||||
|id| Description | Status | CreatedAt | UpdatedAt |
|
|id| Description | Status | Created | Updated |
|
||||||
|--|--------------|-------------|------------------|------------------|
|
|--|--------------|-------------|------------------|------------------|
|
||||||
| 2| Write code | doing | 04-03-2026 10:13 | 05-03-2026 17:45 |
|
| 2| Write code | doing | 04-03-2026 10:13 | 05-03-2026 17:45 |
|
||||||
| 4| Publish code | doing | 01-04-2026 09:13 | 01-04-2026 10:30 |
|
| 4| Publish code | doing | 01-04-2026 09:13 | 01-04-2026 10:30 |
|
||||||
@@ -52,31 +52,42 @@ New task added to do @ id=4
|
|||||||
```
|
```
|
||||||
|
|
||||||
### Mark regress
|
### Mark regress
|
||||||
```copnsole
|
```console
|
||||||
[user@host]$ gotask regress 4
|
[user@host]$ gotask 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 | doing | 01-04-2026 09:13 | 01-04-2026 10:30 |
|
||||||
|
+---------------------------------------------------------------------+
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
## 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
|
||||||
{
|
[
|
||||||
"tasks": [
|
{
|
||||||
{
|
"id": 1,
|
||||||
"id": 1,
|
"Description": "Update doc",
|
||||||
"Description": "Update doc",
|
"Status": 0,
|
||||||
"Status": "todo",
|
"Created": 1772353380,
|
||||||
"CreatedAt": 1772353380,
|
"UpdatedAt": -1
|
||||||
"UpdatedAt": -1
|
},
|
||||||
},
|
{
|
||||||
{
|
"id": 2,
|
||||||
"id": 2,
|
"Description": "Write code",
|
||||||
"Description": "Write code",
|
"Status": 1,
|
||||||
"Status": "doing",
|
"Created": 1772615580,
|
||||||
"CreatedAt": 1772615580,
|
"UpdatedAt": 1772729100
|
||||||
"UpdatedAt": 1772729100
|
}
|
||||||
}
|
]
|
||||||
]
|
|
||||||
}
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Note : todo=0 / doing=1 / done=2
|
||||||
Reference in New Issue
Block a user