Mountain/Command/SourceControlManagement/
StageSCMResource.rs1#![allow(non_snake_case)]
2
3use std::sync::Arc;
13
14use serde_json::{Value, json};
15use tauri::{State, command};
16
17use crate::{ApplicationState::State::ApplicationState::ApplicationState, dev_log};
18
19#[command]
20pub async fn StageSCMResource(
21 _State:State<'_, Arc<ApplicationState>>,
22
23 ResourceURI:String,
24
25 Staged:bool,
26) -> Result<Value, String> {
27 dev_log!("commands", "staging resource: {}, staged: {}", ResourceURI, Staged);
28
29 Ok(json!({ "success": true }))
30}