From 5e05460816bbcea61a111bfa57be9907116e8ffc Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Tue, 7 Apr 2026 02:48:13 +0300 Subject: docs: clarify herdr pane split and wait output usage --- src/cli.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/cli.rs') diff --git a/src/cli.rs b/src/cli.rs index 0516b3ce..cc364051 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -429,7 +429,7 @@ fn pane_get(args: &[String]) -> std::io::Result { fn pane_read(args: &[String]) -> std::io::Result { let Some(raw_pane_id) = args.first() else { - eprintln!("usage: herdr pane read [--source visible|recent] [--lines N]"); + eprintln!("usage: herdr pane read [--source visible|recent|recent-unwrapped] [--lines N]"); return Ok(2); }; @@ -763,7 +763,7 @@ fn integration_uninstall(args: &[String]) -> std::io::Result { fn wait_output(args: &[String]) -> std::io::Result { let Some(raw_pane_id) = args.first() else { - eprintln!("usage: herdr wait output --match [--source visible|recent] [--lines N] [--timeout MS] [--regex]"); + eprintln!("usage: herdr wait output --match [--source visible|recent|recent-unwrapped] [--lines N] [--timeout MS] [--regex]"); return Ok(2); }; @@ -1016,6 +1016,7 @@ fn parse_read_source(value: &str) -> std::io::Result { match value { "visible" => Ok(ReadSource::Visible), "recent" => Ok(ReadSource::Recent), + "recent-unwrapped" | "recent_unwrapped" => Ok(ReadSource::RecentUnwrapped), _ => Err(std::io::Error::other(format!( "invalid read source: {value}" ))), @@ -1070,7 +1071,7 @@ fn print_pane_help() { eprintln!("herdr pane commands:"); eprintln!(" herdr pane list [--workspace ]"); eprintln!(" herdr pane get "); - eprintln!(" herdr pane read [--source visible|recent] [--lines N]"); + eprintln!(" herdr pane read [--source visible|recent|recent-unwrapped] [--lines N]"); eprintln!(" herdr pane split --direction right|down [--cwd PATH] [--no-focus]"); eprintln!(" herdr pane close "); eprintln!(" herdr pane send-text "); @@ -1080,7 +1081,7 @@ fn print_pane_help() { fn print_wait_help() { eprintln!("herdr wait commands:"); - eprintln!(" herdr wait output --match [--source visible|recent] [--lines N] [--timeout MS] [--regex]"); + eprintln!(" herdr wait output --match [--source visible|recent|recent-unwrapped] [--lines N] [--timeout MS] [--regex]"); eprintln!( " herdr wait agent-state --state [--timeout MS]" ); -- cgit v1.2.3