Work on locale stage.
This commit is contained in:
@@ -53,4 +53,11 @@ pub struct KiraConfig {
|
||||
pub config_trail: Vec<StageResult>,
|
||||
}
|
||||
|
||||
impl KiraConfig {
|
||||
pub fn get_stage(&self, name: &str) -> Option<StageResult> {
|
||||
self.config_trail.iter().find(|v| v.name == name)
|
||||
.and_then(|v| Some(v.clone()))
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user