agent-ssh 0.4.1

Arrange agent terminal layouts and reconnect through provider attachment plans
Documentation
use std::process::Command;

const BIN: &str = env!("CARGO_BIN_EXE_agent-ssh");

#[cfg(unix)]
#[test]
fn actual_cli_lists_and_reattaches_without_creating_sessions() {
    let status = Command::new("python3")
        .arg(concat!(
            env!("CARGO_MANIFEST_DIR"),
            "/scripts/verify_tmux_attachment.py"
        ))
        .arg(BIN)
        .status()
        .unwrap();
    assert!(status.success());
}

#[cfg(windows)]
#[test]
fn windows_requires_an_explicit_ssh_execution_host() {
    let output = Command::new(BIN).args(["tmux", "list"]).output().unwrap();
    assert!(!output.status.success());
    assert!(String::from_utf8_lossy(&output.stderr).contains("local tmux requires Unix"));
}