Move Files Into Place For A Rust Test From Cago Watch
This is how I move files into place if I'm running tests that need to work with the filesystem and I don't want to setup a mock version.
#!/bin/bash
cargo watch -s "bash -c 'cp /Users/alan/Desktop/prep.txt \
/Users/alan/Desktop/sample/working.txt' && cargo run" \
-- end of line --