1 unstable release
0.1.0 | Apr 23, 2024 |
---|
#408 in Date and time
15KB
297 lines
Hat Changer
Hat Changer is a very simple command-line tool written in Rust for tracking time for various projects.
Installation
First, you will need to install Rust with Rustup.
Then run the following command:
cargo install hat-changer
Usage
For more detailed instructions, see:
hat --help
You can create projects with new
:
hat new project-name
hat new another-project
Change hats by typing the name of the project:
hat project-name
hat another-project
And start tracking time with the following commands:
hat on
hat off Description of what you've done.
You can undo or edit how long a task took. Note that if you undo while tracking time, it will just cancel the current time being tracked.
Here is an example:
hat edit 5h
hat undo
You can see a list of projects and the times for the active project with:
hat list
hat time
hat
Finally, if you ever want to, you can delete a project:
hat delete project-name
hat delete another-project
That's all for now! I may add new functionality for manipulating descriptions and historical tasks in the future, as well as archiving. But for now, you can do anything else you need by editing the ~/.timelogger.json
file directly. Contributions are welcome.
Dependencies
~3–31MB
~452K SLoC