This is a to-do app practice from GeekTime cources written by ZhengYe.
`todo add <item>`
[index]. <item>
Item <itemIndex> added`todo done <itemIndex>`
Item <itemIndex> done`todo list`
[index]. <item>
...
Total: 2 items`todo list --all`
[index]. <item>
[index]. [done] <item>
...
Total: 3 items, 1 item donesome rules:
- when user not login, todo can not use;
- default: root/root, alex/alex
- config file: ~/.todo-config. the
~/.todo-configcontent like :
root:root
alex:alex
cooper:coopertodo login -u user
Password:
Login success!todo logout
Louout success!todo export > <your/path/todolist.ext>todo import -f <your/path/todolist.ext>- data file should not upload
- unit test: commander function test, file read/write sync, but not use astnc/promise/callback
- TDD use
- work flow: win -> git <- linux -> docker image <------ CI
- Dockefile, git commands, shell script
- handle error
- node path route: chaos