Skip to content

hackice20/todo-cli-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Todo-CLI-Go

Todo-CLI-Go is a command-line interface (CLI) tool written in Go for managing a simple to-do list. It allows users to add, list, edit, and toggle tasks directly from the command line.

Setup

Follow these steps to get your Todo-CLI-Go project up and running:

  1. Clone the Repository

    git clone https://github.com/hackice20/todo-cli-go.git
  2. Go Setup

    Navigate to the project directory:

    cd todo-cli-go

    Ensure you have Go installed. If not, download and install it from the Go website.

  3. Build the Project

    Build the project using the Go build command:

    go build -o todo

    This will create an executable file named todo in the project directory.

CLI Commands

Here are the commands you can use with the Todo-CLI-Go tool:

Command Description
./todo -add "task" Add a new to-do item
./todo -list List all to-do items
./todo toggle <id> Mark a to-do item as done
./todo edit "<id> new_name" Edit the name of an existing to-do item

Example Usage

  1. Add a new to-do item:

    ./todo -add "Buy groceries"
  2. List all to-do items:

    ./todo -list
  3. Mark a to-do item as done:

    ./todo toggle 1
  4. Edit a to-do item:

    ./todo edit "1 Buy groceries and more"

About

CLI To-Do app in Go—because typing tasks in a terminal makes you feel like a hacker.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages