Files
pezkuwi-runtime-templates/generic-template/scripts/toml-sort.sh
T
Özgün Özerk 1bb2e96501 Transition into monorepo (#180)
* evm template integrated

* workflows modified per template

* workflow fixes
2024-05-17 12:00:25 +03:00

13 lines
376 B
Bash
Executable File

#!/bin/bash
# From the workspace directory, run :
# ./scripts/toml-sort.sh
# to format all Cargo.toml files, and
# ./scripts/toml-sort.sh --check
# to only check the formatting.
if ! type "toml-sort" > /dev/null; then
echo "Run 'cargo install --git https://github.com/4meta5/toml_sort'"
else
find . -name "Cargo.toml" -not -path "*/target/*" -exec toml-sort {} $@ \;
fi