| Crates.io | rusty_alfred |
| lib.rs | rusty_alfred |
| version | 0.1.1 |
| created_at | 2016-11-06 19:53:43.130273+00 |
| updated_at | 2016-11-06 21:27:51.184558+00 |
| description | Interaction with Alfred 3 workflows |
| homepage | |
| repository | https://github.com/jkcclemens/rusty_alfred |
| max_upload_size | |
| id | 7150 |
| size | 37,453 |
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
