loopflow 0.12.4

Run steps and flows with coding agents
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::process::Command;

use anyhow::{bail, Context};

pub fn run() -> anyhow::Result<()> {
    if !cfg!(target_os = "macos") {
        bail!("Loopflow.app is available on macOS only");
    }

    let status = Command::new("open")
        .args(["-a", "Loopflow"])
        .status()
        .context("launch Loopflow.app with the macOS `open` command")?;
    if !status.success() {
        bail!("cannot launch Loopflow.app: `open -a Loopflow` exited with {status}");
    }
    Ok(())
}