project_bin_to_yaml/
project_bin_to_yaml.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.yaml");
15    ProjectFile::from_data_file(&path)?.to_yaml_file(&outpath)?;
16    println!("New yaml file written to {outpath:?}");
17    Ok(())
18}