cosmicus 0.1.9

Cosmicus Client and Server to make the runner better
Documentation
use super::plugin::ClientPluginManager;
use crate::types::Id;
use coodev_runner::WorkflowRunner;
use std::collections::HashMap;

pub struct Context {
  pub plugin_manager: ClientPluginManager,
  pub runs: HashMap<Id, WorkflowRunner>,
}

impl Context {
  pub fn new() -> anyhow::Result<Self> {
    let plugin_manager = ClientPluginManager::new();
    let ctx = Self {
      plugin_manager,
      runs: HashMap::new(),
    };

    Ok(ctx)
  }
}