pub fn generate_board_types_file( boards_dir: &Path, ) -> Result<(), Box<dyn Error>>
Generates a board_types.txt file listing all valid boards.
board_types.txt
Returns an error if the file cannot be created or written to.