WIP
This project is currently WIP. I haven't packaging this yet. So for now, if you want to use this, you need to clone the repo and compile locally.
NOTE
Windows user may run into some problems as some packages may not support windows. Linux and MacOs should be fine. (if not, PR are very welcome)
- clone the repo
- go to the directory, run
cargo build --release
. This will compile the release version of the binary. - copy the binary to your path. You can find the binary at
target/release/
. There are two binaries for this package, theraskd
andrask
.raskd
is the server that listen on the request whereas therask
is the command line tool to interact with theraskd
server. - before you can start
raskd
, you need to runraskd init
to initialize the sqlite3 database. The default database name israskd.db
and it will be stored at the directory where you put yourraskd
binary. - after the init, you can run
raskd &
if it is in your path, or./raskd &
if the binary is at the current directory. This should start theraskd
server in the background. - whenever you need to create a task, you can use
rask
cli to do this. See the wiki page to see more use cases.
rustd init
rustd &
rask start 'leetcode daily'
+----+----------------+-----------+----------+---------------------------------+---------+
| id | name | task_type | duration | start_at | stop_at |
+----+----------------+-----------+----------+---------------------------------+---------+
| 1 | leetcode daily | task | 00:00:00 | Sun, 19 Apr 2020 17:03:53 +1000 | |
+----+----------------+-----------+----------+---------------------------------+---------+
rask ls
+----+----------------+-----------+----------+---------------------------------+---------+
| id | name | task_type | duration | start_at | stop_at |
+----+----------------+-----------+----------+---------------------------------+---------+
| 1 | leetcode daily | task | 00:38:57 | Sun, 19 Apr 2020 17:03:53 +1000 | |
+----+----------------+-----------+----------+---------------------------------+---------+
rask stop 1
+----+----------------+-----------+----------+---------------------------------+---------------------------------+
| id | name | task_type | duration | start_at | stop_at |
+----+----------------+-----------+----------+---------------------------------+---------------------------------+
| 1 | leetcode daily | task | 00:39:02 | Sun, 19 Apr 2020 17:03:53 +1000 | Sun, 19 Apr 2020 17:42:55 +1000 |
+----+----------------+-----------+----------+---------------------------------+---------------------------------+