apm-cli 0.1.9

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
18
use anyhow::Result;
use apm_core::config::Config;
use std::path::Path;

pub fn run(root: &Path) -> Result<()> {
    let config = Config::load(root)?;
    match config.agents.instructions {
        None => println!("No instructions file configured in [agents] instructions."),
        Some(rel_path) => {
            let path = root.join(&rel_path);
            match std::fs::read_to_string(&path) {
                Ok(contents) => print!("{}", contents),
                Err(e) => anyhow::bail!("cannot read {}: {}", path.display(), e),
            }
        }
    }
    Ok(())
}