You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
300 B
Plaintext
16 lines
300 B
Plaintext
11 months ago
|
#!/bin/nu
|
||
|
|
||
|
def main [
|
||
|
dir: string # The directory that contains the rust projects
|
||
|
] {
|
||
|
echo $"Cleaning ($dir)"
|
||
|
(
|
||
|
ls $dir
|
||
|
| get name
|
||
|
| where ($it | ls $it | where name =~ 'Cargo.toml' | length ) > 0
|
||
|
| par-each { cd $in; cargo clean }
|
||
|
| ignore
|
||
|
)
|
||
|
echo $"($dir) cleaned"
|
||
|
}
|