Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
Add back rustfmt, with catch to print error if it fails
Browse files Browse the repository at this point in the history
  • Loading branch information
MabezDev committed Jan 11, 2024
1 parent bb88e26 commit 3bfc0cb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion post-script.rhai
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
if variable::get("wifi"){
print("\nFor more information and examples of esp-wifi showcasing Wifi,BLE and ESP-NOW, see https://github.com/esp-rs/esp-wifi/blob/main/examples.md\n");
print("\nFor more information and examples of esp-wifi showcasing Wifi,BLE and ESP-NOW, see https://github.com/esp-rs/esp-wifi/blob/main/esp-wifi/docs/examples.md\n");
}

if variable::get("ci") {
file::rename(".github/rust_ci.yml", ".github/workflows/rust_ci.yml");
}


try {
system::command("cargo", ["fmt"]);
} catch {
print("Failed to run rustfmt, please ensure rustfmt is installed and in your PATH variable.");
}

0 comments on commit 3bfc0cb

Please sign in to comment.