qleany 1.7.3

Architecture generator for Rust and C++/Qt applications.
// Generated by Qleany v0.0.1 from slint_feature_commands.tera

//! FileGenerationSharedSteps feature commands for Slint UI
#![allow(unused_imports, dead_code)]

use crate::app_context::AppContext;
use file_generation_shared_steps::{
    GetDiffDto, GetDiffReturnDto, file_generation_shared_steps_controller,
};

pub fn fill_status_in_files(ctx: &AppContext) -> Result<(), String> {
    file_generation_shared_steps_controller::fill_status_in_files(&ctx.db_context, &ctx.event_hub)
        .map_err(|e| format!("Error while fill_status_in_files: {:?}", e))
}

pub fn get_file_diff(ctx: &AppContext, dto: &GetDiffDto) -> Result<GetDiffReturnDto, String> {
    file_generation_shared_steps_controller::get_file_diff(&ctx.db_context, &ctx.event_hub, dto)
        .map_err(|e| format!("Error while get_file_diff: {:?}", e))
}