# Eywa 

A helpers toolkit to make programs more simply.

## Installation

```sh
cargo add eywa
```

# Example

```rust
#[cfg(test)]
mod tests {

    use super::pandora::Program;
    use std::{collections::HashMap, vec};

    fn init_project(p: Program) -> Result<String, String> {
        p.ok()
    }

    fn main(p: Program) -> Result<String, String> {
        init_project(p)
    }

    #[test]
    pub fn ok() {
        let mut doc = HashMap::new();

        doc.insert("zuu", "Run all test based on zuu.yml");
        doc.insert("zuu init", "Initialyse a new repository");

        let program: Program = Program::new("zuu", "A toolkit program", doc, vec![]);

        assert!(program.go(main).is_ok());
    }

    #[test]
    pub fn program() {
        let mut doc: HashMap<&str, &str> = HashMap::new();

        doc.insert("zuu", "Run all test based on zuu.yml");
        doc.insert("zuu init", "Initialyse a new repository");

        let program: Program = Program::new("zuu", "A toolkit program", doc, vec![]);

        assert!(program.go(main).is_ok());
    }
}
```