mirror of
https://github.com/aljazceru/cdk.git
synced 2025-12-19 13:44:55 +01:00
This removes rustup from the scripts. As rust versions should be managed through the nix shell and not rust up.
15 lines
257 B
Bash
Executable File
15 lines
257 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
flags=""
|
|
|
|
# Check if "check" is passed as an argument
|
|
if [[ "$#" -gt 0 && "$1" == "check" ]]; then
|
|
flags="--check"
|
|
fi
|
|
|
|
|
|
# Check workspace crates
|
|
cargo fmt --all -- --config format_code_in_doc_comments=true $flags
|