Skip to main content

cmd_pull

Function cmd_pull 

Source
pub async fn cmd_pull(room_id: &str, token: &str, n: usize) -> Result<()>
Expand description

One-shot pull subcommand: print the last N messages from history as NDJSON.

Reads from the chat file directly (no broker connection required). Does not update the poll cursor.