mirror of https://github.com/IoTcat/todo-ddl.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
iotcat
9e51d7168d
|
4 years ago | |
---|---|---|
modules | 4 years ago | |
utilities | 4 years ago | |
.gitignore | 4 years ago | |
LICENSE | 4 years ago | |
README.md | 4 years ago | |
index.js | 4 years ago | |
old.js | 4 years ago | |
package-lock.json | 4 years ago | |
package.json | 4 years ago | |
server.js | 4 years ago | |
test.js | 4 years ago | |
yarn-error.log | 4 years ago | |
yarn.lock | 4 years ago |
README.md
todo-ddl
Todo CLI with DDLs on nodejs.
Quick Start
Installation
$ npm i -g todo-ddl
Find Help
$ td -h
Architecture
overview
|todo-ddl
|
|---config
| |---email
| |---remote url
|
|---td
| |---todo
| |---task
| |---history
|
|---ddl
|
|---log
|
td structure
td new td add td done
------> --------> --------->
todo task history
<------ <-------- <---------
td rm td return td recover
Commands
config set
td config [-e email] [-r remote]
: Set
td set
-
td new <name> [class]
: Create new todo.. -
td add <id>
: Add todo to task.. -
td done <id>
: Finish task.. -
td recover
: Recover task from history.. -
td return <id>
: Return task to todo.. -
td rm <id>
: Remove task.. -
td ls
: List tasks.. -
td lt
: List todos.. -
td history
: List history
log set
td select <id>
: Select task for loging..td log <comment>
: Record logs..td ll
: List logs..td rml <id>
: Remove log..
ddl set
td newd <name> <date>
: Create new ddl..td link <ddlID> <tdID>
: Link todo with ddl..td ld
: List ddls..td rmd <id>
: Remove ddl..
systemctl
td init
: Reset all..td push
: Push local to remote..td pull
: Pull from remote..td sync
: Sync with remote..
Data structure
config:{
email: "",
remote: "https://api.yimian.xyz/todo-ddl/"
}
data:{
td:{[{
id: 'a2s3s2ds',
name: '',
class: 'default',
createTime: (new Date()).valueOf(),
todoTime: (new Date()).valueOf(),
endTime: (new Date()).valueOf(),
lastOperateTime: (new Date()).valueOf(),
idDel: false,
logs: [{
id: 'fdkr8ei9odleiw93',
content: '',
createTime: (new Date()).valueOf(),
lastOperateTime: (new Date()).valueOf(),
isDel: false
}]
}]},
ddl: {[{
id: 'di8eio',
name: '',
class: 'default',
link: [<tdID>],
createTime: (new Date()).valueOf(),
expireTime: (new Date()).valueOf(),
lastOperateTime: (new Date()).valueOf(),
isDel: false
}]}
}