Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/karapetianash/todo-cli

This CLI is a command-line tool that helps you to stay organized with creating and managing your To-Do lists efficiently.
https://github.com/karapetianash/todo-cli

Last synced: about 1 month ago
JSON representation

This CLI is a command-line tool that helps you to stay organized with creating and managing your To-Do lists efficiently.

Awesome Lists containing this project

README

        

## Introduction
This CLI is a command-line tool that allows you to create and manage your To-Do lists efficiently. This tool provides a simple and intuitive way to keep track of your tasks and stay organized.

## Supported methods
- Add:
Creates a new to-do item and appends it to the list.
- Complete:
Marks a to-do item as completed.
- Delete:
Deletes a to-do item from the list.
- Save:
Saves the list of items to a file using the JSON format.
- Get:
Obtains a list of items from a saved JSON file.

## Usage
To build the app, run the following command in the root folder:

```
> go build .
```
Above command will generate todo-cli file. This name is defined in the `go.mod` file, and it will be the initialized module name.

You can set an environment variable `TODO_FILENAME` to name the file where your tasks will be stored.

```
> set TODO_FILENAME=someName
```
After that you can run the file using the cmd and pass the task:

```
> .\todo-cli.exe -add New Task
```