project_bin_to_json/
project_bin_to_json.rs

1/*
2SPDX-License-Identifier: GPL-3.0-or-later
3Copyright © 2024 Mike Robeson [dijksterhuis]
4*/
5mod helpers;
6use helpers::*;
7use ot_tools_io::{OctatrackFileIO, ProjectFile};
8use std::path::PathBuf;
9
10fn main() -> RBoxErr<()> {
11    let path = PathBuf::from("test-data")
12        .join("blank-project")
13        .join("project.work");
14    let outpath = PathBuf::from("project.json");
15    ProjectFile::from_data_file(&path)?.to_json_file(&outpath)?;
16    println!("New json file written to {outpath:?}");
17    Ok(())
18}