Module steward::process

source ·
Expand description

Long running processes.

async fn run() -> steward::Result<()> {
    let server_process = process! {
        tag: "server",
        cmd: cmd! {
            exe: "cargo watch",
            env: Env::empty(),
            pwd: Loc::root(),
            msg: "Running a reloadable server",
        },
    };

    let client_process = process! {
        tag: "client",
        cmd: cmd! {
            exe: "rescript build -w",
            env: Env::empty(),
            pwd: Loc::root(),
            msg: "Watching a client",
        },
    };

    ProcessPool::run(vec![server_process, client_process]).await
}

Structs

Enums