Skip to content

Instantly share code, notes, and snippets.

@flukejones
Created September 3, 2019 09:08
Show Gist options
  • Save flukejones/bdce369890ba55daf4fb5143fd5dd93c to your computer and use it in GitHub Desktop.
Save flukejones/bdce369890ba55daf4fb5143fd5dd93c to your computer and use it in GitHub Desktop.
#!/usr/bin/ion
let pwd = @(pwd)
for dir in @split(@(exa -D))
cd $pwd/$dir
echo -e "\nIn $pwd/$dir"
if test -f Cargo.toml && not test -f rust-toolchain
echo -e "Cleaning $dir"
cargo clean
end
for ndir in @split(@(exa -D))
if test -f $ndir/Cargo.toml
cargo-recursive-clean
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment