td

command module
v0.0.0-...-a0e3a01 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2018 License: MIT Imports: 7 Imported by: 0

README

td

PRs Welcome Build Status Go Report Card

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.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL