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
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue