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

@ -60,6 +60,12 @@ pub enum Commands {
debug: bool,
},
/// Open or create the daily entry for a given date
Daily {
/// Date in YYYYMMDD format (defaults to today in configured timezone)
date: Option<String>,
},
/// Generate shell completions
Completions {
/// Shell to generate completions for