fluentci-shared 0.2.9

Programmable CI/CD engine without Containers, built on top of Nix ❄️
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use extism::{convert::Json, *};
use fluentci_common::devenv::devenv as common_devenv;

use crate::state::State;

host_fn!(pub devenv(user_data: State;) -> Json<Devenv> {
    let state = user_data.get()?;
    let state = state.lock().unwrap();
    let graph = state.graph.clone();

    let devenv = common_devenv(graph, true)?;
    Ok(Json(devenv))
});