This is a command-line interface (CLI) application built with Go (Golang) that allows you to manage your TODO list. You can add, view, update, and delete tasks from the command line.
To use this TODO App CLI, make sure you have Go installed on your machine. Then, follow these steps:
- Clone the repository:
git clone https://github.com/amirhasanzadehpy/todo-app-cli.git
- Navigate to the project directory:
cd todo-app-cli
- Build the application:
go build ./cmd/todo/
- Run the application:
./todo
OR
Move the generated binary to a directory in your system's PATH to make it globally accessible:
sudo mv todo /usr/local/bin
Note: You might need to use sudo to move the binary to a system-wide directory.
Verify the installation by running:
todo -v
Once you have installed and run the application, you can start managing your TODO list using various commands.
To view all available commands and their usage, run:
todo -help
To add a new task:
todo -add Buy groceries
To list all tasks:
todo -list
To mark a task as completed:
todo -complete=1
To delete a task:
todo -delete=2
The following are the available commands provided by the TODO App CLI:
add
- Add a new task to the TODO list.list
- View all tasks in the TODO list.complete
- Complete a task from the TODO list.delete
- Delete a task from the TODO list.help
- Display help information about the CLI and its commands.
Contributions are welcome! If you find any issues with the TODO App CLI or would like to suggest improvements, please open an issue or submit a pull request on the GitHub repository.