1.0.4 • Published 9 years ago
td-js v1.0.4
help documents:
todo list help:
no parameter, -h, --help:
show this help.
your todo text:
add new todo and return identity.
-l, --list:
show uncompoleted items.
-a, --all:
show all items.
--clear
clear all items and return none.
-c <identity>, --completed <identity>:
complete spesified item and return none;
-i <identity>, --init <identity>:
init spesified item and return none;
-d <identity>, --delete <identity>
remove spesified item and return none.add new item
$ t add a new item. $ t add another new item. $ t --listWill be shown:
1 - INIT => add a new item. 2 - INIT => add another new item.list undone items.
$ t -lWill be shown:
1 - INIT => add a new item. 2 - INIT => add another new item.complete a item.
$ t -c 1 $ t --listWill be shown:
2 - INIT => add another new item.The 1 is completed, so will not be shown at this time.
list all items.
$ t -aWill be shown:
1 - DONE => add a new item. 2 - INIT => add another new item.delete spesified item.
$ t this is the third item. $ t --listWill be shown:
2 - INIT => add another new item. 3 - INIT => this is the third item.Now, we can delete item use
-dparameter:$ t -d 3 $ t --listWill be shown:
2 - INIT => add another new item.We execute
t -ashow all items:1 - DONE => add a new item. 2 - INIT => add another new item.We alos can delete a completed item use
-dparameter:$ t -d 1 $ t --allWill be shown:
2 - INIT => add another new item.clear all items:
$ t --clearWill be delete all items, and will show none.
Now, you can use it:
npm install -g td-js