Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fn getStr() -> String {
- fs::copy("../client/src/elm/Main.elm",
- "../client/src/elm/Main.elm.bak")
- .expect("file not copied");
- let stdout: Vec<u8>;
- stdout = Command::new("node")
- .current_dir(&Path::new("../client"))
- .arg("./node_modules/elm-static-html/index.js")
- .arg("-f")
- .arg("src/elm/Main.elm")
- .output()
- .expect("elm-static-html command failed to start")
- .stdout;
- }
- println!("Read {:?} ", stdout);
- // String::from_utf8_lossy(&*stdout)
- stdout
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement