initial commit
This commit is contained in:
18
src/lib.rs
Normal file
18
src/lib.rs
Normal 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"),
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user