Skip to main content

test_encrypted_simple/
test-encrypted-simple.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        .password("0pD4cLsKze84eCYOh7dIlvMFF87rgHEPSkngVpgbtYJ9hAzJ")
8        .connect()
9        .await?;
10
11    let cmd = CommandBuilder::new("ls").build();
12    let result = kitty.execute(&cmd).await;
13    println!("LS Result: {:?}", result);
14
15    Ok(())
16}