test_debug/test-debug.rs
1use kitty_rc::{Kitty, command::CommandBuilder};
2
3#[tokio::main]
4async fn main() -> Result<(), Box<dyn std::error::Error>> {
5 // Test without password
6 println!("=== Testing without password ===");
7 let mut kitty = Kitty::builder()
8 .socket_path("/run/user/1000/kitty-101555.sock")
9 .connect()
10 .await?;
11
12 let cmd = CommandBuilder::new("ls").build();
13 println!("Command: {:?}", cmd);
14 let result = kitty.execute(&cmd).await;
15 println!("Result: {:?}", result);
16
17 Ok(())
18}