diff --git a/src/backend/cli.rs b/src/backend/cli.rs index c63fa0a..016a705 100644 --- a/src/backend/cli.rs +++ b/src/backend/cli.rs @@ -64,8 +64,8 @@ pub(crate) fn pane_run_args(pane_id: &str, command: &str) -> Vec { pub(crate) fn wait_output_args(pane_id: &str, wait: &WaitFor) -> Vec { let mut args = vec![ - "wait".to_string(), - "output".to_string(), + "pane".to_string(), + "wait-output".to_string(), pane_id.to_string(), "--match".to_string(), wait.pattern.clone(), @@ -532,8 +532,8 @@ mod tests { assert_eq!( args, vec![ - "wait", - "output", + "pane", + "wait-output", "wA:p2", "--match", "Compiling", diff --git a/tests/cli_backend_integration.rs b/tests/cli_backend_integration.rs index 95c2edd..f1190ca 100644 --- a/tests/cli_backend_integration.rs +++ b/tests/cli_backend_integration.rs @@ -124,7 +124,7 @@ fn should_thread_ids_and_apply_focus_via_create_flags_across_two_workspaces_agai "pane run wA:p1 nvim", "pane split wA:p1 --direction down --ratio 0.3 --no-focus", "pane run wA:p3 cargo watch -x test", - "wait output wA:p3 --match Compiling --timeout 10000", + "pane wait-output wA:p3 --match Compiling --timeout 10000", "tab create --workspace wA --label server --no-focus", "pane run wA:p2 cargo run", "workspace create --label demo2 --focus",