yabai 0.5.0

A crate for communicating with the yabai tiling window manager.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::env;

/// example usage:
/// cargo run --example message -- query --windows
fn main() -> anyhow::Result<()> {
    let args = env::args().collect::<Vec<String>>();
    let command = args[1..].join(" ");

    let result = yabai::send(&command)?;

    if let Some(result) = result {
        println!("{}", result);
    }

    Ok(())
}