| Crates.io | pnch |
| lib.rs | pnch |
| version | 0.4.1 |
| created_at | 2020-03-15 19:49:30.909278+00 |
| updated_at | 2020-05-31 15:47:52.9181+00 |
| description | Simple time tracking from the command line |
| homepage | https://github.com/mohoff/punch |
| repository | https://github.com/mohoff/punch |
| max_upload_size | |
| id | 218953 |
| size | 262,611 |
punchA simple time-tracking CLI tool written in Rust. Punch in, punch out, and pretty-print records to the terminal in different time granularity.
in, out, show - that's all you need:
punch in [<note>]: Start tracking time and pass an optional note.punch out [<note>]: Stop tracking time and pass an optional note.punch show [day|week|month|year] [--precise] [--round DIRECTION,GRANULARITY]: Print tracked times and notes grouped by the specified time interval to console. (default: week).
--precise/-p: prints timestamps in RFC 3339 format.--timezone/-t: prints timestamps with timezone.--round/-r DIRECTION,GRANULARITY: rounds durations according to the given rounding direction and granularity. Examples: nearest,1min (default), up,30min, down,1h, n,1day.punch edit: Open the punch card in your favorite editor to make manual changes.punch status: Print machine-readable status of the punch card: PunchedIn, PunchedOut, or Corrupted.Each punch in must be followed by a punch out. You can't punch in if you haven't punch outd the previous record. The tool performs some validation on each punch and reports invalid state.
If you punched by mistake, you can manually edit the punch card at any time in ~/.punch/main.csv. Each record is CSV-encoded by index,start,[end],[note], where [] denotes optional fields.
Running punch show day based on some test data:

punch list and punch switch.punch show --statspunch show?