Skip to content

Commit

Permalink
feat(clafrica): Implement extension via scripting
Browse files Browse the repository at this point in the history
Implementation of the rhai scripting language.
  • Loading branch information
pythonbrad committed Aug 19, 2023
1 parent fa0b686 commit 6ebeadc
Show file tree
Hide file tree
Showing 21 changed files with 714 additions and 165 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 <fomegnemeudje@outlook.com>"]
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"
1 change: 0 additions & 1 deletion clafrica/data/blank_sample.toml
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
[data]
Loading

0 comments on commit 6ebeadc

Please sign in to comment.