Expand description
herolib-do library
This module exposes the core functionality of herodo for use as a library, enabling script execution from other Rust code and integration tests.
§Shebang Support
Scripts can be made directly executable using a shebang line:
#!/usr/bin/env herodo
print("Hello from herodo!");Then make the script executable and run it:
chmod +x script.rhai
./script.rhaiThe shebang line is automatically stripped before execution.
Enums§
- Herodo
Error - Error type for herodo operations
Functions§
- eval
- Evaluate a script and return the result
- run
- Run a Rhai script from a file path
- run_
script - Run a script from a string
Type Aliases§
- Result
- Result type for herodo operations