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

@ -15,7 +15,7 @@ fn main() -> miette::Result<()> {
Some(TodoAction::Done { number }) => streamd::cli::commands::todo::run_done(number)?,
},
Some(Commands::Edit { number }) => streamd::cli::commands::edit::run(number)?,
Some(Commands::Timesheet) => streamd::cli::commands::timesheet::run()?,
Some(Commands::Timesheet { minutes }) => streamd::cli::commands::timesheet::run(minutes)?,
Some(Commands::Completions { shell }) => {
streamd::cli::commands::completions::run(shell);
}