todo-cli

module
v0.0.0-...-f100638 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2025 License: MIT

README

todo-cli

CLI based To-Do

I am tired of spacing out during daily standups when asked what I accomplished yesterday - I do so much during the day, but my memory fails me at the most important time!

I also been wanting to learn Go - to checkout if it is all what the hype claims it to be

So... no better way to learn that a project

What is it?

A lightweight CLI based To-Do application written in Go

Requirements

Install

Clone this repo and build the executable file using:

go build ./cmd/todo

This will create the todo executable. If you want to be able to access this command from anywhere in your shell, you will need to add it to your PATH environment variable in your .bashrc, .zshrc, etc. I will leave this one to you as homework :)

Usage

-ls: Lists all the todos on file
  todo -ls

-add: Adds a todo to the list
  todo -add Add a new Todo

-done: Changes the status of a todo to complete. Receives the index of the task to change
  todo -complete 1

-rm: Deletes a todo from the list. Receives the index of the task to delete
  todo -delete 1

Directories

Path Synopsis
cmd
todo command
internal
todo
internal/todo.go
internal/todo.go

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL