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