turtle-build 0.5.8

Ninja-compatible build system for high-level programming languages
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
mod error;
#[cfg(test)]
mod fake;
mod os;

#[cfg(test)]
pub use self::fake::FakeCommandRunner;
pub use self::{error::CommandError, os::OsCommandRunner};
use async_trait::async_trait;
use std::process::{ExitStatus, Output};

#[async_trait]
pub trait CommandRunner {
    async fn run(&self, command: &str) -> Result<Output, CommandError>;
    async fn run_with_console(&self, command: &str) -> Result<ExitStatus, CommandError>;
}