apm-cli 0.1.10

CLI project manager for running AI coding agents in parallel, isolated by design.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use anyhow::Result;
use std::path::Path;

pub fn run(root: &Path, id_arg: &str, new_state: String, no_aggressive: bool, force: bool) -> Result<()> {
    let out = apm_core::state::transition(root, id_arg, new_state, no_aggressive, force)?;
    println!("{}: {}{}", out.id, out.old_state, out.new_state);
    if let Some(wt) = out.worktree_path {
        println!("{}", wt.display());
    }
    for msg in &out.messages {
        println!("{msg}");
    }
    for w in &out.warnings {
        eprintln!("{w}");
    }
    Ok(())
}