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::envhub::envhub as common_envhub;

use crate::state::State;

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

    let envhub = common_envhub(graph, true)?;
    Ok(Json(envhub))
});