Skip to content

Commit

Permalink
feat(clafrica): implement extension via scripting
Browse files Browse the repository at this point in the history
Now, the Rhai scripting language is supported as embedded scripting language.
  • Loading branch information
pythonbrad committed Aug 31, 2023
1 parent aa2942b commit 3ab813d
Show file tree
Hide file tree
Showing 16 changed files with 384 additions and 28 deletions.
218 changes: 194 additions & 24 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
members = [
"clafrica-lib",
"clafrica"
]
]
1 change: 1 addition & 0 deletions clafrica/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ authors = ["Fomegne Brady <[email protected]>"]
clafrica-lib = { version = "0.3.0", path = "../clafrica-lib" }
enigo = "0.1.2"
rdev = "0.5.2"
rhai = "1.15.1"
serde = { version = "1.0.163", features = ["serde_derive"] }
toml = "0.7.3"

Expand Down
4 changes: 4 additions & 0 deletions clafrica/data/bad_script.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# script file not found

[translators]
not_found = "not_found"
4 changes: 4 additions & 0 deletions clafrica/data/bad_script2.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# script parsing error

[translators]
invalid = "./scripts/invalid.rhai"
Loading

0 comments on commit 3ab813d

Please sign in to comment.