add firmware filter

This commit is contained in:
Pakin 2025-09-08 13:42:18 +07:00
parent 052cddc48e
commit 477b726442
2 changed files with 194 additions and 1 deletions

View file

@ -5,6 +5,12 @@ use crate::models::{self, recipe::Recipe01};
use std::collections::HashMap;
use std::{fs::File, io::Read};
pub trait EnumAsValue<T> {
fn name(&self) -> String;
fn value(&self) -> T;
fn get(val: T) -> Self;
}
// Change path here!
fn extract_tb_config(content: String) -> HashMap<String, String> {