rusty_alfred

Crates.iorusty_alfred
lib.rsrusty_alfred
version0.1.1
sourcesrc
created_at2016-11-06 19:53:43.130273
updated_at2016-11-06 21:27:51.184558
descriptionInteraction with Alfred 3 workflows
homepage
repositoryhttps://github.com/jkcclemens/rusty_alfred
max_upload_size
id7150
size37,453
Anna (anna-is-cute)

documentation

https://docs.rs/crate/rusty_alfred/

README

rusty_alfred

docs

Rusty Alfred is a quick library built to interact with Alfred 3 via Script Filters in the JSON format.

Here's a quick example, but there are more in the bin directory.

extern crate rusty_alfred;

use rusty_alfred::*;

fn main() {
  let items = AlfredItems::new()
    .item(AlfredItem::new("First item")
      .subtitle("The first item's subtitle"))
    .item(AlfredItem::new("Second item")
      .subtitle("Another subtitle!"));
  println!("{}", items.to_json().unwrap());
}

The above example produces example output

Commit count: 9

cargo fmt