1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
//! # OpenRunner
//!
//! A Rust library for running OpenScript code with fine-grained control over execution,
//! I/O, environment, and process lifecycle.
//!
//! ## Features
//!
//! - Run OpenScript code from Rust (string or file)
//! - Full async support with tokio
//! - Fine-grained control over I/O, environment, working directory, timeout, and more
//! - Spawn OpenScript processes for long-running jobs
//! - Convenience macros for quick scripting
//! - Designed to integrate seamlessly with OpenScript workflows
//!
//! ## Quick Start
//!
//! ```rust
//! use openrunner_rs::{run, ScriptOptions};
//!
//! # #[tokio::main]
//! # async fn main() -> openrunner_rs::Result<()> {
//! let options = ScriptOptions::new().openscript_path("/bin/sh");
//! let result = run(r#"echo "Hello from OpenRunner!""#, options).await?;
//! println!("Output: {}", result.stdout);
//! # Ok(())
//! # }
//! ```
//!
//! ## Advanced Usage
//!
//! ```rust
//! use openrunner_rs::{run, ScriptOptions};
//! use std::time::Duration;
//!
//! # #[tokio::main]
//! # async fn main() -> openrunner_rs::Result<()> {
//! let options = ScriptOptions::new()
//! .openscript_path("/bin/sh")
//! .timeout(Duration::from_secs(30))
//! .env("MY_VAR", "custom_value")
//! .args(vec!["arg1".to_string(), "arg2".to_string()]);
//!
//! let result = run("echo $MY_VAR $1 $2", options).await?;
//! println!("Result: {}", result.stdout);
//! # Ok(())
//! # }
//! ```
pub use ;
pub use ;
pub use ;
pub use Child;