Module rune_modules::process
source · Expand description
The native process
module for the Rune Language.
§Usage
Add the following to your Cargo.toml
:
rune-modules = { version = "0.13.2", features = ["process"] }
Install it into your context:
let mut context = rune::Context::with_default_modules()?;
context.install(rune_modules::process::module(true)?)?;
Use it in Rune:
ⓘ
use process::Command;
fn main() {
let command = Command::new("ls");
command.run().await;
}
Functions§
- Construct the
process
module.