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:
Konstantin Fickel 2026-04-13 19:31:32 +02:00
parent b653590c36
commit bf700a15af
Signed by: kfickel
GPG key ID: A793722F9933C1A5
4 changed files with 108 additions and 0 deletions

View file

@ -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);
}