canic-core 0.24.2

Canic — a canister orchestration and management toolkit for the Internet Computer
Documentation
use crate::{
    dto::{error::Error, state::AppCommand},
    workflow::state::AppStateWorkflow,
};

/// Workflow Query Re-export
pub use crate::workflow::state::query::{AppStateQuery, SubnetStateQuery};

///
/// AppStateApi
///

pub struct AppStateApi;

impl AppStateApi {
    pub async fn execute_command(cmd: AppCommand) -> Result<(), Error> {
        AppStateWorkflow::execute_command(cmd)
            .await
            .map_err(Error::from)
    }
}