Developed and implemented a command-line interface application using the Typer framework to streamline and enhance task management for Linux users.
-
Add new tasks to your ToDo list
-
Mark tasks as completed
-
List all tasks
-
Remove completed tasks or clear the entire list
TaskBox is written in Python and relies on the typer library for creating the CLI. To install TaskBox, follow these simple steps:
- Clone the TaskBox repository or download the source code:
git clone https://github.com/solankybasant/TaskBox
- Navigate to the TaskBox directory:
cd TaskBox
- Install the required dependencies using pip:
pip install -r requirements.txt
- To add a new task:
python -m mafia add <taskName>
- To mark a task as completed:
python -m mafia complete <taskNumber>
- To list all tasks:
python -m mafia show
- To remove a task:
python -m rm <taskNumber>
- To reset the database:
python -m mafia reset
- To set a database location:
python -m mafia init
- To remove forcefully (without confirmation)
python -m mafia reset --force
For a complete list of commands, use the --help flag with TaskBox:
python -m mafia --help
Also, you can add an alias to your shell profile (e.g., .bashrc or .zshrc) to access TaskBox conveniently and use a custom alias (e.g., td):
alias td='cd ~/TaskBox/ && function td {
if [ "$1" = "add" ] && [ -n "$2" ]; then
python -m mafia add "$2"
elif [ "$1" = "show" ]; then
python -m mafia show
elif [ "$1" = "com" ] && [ -n "$2" ]; then
python -m mafia complete "$2"
elif [ "$1" = "rm" ] && [ -n "$2" ]; then
python -m mafia rm "$2"
else
python -m mafia show
fi
}'