Skip to content

Medushaa/Quest-list

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Todo list CLI tool:

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.

ss-v1

Commands and Flags:

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

Examples:

  • 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

    pomo

Installation:

  1. Clone the repository:
    git clone https://github.com/Medushaa/Quest-list
  2. 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")

For Windows:

  1. Build the executable in the project directory (for Windows):
    go build -o quest.exe
  2. 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)

For Mac:

  1. Build the binary in project directory (E.g. /Users/ungabunga/todo-cli-tool):
    go build -o quest
  2. .... (I dunno. Look it up yourself on the internet)

Now, you can use the quest command globally in your terminal.


About

A simple todo list CLI tool with golang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages