Skip to main content

test_simple_command/
test-simple-command.rs

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