feat: add streamd daily command
`streamd daily [YYYYMMDD]` opens the earliest existing daily file (file_type=daily) whose timestamp falls within the target date. If no such file exists it creates `<timestamp>_daily.md` and opens it. Date defaults to today in the repository timezone.
This commit is contained in:
parent
b653590c36
commit
bf700a15af
4 changed files with 108 additions and 0 deletions
|
|
@ -18,6 +18,7 @@ fn main() -> miette::Result<()> {
|
|||
Some(Commands::Timesheet { decimal, debug }) => {
|
||||
streamd::cli::commands::timesheet::run(decimal, debug)?
|
||||
}
|
||||
Some(Commands::Daily { date }) => streamd::cli::commands::daily::run(date)?,
|
||||
Some(Commands::Completions { shell }) => {
|
||||
streamd::cli::commands::completions::run(shell);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue