hackatime-0.2.0 is not a library.
Hackatime Terminal Viewer
A Rust terminal app that signs into Hackatime with OAuth PKCE and prints a simple stats summary.
Install
- From crates.io:
cargo install hackatime - Then run:
hackatime
Commands
hackatimeshows the multi-range summary plus lifetime languageshackatime .shows stats for the current folder if it matches one of your Hackatime projectshackatime --fetch(-f) shows a neofetch-style overviewhackatime --current(-c) shows the current project reporthackatime --today(-d) shows today's total plus today's languageshackatime --week(-w) shows this week's total plus this week's languageshackatime --month(-m) shows this month's total plus this month's languageshackatime --year(-y) shows this year's total plus this year's languageshackatime --lifetime(-l) shows lifetime total plus lifetime languageshackatime logoutclears your saved Hackatime login
Current features
- Browser-based OAuth login using PKCE
- Reuses your saved access token on later runs so you do not log in each time
- Can show the current folder as a project with
hackatime . - Lets you clear the saved token with
hackatime logout - Fetches your profile
- Prints a plain text stats summary and exits