Tasklog
Tasklog is a simple CLI-based task management tool written in Rust. It allows you to start, stop, switch between tasks, and generate reports of your tasks. This tool is useful for tracking time spent on various tasks throughout the day.
Features
- Start a Task: Begin a new task or resume an existing one.
- Stop a Task: Stop the current running task.
- Switch Tasks: Switch from the current task to a new one.
- Generate Reports: Generate a report of tasks worked on for a specific day.
- Get the Current Task: Print the task currently running, if any.
Installation
To use Task Tracker, you need to have Rust installed on your system. If you don't have Rust installed, you can get it from here.
Clone the repository and build the project using Cargo:
The executable will be located in the target/release directory.
Usage
Start a new Task
To start a new task:
Stop a Task
To stop the current task:
If you want to stop a running task from a previous day you can do instead
specifying for how many minutes the task should have been running.
Resume a Task
To resume a stopped task:
If <TASK_NAME> is omitted, the last stopped task will be resumed.
Switch Tasks
To switch to a different task:
This will stop the current task and start the new task <TASK_NAME>.
Generate a Report
To generate a report of tasks worked on today or a specific day:
<DAYS_AGO> is the number of days between today and the day to report. For example, -n=0 for today, -n=1 for yesterday, and so on.
If n is not specified, the report will be of today.
Get Current Task
To get the task currently running:
Examples
Start a new task named coding:
Stop the current task:
Switch to a task named meeting:
Generate a report for today:
Generate a report for yesterday:
Contributing
Contributions are welcome! Feel free to open an issue or submit a pull request on GitHub.
License
This project is licensed under the GPL-v3.0 License. See the LICENSE file for details.