Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/utkarshm-hub/go_todo_cli_tool
A command line tool to manage your task
https://github.com/utkarshm-hub/go_todo_cli_tool
Last synced: 24 days ago
JSON representation
A command line tool to manage your task
- Host: GitHub
- URL: https://github.com/utkarshm-hub/go_todo_cli_tool
- Owner: UtkarshM-hub
- License: other
- Created: 2022-09-01T11:03:41.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-17T07:52:24.000Z (over 2 years ago)
- Last Synced: 2024-11-07T20:56:23.339Z (3 months ago)
- Language: Go
- Homepage:
- Size: 24.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Go_Todo_CLI_Tool
### To Use this Project
clone this repo and run following command in your terminal which will build the project and create an executable file out of it
```
go build .
```## Add Task
following command is used to Add task
```
todo add -n -p -d
```
here ```-n``` tag is used to specify name of the task and ```-p``` for priority.
The lowest priority a task can have is 0 and the highest is 10. For medium priority your can use 5.
NOTE! The ```-d``` flag is optional
An example of Add command
```
todo add -n "First task" -p 10 -d "Just an example"
```
this will store the json data into the db.json file like you can see in the following image
![Screenshot (93)](https://user-images.githubusercontent.com/70505181/188202962-48da8742-700d-4f41-a180-2b082d5c47b2.png)## Delete Task
```
todo del -i 1
```
```-i``` is used to specify the index## List All Tasks
```
todo list
```
![Screenshot (95)](https://user-images.githubusercontent.com/70505181/188274147-10806dd7-909a-4f29-82c1-81e392e6ae27.png)## Expand a Task
```
todo exp -i 2
```
The ```-i``` is used to specify index
it shows following output
![Screenshot (97)](https://user-images.githubusercontent.com/70505181/188274248-574ad738-2b9c-4179-bf82-9e1d0f70e928.png)## Mark Task as Complete
```
todo comp -i 1
```
```-i``` is used to specify the index of the task you want to mark as complete## To Clear all Tasks
```
todo clear
```