initial commit

This commit is contained in:
Bryan McShea
2024-01-16 00:15:13 -05:00
commit 42b47201fe
18 changed files with 1922 additions and 0 deletions

18
src/lib.rs Normal file
View File

@@ -0,0 +1,18 @@
use std::env;
use clap::ValueEnum;
#[derive(Copy, Clone, ValueEnum)]
pub enum Bootloader {
UEFI,
BIOS,
}
impl Bootloader {
pub fn img_path(&self) -> &'static str {
match self {
Bootloader::UEFI => env!("UEFI_IMAGE"),
Bootloader::BIOS => env!("BIOS_IMAGE"),
}
}
}