pub mod builder;
use clap::{Parser, Subcommand};
use crate::builder::RomBuilder;
#[derive(Parser)]
#[command(version, about, long_about = None)]
struct Cli {
#[command(subcommand)]
command: Commands,
}
#[derive(Subcommand)]
enum Commands {
Configure {
_config_file: Option<String>,
},
Build {},
}
fn main() {
let cli = Cli::parse();
match cli.command {
Commands::Configure { _config_file } => println!("not implemented"),
Commands::Build {} => {
let working_dir = std::env::current_dir().expect("Failed to get current directory");
let rom_path = working_dir.join("rom");
let _rb = RomBuilder::init(rom_path.to_string_lossy().to_string());
}
}
}