todo

package module
v0.0.0-...-df4da9b Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

README

Todo_Cli

It is a simple task manager that allows you to create, edit, delete and list tasks from the command line. It is built with Go.

⭐️ Features

  • Adding tasks
  • Deleting a task
  • Updating tasks
  • Completing tasks
  • Deleting all tasks
  • Listing all tasks

❗️ Prerequisites

  • Have Go installed on your machine and have the basic knowledge.

⚙️ Installation

Local

At the root og the folder run the following command to download the dependencies:

go mod download

Then, we need to build the binary:

go build .

📝 Usage

We can perform tasks like add, delete, update and list tasks. We can also delete all tasks.

Note: When you add task for the 1st time it will create a .todo.json file and all the commands will update chnages to that only. So even to you exit the terminal and come back again, the tasks will be there.

📜 License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Todos

type Todos []item

Slice used to store dynamic data

func (*Todos) Add

func (t *Todos) Add(task string)

Controller to add task in todo

func (*Todos) Completed

func (t *Todos) Completed(index int) error

Contorller to mark completed task

func (*Todos) Delete

func (t *Todos) Delete(index int) error

Controller to delete a Todo

func (*Todos) List

func (t *Todos) List()

func (*Todos) Load

func (t *Todos) Load(filename string) error

Load the file ie load the todos

func (*Todos) Store

func (t *Todos) Store(filename string) error

Store a todo

Directories

Path Synopsis
cmd
todo command

Jump to

Keyboard shortcuts

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