todo

package module
v0.0.0-...-708ef03 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: MIT Imports: 6 Imported by: 0

README

c.l.i.g.o

c.l.i.g.o is a command-line interface (CLI) application built in Go (Golang) to manage task lists. With c.l.i.g.o, you can easily add, delete, list, and complete tasks directly from your terminal.

Features

  • Add Task: Add a new task to your task list.
  • Delete Task: Remove an existing task from your task list.
  • List Tasks: Display all tasks in your task list.
  • Complete Task: Mark a task as complete.

Installation

To install c.l.i.g.o, you need to have Go installed on your machine. If you don't have Go installed, you can download it from here.

  1. Clone the repository:

    git clone https://github.com/FilledEther20/c.l.i.g.o.git
    
  2. Navigate to the project directory:

    cd c.l.i.g.o
    
  3. Build the application:

    go build -o c.l.i.g.o
    

Usage

Add Task

To add a task, use the add command followed by the task description:

go run main.go -add your_task
Delete Task

To delete a task, use the -delete flag followed by the task ID:

go run main.go -delete=1
List Tasks

To list all tasks, use the -list flag:

go run main.go -list
Complete Task

To mark a task as complete, use the -complete flag followed by the task ID:

go run main.go -complete=1

License

This project is licensed under the MIT License - see the LICENSE file for details.

Documentation

Index

Constants

View Source
const (
	ColorDefault = "\x1b[39m"

	ColorRed   = "\x1b[91m"
	ColorGreen = "\x1b[32m"
	ColorBlue  = "\x1b[94m"
	ColorGray  = "\x1b[90m"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Todos

type Todos []item

func (*Todos) Add

func (t *Todos) Add(task string)

Add method in

func (*Todos) Complete

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

Completed

func (*Todos) CountPending

func (t *Todos) CountPending() int

func (*Todos) Deletion

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

Deletion

func (*Todos) Load

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

Load Function

func (*Todos) Print

func (t *Todos) Print()

Print functionality

func (*Todos) Store

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

Store function

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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