cmdkit 0.3.0

Deterministic command execution runtime for structured command graphs with configurable execution topology.
Documentation
use cmdkit::{CMDKit, Command, CommandStrategy, StrategyError, core::InvocationArgs};

struct ProbeStrategy;

impl CommandStrategy for ProbeStrategy {
    fn execute(
        &self,
        _context: &cmdkit::ExecutionContext,
        _invocation: InvocationArgs,
    ) -> Result<(), StrategyError> {
        Ok(())
    }
}

fn main() {
    println!("--FIRST--");
    CMDKit::run_with_commands(&[Command::new("alpha", "alpha command", ProbeStrategy)]);
    println!("--SECOND--");
    CMDKit::run_with_commands(&[Command::new("beta", "beta command", ProbeStrategy)]);
}