Function alfred_workflow::write_items
source · Expand description
Writes Alfred items to the provided writer.
Arguments
writer
- the writer to writer iterms to.vec!items
- the Alfred items to be written.vec!
Examples
use alfred::{json, Item};
use std::{io, io::Write};
use failure::Error;
fn main() -> Result<(), Error> {
let item = alfred::ItemBuilder::new("settings")
.subtitle("settings for the workflow")
.into_item();
alfred_workflow::write_items(io::stdout(), &[item])
}