feat: add --minutes flag to timesheet command
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:
parent
e4ed1d839e
commit
42d9ecd3d9
3 changed files with 75 additions and 23 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue