fix notify

This commit is contained in:
2026-02-04 22:31:54 +09:00
parent 612a48ab39
commit f5fac72002
2 changed files with 100 additions and 0 deletions

View File

@@ -188,6 +188,15 @@ enum NotifyCommands {
Count,
/// Mark all notifications as seen
Seen,
/// Poll for new notifications (runs continuously, NDJSON output)
Listen {
/// Poll interval in seconds
#[arg(short, long, default_value = "30")]
interval: u64,
/// Filter by reason (mention, reply, like, repost, follow, quote)
#[arg(short, long)]
reason: Vec<String>,
},
}
#[derive(Subcommand)]
@@ -262,6 +271,9 @@ async fn main() -> Result<()> {
NotifyCommands::Seen => {
commands::notify::update_seen().await?;
}
NotifyCommands::Listen { interval, reason } => {
commands::notify::listen(interval, &reason).await?;
}
}
}
Commands::Pds { command } => {