Home
Head's Up: I'm in the middle of upgrading my site. Most things are in place, but there are something missing and/or broken including image alt text. Please bear with me while I'm getting things fixed.

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" \