Skip to content

A simple cli app to track tasks I'm doing at the moment, coded in Golang.

License

Notifications You must be signed in to change notification settings

MrVantes/task-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Task-CLI

A simple command-line tool built in Golang to track your tasks efficiently.

https://roadmap.sh/projects/task-tracker/solutions?u=64c9f625c3203c8793246c7f

Installation

Linux:

  1. Build the application:
    go build -o task-cli
  2. Move the executable to /usr/local/bin/ for system-wide access:
    sudo mv task-cli /usr/local/bin/

Windows:

For Windows, here are the steps to build and install your Go application:

  1. Build the application: If you have Go installed, you can build the application by opening a command prompt (or PowerShell) in the directory where your Go code is located and running:

    go build -o task-cli.exe

    This will generate the task-cli.exe executable.

  2. Move the executable to a directory in your PATH: To make the application accessible system-wide, you should move it to a directory that's included in your PATH. Common directories for this purpose are C:\Program Files or C:\Users\<your_username>\go\bin, but you can choose another directory.

    You can manually move the task-cli.exe or use the command line:

    move task-cli.exe C:\path\to\desired\directory\

    For example:

    move task-cli.exe C:\Users\<your_username>\go\bin\
  3. Ensure the directory is in your PATH: If the directory where you moved the executable is not already in your PATH, you can add it by following these steps:

    • Right-click on This PC or Computer, and select Properties.
    • Click on Advanced system settings on the left side.
    • In the System Properties window, click on the Environment Variables button.
    • Under System variables, scroll down and select the Path variable, then click Edit.
    • Click New and add the path to the directory where you moved task-cli.exe (e.g., C:\Users\<your_username>\go\bin\).
    • Click OK to save the changes.

After these steps, you should be able to run task-cli from any command prompt or PowerShell window.

Usage

Adding a New Task

To add a new task, use the following command:

task-cli add <task_description>

Example:

task-cli add Buy groceries

Output:

Task added successfully (Index: 1)

Updating a Task

To update an existing task (using its Index), run:

task-cli update <index> <new_task_description>

Example:

task-cli update 1 Buy groceries and cook dinner

Deleting a Task

To delete a task by Index:

task-cli delete <index>

Example:

task-cli delete 1

Marking a Task as In Progress or Done

To mark a task as in progress:

task-cli mark-in-progress <index>

To mark a task as done:

task-cli mark-done <index>

Listing Tasks

To list all tasks, simply use:

task-cli list

Filtering Tasks by Status

You can filter tasks by status:

  • List all completed tasks:

    task-cli list done
  • List all tasks yet to be started:

    task-cli list todo
  • List tasks that are in progress:

    task-cli list in-progress

Contributing

Feel free to fork the repository, submit issues, or create pull requests. Contributions are welcome!

About

A simple cli app to track tasks I'm doing at the moment, coded in Golang.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages