6 releases (3 breaking)
0.4.3 | Nov 20, 2023 |
---|---|
0.4.2 | Nov 19, 2023 |
0.3.0 | Nov 15, 2023 |
0.2.0 | Nov 14, 2023 |
0.1.0 | Nov 13, 2023 |
#4 in #kitty
29KB
702 lines
kitty-remote-bindings
Rust bindings to call Kitty terminal remote commands.
The library is just a type safe wrapper around the kitty
command.
Available commands
See the available commands their options at docs.rs
lib.rs
:
Kitty remote command bindings for rust
This crate provides access to the Kitty terminal's remote control functionality. At the moment !
this is achieved by creating std::process::Command
objects through a convenient and type safe
API interface.
Examples:
Send text to Window 1
use std::process::Command;
use kitty_remote_bindings::{command::options::Matcher, command::SendText, model::WindowId};
let mut send_text = SendText::new(r#"echo "Hello world""#.to_string())
.matcher(Matcher::Id(WindowId(2)));
let cmd = Command::from(&send_text);
// then run command:
//
// cmd.status().expect("failed to execute send-text");
Dependencies
~1–2MB
~40K SLoC