feat: add --minutes flag to timesheet command
All checks were successful
Release / Build and Release (push) Successful in 5s
Continuous Integration / Lint, Check & Test (push) Successful in 1m43s
Continuous Integration / Build Package (push) Successful in 1m56s

Adds a -m/--minutes flag to `streamd timesheet` that displays time
in HH:MM format (e.g., 8:30) instead of decimal hours (e.g., 8.5h).
Includes unit tests for both formatting functions.
This commit is contained in:
Konstantin Fickel 2026-04-07 07:57:28 +02:00
parent e4ed1d839e
commit 42d9ecd3d9
Signed by: kfickel
GPG key ID: A793722F9933C1A5
3 changed files with 75 additions and 23 deletions

View file

@ -50,7 +50,11 @@ pub enum Commands {
},
/// Display extracted timesheets
Timesheet,
Timesheet {
/// Display time as minutes (HH:MM) instead of decimal hours (H.Hh)
#[arg(short, long)]
minutes: bool,
},
/// Generate shell completions
Completions {