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 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
// Copyright (c) 2018 Hamid R. Ghadyani. // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. This file may not be copied, modified, or distributed // except according to those terms. //! Write [Workflows] for [Alfred][alfred.app] app with ease! //! //! This crate adds enhanced features and quality-of-life improvements to //! [other alfred crate][alfred]'s basic functionality of creating **Script Filter** items. //! //! Using this crate to create your workflows, you can //! - Set up automatic update of workflow ([`updater`] module). //! - Painlessly read/write data related to workflow (settings, cache data, ...) ([`data`] module). //! //! [`updater`]: updater/index.html //! [`data`]: data/index.html //! [alfred]: https://crates.io/crates/alfred //! [alfred.app]: http://www.alfredapp.com //! [Workflows]: https://www.alfredapp.com/workflows/ //! #![doc(html_root_url = "https://docs.rs/alfred-rs/0.4.0")] extern crate alfred; #[macro_use] extern crate failure; extern crate serde; extern crate serde_json; #[cfg(test)] extern crate mockito; #[cfg(test)] extern crate tempfile; #[macro_use] extern crate log; extern crate chrono; extern crate env_logger; extern crate reqwest; extern crate semver; #[macro_use] extern crate serde_derive; extern crate time; extern crate url; extern crate url_serde; use alfred::env; use failure::err_msg; use failure::Error; pub mod data; pub mod updater; pub use self::data::Data; pub use self::updater::Updater;