Add some prerequisites
This commit is contained in:
parent
124b639e50
commit
f3b70607f1
6 changed files with 81 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue