Add some prerequisites

This commit is contained in:
Adrian Heine 2017-02-16 20:48:46 +01:00
parent 124b639e50
commit f3b70607f1
6 changed files with 81 additions and 0 deletions

View file

@ -1,12 +1,17 @@
use std::borrow::Cow;
use std::error::Error;
use std::fmt::Display;
use resources::Resource;
pub trait Symbol: Display {
fn target_reached(&self) -> Result<bool, Box<Error>>;
fn execute(&self) -> Result<(), Box<Error>>;
fn get_prerequisites(&self) -> Vec<Box<Resource>> {
vec![]
}
}
pub mod dir;
pub mod file;
pub mod git;
pub mod npm;