Skip to content

Commit

Permalink
turn leaves into environment.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszKielar committed Sep 7, 2020
1 parent 144cef3 commit 7b6b95a
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,13 @@ fn main() -> io::Result<()> {
println!();

println!("----leaves----");
for leaf in get_leaves().iter() {
let leaves = get_leaves();
for leaf in leaves.iter() {
println!("{}", leaf)
}

println!("----to-environment.yml----");
let env = CondaEnv::new(
String::from("test"),
vec![String::from("conda1"), String::from("conda2")],
Some(vec![String::from("pip1"), String::from("pip2")]),
);
println!("----leaves-to-environment.yml----");
let env: CondaEnv = leaves.into();
env.to_yml()?;

Ok(())
Expand Down

0 comments on commit 7b6b95a

Please sign in to comment.