mirror of
https://github.com/n08i40k/schedule-parser-rusted.git
synced 2025-12-06 09:47:50 +03:00
Первый коммит
This commit is contained in:
15
src/main.rs
Normal file
15
src/main.rs
Normal file
@@ -0,0 +1,15 @@
|
||||
use std::fs;
|
||||
use std::path::Path;
|
||||
use schedule_parser::parse_xls;
|
||||
|
||||
fn main() {
|
||||
let groups = parse_xls(Path::new("./schedule.xls"));
|
||||
|
||||
fs::write(
|
||||
"./schedule.json",
|
||||
serde_json::to_string_pretty(&groups)
|
||||
.expect("Failed to serialize schedule!")
|
||||
.as_bytes(),
|
||||
)
|
||||
.expect("Failed to write schedule");
|
||||
}
|
||||
Reference in New Issue
Block a user