tascli-0.1.0 is not a library.
tascli
A simple CLI tool for tracking tasks and records from terminal.
Basic Usage
Tasks and records are stored in ~/.local/share/tascli/tascli.db with rusqlite.
Tasks
Create tasks with deadlines:
# Basic tasks
# With category
List tasks:
# List active tasks
output:
Task List:
------------------------------------------------------------------------------------------------------------------
| Index | Category | Content | Deadline |
------------------------------------------------------------------------------------------------------------------
| 1 | default | Create readme for tascli | Today |
------------------------------------------------------------------------------------------------------------------
| 2 | default | Put tascli on crate.io | Tomorrow |
------------------------------------------------------------------------------------------------------------------
| 3 | default | Do taxes | 4/15 |
------------------------------------------------------------------------------------------------------------------
| 4 | work | Read work emails | Tomorrow |
------------------------------------------------------------------------------------------------------------------
Complete tasks:
# Mark index 1 as done
List all tasks (including completed)
output:
Task List:
------------------------------------------------------------------------------------------------------------------
| Index | Category | Content | Deadline |
------------------------------------------------------------------------------------------------------------------
| 1 | default | Create readme for tascli | Today (completed) |
------------------------------------------------------------------------------------------------------------------
| 2 | default | Put tascli on crate.io | Tomorrow |
------------------------------------------------------------------------------------------------------------------
| 3 | default | Do taxes | 4/15 |
------------------------------------------------------------------------------------------------------------------
| 4 | work | Read work emails | Tomorrow |
------------------------------------------------------------------------------------------------------------------
Records
Create records (for tracking events):
# With current time
# With specific time
List records:
output:
Records List:
------------------------------------------------------------------------------------------------------------------
| Index | Category | Content | Created At |
------------------------------------------------------------------------------------------------------------------
| 1 | feeding | 100ML | Today 6:10PM |
------------------------------------------------------------------------------------------------------------------
| 2 | feeding | 90ML | Today 9:30PM |
------------------------------------------------------------------------------------------------------------------
Help
tascli uses clap for argument parsing, use --help to get help on all levels of this cli:
aperocky@~$ tascli -h
Usage: tascli <COMMAND>
Commands:
task add task with end time
record add record
done Finish task or remove records
update Update tasks or records wording/deadlines
list list tasks or records
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
-V, --version Print version
aperocky@~$ tascli task -h
add task with end time
Usage: tascli task [OPTIONS] <CONTENT> [TIMESTR]
Arguments:
<CONTENT> Description of the task
[TIMESTR] Time the task is due, default to EOD
Options:
-c, --category <CATEGORY> Category of the task
-h, --help Print help