A command-line interface (CLI) tool to manage your tasks or "quests".
I added a lot of comments because I just started leaning Go and writing notes helps me remember which line is doing what and why.
Flag | Description |
---|---|
-add string |
Add a new quest with 'title : urgency : due date' (urgency value 0 to 5). |
-del int |
Type the quest index to delete (default -1 ). |
-edit string |
Edit a quest by index and other info like 'index : title : urgency : dueDate' . |
-leftQuests |
List all remaining (incomplete) quests. |
-list |
List all quests in a pretty table. |
-toggle int |
Type the quest index to toggle its 'completed' status (default -1 ). |
-pomodoro |
Starts the pomodoro app to concentrate |
-
Add a new quest:
quest -add "Eat chicken : 3 : 01 Dec 2024 5PM"
-
Edit a quest (change urgency at index 2 to 4):
quest -edit "2:-:4:-"
-
List all quests in a table:
quest -list
-
Delete a quest:
quest -del 1
-
List all incomplete quests:
quest -leftQuests
-
Open the pomodoro app (used the cross platform GUI tool, Fyne):
quest -pomodoro
- Clone the repository:
git clone https://github.com/Medushaa/Quest-list
- Update the JSON file path in
main.go
to specify where you want to store the quests. For example:storage := NewStorage[Todos]("C:/YourDirectory/todo-cli-tool/quests.json")
- Build the executable in the project directory (for Windows):
go build -o quest.exe
- Add the project directory e.g.
C:/YourDirectory/todo-cli-tool
to your system's environment path variables. (Search > Edit System Environment Variables > Environment Variables > System variables > Path > New
)
- Build the binary in project directory (E.g.
/Users/ungabunga/todo-cli-tool
):go build -o quest
- .... (I dunno. Look it up yourself on the internet)
Now, you can use the quest
command globally in your terminal.