initial skeleton
This commit is contained in:
parent
dc79fa2448
commit
71f89dde9c
60 changed files with 3480 additions and 0 deletions
17
crates/aim-core/src/app/update.rs
Normal file
17
crates/aim-core/src/app/update.rs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
use crate::domain::app::AppRecord;
|
||||
use crate::domain::update::{PlannedUpdate, UpdatePlan};
|
||||
|
||||
pub fn build_update_plan(apps: &[AppRecord]) -> Result<UpdatePlan, BuildUpdatePlanError> {
|
||||
Ok(UpdatePlan {
|
||||
items: apps
|
||||
.iter()
|
||||
.map(|app| PlannedUpdate {
|
||||
stable_id: app.stable_id.clone(),
|
||||
display_name: app.display_name.clone(),
|
||||
})
|
||||
.collect(),
|
||||
})
|
||||
}
|
||||
|
||||
#[derive(Debug, Eq, PartialEq)]
|
||||
pub enum BuildUpdatePlanError {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue