Crates.io | peppertodo |
lib.rs | peppertodo |
version | 0.4.3 |
source | src |
created_at | 2024-09-01 19:44:46.099764 |
updated_at | 2024-10-29 17:30:12.337496 |
description | A todo list CLI application |
homepage | https://github.com/pepperjackdev/peppertodo |
repository | https://github.com/pepperjackdev/peppertodo |
max_upload_size | |
id | 1359849 |
size | 77,928 |
A to-do list command line utlity written in Rust.
[!WARNING] The utility is still under development
You can install this utility via cargo
:
$ cargo install peppertodo
After the installation succeeded, you should be able to run the utility by using its bin name:
$ pt
Note that all the tasks are saved into an SQLite database (appdata.db
) under the peppertodo
folter, into your data-dir
. For more informations about the effective path of the data-dir
on your platform, just visit the dirs
's crate docs here.
Here a short summary:
Platform | Data directory path |
---|---|
Linux | /home/alice/.local/share |
macOs | /Users/Alice/Library/Application Support |
Windows | C:\Users\Alice\AppData\Roaming |
If you're trying to get started with the utility, this is the right place!
A task is has three main components:
undone
, underway
or done
.add
(+
)To add a new task, just run:
$ pt add -t "Task title" -d "task description"
As you run this command, a new task with title
"Task title" and a description
"task description" is added to your tasks.
You can alternatively use its alias, +
:
$ pt + -t "Task title" -d "task description"
This does the same thing as the previous command.
Just remeber that, as a task's title is what allows you to target one specific task, it is recomended to choose only short titles for your tasks, leaving all the details for the description.
list
(ls
)To list all the task you've added, use list
:
$ pt list
[undone] Task title: task description
If you want to list only tasks with a certain status, just put the status you're interested in after the list
command:
$ pt list <status>
For example
$ pt list undone
[undone] Task title: task description
$ pt list done
$ # nothing has been display as no task with done status exists
Also list
has its short-hand alias: ls
.
mark
(!
)To edit a task status (i.e. mark), use mark
:
$ pt mark -t "Task title" done
Now, the task with title "Task title" has been marked as done
:
$ pt ls
[done] Task title: task description
The short-hand alias for mark
is !
.
$ pt ! -t "Task title" done
edit
(ed
)To edit a task's title
or description
ther's edit
$ pt edit --target "Task title" -t "New task title" -d "new task description"
$ pt edit --target "New task title" -d "new new task description"
$ pt edit --target "New task title" -t "Task title"
If you want to edit quicker, just use its alias: ed
.
delete
(del
)To delete a task, use:
$ pt delete -t "Task title"
or its short hand version:
$ pt del -t "Task title"
done
: clear
(cls
)To delete all the tasks marked as done with a single command, use:
$ pt clear
or its short hand version:
$ pt cls