1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//! > **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");
//! ```
pub type Result<T> = Result;