/ .config / flakebox / bin / flakebox-in-each-cargo-workspace
flakebox-in-each-cargo-workspace
 1  #!/usr/bin/env bash
 2  # Run a given command in every directory that contains cargo workspace
 3  # Right now it just scans for `Cargo.lock`
 4  
 5  set -euo pipefail
 6  
 7  find . -name Cargo.lock | while read -r path ; do
 8    (
 9      cd "$(dirname "$path")"
10      "$@"
11    )
12  done