| Crates.io | cuo |
| lib.rs | cuo |
| version | 0.3.0 |
| created_at | 2018-05-01 10:43:24.04456+00 |
| updated_at | 2018-05-11 13:25:58.127314+00 |
| description | Automated updating and git commiting of cargo project dependencies |
| homepage | https://github.com/shockham/cuo |
| repository | https://github.com/shockham/cuo |
| max_upload_size | |
| id | 63264 |
| size | 7,355 |
Tool to automate updating minor dependency versions in rust bin projects.
Loosely Based upon the following bash script:
#!/bin/bash
function updated_outdated {
cargo update
cargo outdated
if [ $? -eq 0 ]
then
rg -q "Cargo.lock" .gitignore
if [ $? -eq 1 ]
then
git add --all
git commit -m "Update deps"
if [ $? -eq 0 ]
then
git push origin master
fi
fi
fi
}
find . -mindepth 1 -maxdepth 1 -type d | while read -r dir
do
pushd $dir
if [[ -f "Cargo.toml" ]]
then
echo "CHECKING $dir"
updated_outdated
fi
popd
done