Todo
To-do cli application with golang.
Help you record to-do items and work more efficiently.
Table of Contents
Overview
Use Cobra library.
todo version
Installing
Using todo is easy. First, use go get
to install latest version of the library.
This command will install the todo
generator executable along with the library and its dependencies:
go get -u github.com/cuilan/todo
Next, build it:
go build -o full/path/todo
Configuration
First, Create a config.yml
configuration file in the $HOME
directory.
Next, Only need to add a configuration for configuring the data file storage location:
datafile: C:\Users\xxxxx\.todo.json
Create your json data file.
Getting Started
Version
Show current todo version:
todo version
Todo items list
Show undone todo items list:
todo list
Show all todo itesm list:
todo list -a
Show done todo itesm list:
todo list -d
Add todo item
Add item to list, priority:(1, 2, 3), default: 3:
todo add -p 1 xxxx
Done item
Done item with index:
todo done 1
License
Todo is released ubder the Apache 2.0 license.See LICENSE