td
td is a tool for managing tasks. It's easy to use and not complicated. Written with Golang.
Using td
Using td is easy, not complicated and quick.
Add a task
To add a task, use td [desc]
.
$ td Try to learn Golang.
$ td Go to school.
$ td Call Salih.
Listing Tasks
For Listing your task just type td
.
$ td
1: Try to learn Golang.
2: Go to school.
3: Call Salih.
Completing a task
You can complete your task with td -d index
.
$ td -d 2
$ td
1: Try to learn Golang.
2: Call Salih.
Searching
You can even search a task with little trick.
$ td | grep Call
2: Call Salih.
Copy your task to clipboard
You can copy any of your task to clipboard with td -c [index]
$ td
1: Try to learn Golang.
2: Call Salih
$ td -c 1
$ ==> td[1] has been copied to clipboard.
Completing all of your tasks
Even you can complete all of your tasks. Just use td -r
$ td
1: Try to learn Golang.
2: Call Salih.
$ td -r
$ td
Installing td
First we need a MySQL database. Edit the line 140 to 142 for your own database.
After that basically we need a table to store all of our tds.
Here is the MySQL query for creating table;
CREATE TABLE `td` (
`id` int NOT NULL AUTO_INCREMENT,
`tdId` int NOT NULL,
`td` text NOT NULL,
`owner` varchar(64) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8;
And you are done! Build the td and use it!
Note: td has a owner
variable in line 143 for multi-user usage.
Contributing
td made in one night for me. I will improve td but feel free to contribute.