Skip to content

Commit

Permalink
auto-gen linting fix maybe
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonwatson committed Jan 29, 2024
1 parent aca04ea commit 7c75c2a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/gen_io_types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: dtolnay/rust-toolchain@stable
# Install OpenSSL
- name: Install OpenSSL
run: sudo apt-get install libssl-dev
run: sudo apt-get update && sudo apt-get install libssl-dev
# Generate IOTypes.java
- name: Run gen_io_types
working-directory: gen_io_types
Expand Down
3 changes: 3 additions & 0 deletions gen_io_types/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,12 @@ async fn main() {

let mut outf = std::fs::File::create(source_dir.join("src/main/java/org/frc5572/robotools/IOTypes.java")).unwrap();
writeln!(&mut outf, "package org.frc5572.robotools;\n").unwrap();
writeln!(&mut outf, "/** Auto-generated list of IO interfaces and classes. */").unwrap();
writeln!(&mut outf, "public class IOTypes {{\n").unwrap();
writeln!(&mut outf, " /** List of interfaces disallowed a direct path to Robot.java. */").unwrap();
writeln!(&mut outf, " public static String[] ioInterfaces = {}", interfaces).unwrap();
writeln!(&mut outf, " }};").unwrap();
writeln!(&mut outf, " /** List of classes disallowed a direct path to Robot.java. */").unwrap();
writeln!(&mut outf, " public static String[] ioClasses = {}", classes).unwrap();
writeln!(&mut outf, " }};").unwrap();
writeln!(&mut outf, "}}\n").unwrap();
Expand Down

0 comments on commit 7c75c2a

Please sign in to comment.