todo

package module
v0.0.0-...-9f247cb Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: MIT Imports: 5 Imported by: 0

README

Usage:

go run main.go -task "name of your task"
go run main.go -list
go run main.go -complete 1

Using env variables

export TODO_FILENAME=new-todo.json
unset TODO_FILENAME

Capturing Input from STDIN

go run main.go -add "item from Args"
echo "this one is from STDIN via the echo command" | go run main.go -add

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type List

type List []item

func (*List) Add

func (l *List) Add(task string)

func (*List) Complete

func (l *List) Complete(i int) error

func (*List) Delete

func (l *List) Delete(i int) error

func (*List) Get

func (l *List) Get(filename string) error

func (*List) Save

func (l *List) Save(filename string) error

func (*List) String

func (l *List) String() string

Directories

Path Synopsis
cmd
todo command

Jump to

Keyboard shortcuts

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