Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added formatter #204

Merged
merged 1 commit into from
Feb 14, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions format.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#! /bin/zsh

# File to modify
FILE="rust-toolchain.toml"

# Check if file exists
if [ ! -f "$FILE" ]; then
echo "Error: $FILE does not exist."
exit 1
fi

# Backup the original file
cp "$FILE" "${FILE}.bak"

# Remove the specified line and store the content in a variable
content=$(grep -v 'channel = "1.80.0"' "rust-toolchain.toml")
echo "$content" > "$FILE"

# Execute the commands

cargo b && ./target/debug/jito-restaking-cli --markdown-help > ./docs/_tools/00_cli.md && ./target/debug/jito-shank-cli && yarn generate-clients && cargo b
cargo sort --workspace
cargo fmt --all
cargo nextest run --all-features
cargo clippy --all-features -- -D warnings -D clippy::all -D clippy::nursery -D clippy::integer_division -D clippy::arithmetic_side_effects -D clippy::style -D clippy::perf


# # Reconstruct the file content with the line in the correct position
mv "${FILE}.bak" "$FILE"
Loading