rhai/scripts/README.md

31 lines
416 B
Markdown
Raw Normal View History

2020-10-07 16:56:21 +02:00
Testing Scripts
===============
Testing scripts written in Rhai.
2021-04-20 05:06:05 +02:00
Install `rhai-run` Tool
-----------------------
Use the following command to install the `rhai-run` tool:
```sh
cargo install --path . --bin rhai-run
```
2020-10-07 16:56:21 +02:00
How to Run
----------
2021-04-16 04:33:55 +02:00
Run scripts using the `rhai-run` tool:
2020-10-07 16:56:21 +02:00
2021-04-20 05:06:05 +02:00
```sh
rhai-run ./scripts/test_script_to_run.rhai
```
or
2021-04-16 04:33:55 +02:00
```sh
cargo run --bin rhai-run ./scripts/test_script_to_run.rhai
2020-10-07 16:56:21 +02:00
```