We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e2b45a commit 058decfCopy full SHA for 058decf
run-all.sh
@@ -2,6 +2,7 @@
2
3
# Use the find command to search for Justfiles in the current directory and its subdirectories
4
justfiles=$(find . -name "Justfile")
5
+cargos=$(find . -name "Cargo.toml")
6
7
# Save the current directory so we can change back to it later
8
orig_dir=$(pwd)
@@ -21,5 +22,20 @@ for justfile in $justfiles; do
21
22
popd
23
done
24
25
+# Loop through each Cargo.toml
26
+for cargo in $cargos; do
27
+ # Get the directory containing the Cargo.toml
28
+ dir=$(dirname $cargo)
29
+
30
+ # Change to the directory containing the Cargo.toml
31
+ pushd $dir
32
33
+ # Run cargo
34
+ cargo run
35
36
+ # Change back to the original directory
37
+ popd
38
+done
39
40
# Change back to the original directory
41
cd $orig_dir
0 commit comments