Testing scripts written in Rhai.
Use the following command to install the rhai-run
tool:
cargo install --path . --bin rhai-run
Run scripts using the rhai-run
tool:
rhai-run ./scripts/test_script_to_run.rhai
or
cargo run --bin rhai-run ./scripts/test_script_to_run.rhai