You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for conciseness in the template files and I use it in the git egg like this:
[user]
email=martinkunz@email.czname=MartinKunzsigningkey=FF79D9C5AB73C014# {< if hostuser_match("TPad", "kunzaatko") >}
but this throws
Error:
× Error evaluating rhai
╰─▶ Variable not found: global::SYSTEM (line 2, position 5)
in call to function 'hostuser_match' (line 1, position 1)
╭─[/home/kunzaatko/.config/yolk/eggs/git/config:4:41]
3 │ name = Martin Kunz
4 │ signingkey = FF79D9C5AB73C014 # {< if hostuser_match("TPad", "kunzaatko") >}
· ┬
· ╰── here
5 │ [core]
╰────
This should work according to my understanding of docs of global in rhai.
Why doesn't it work? Is the SYSTEM table not a constant?
Note
Perhaps this may be a mistake on my side and if so, forgive me for a fake issue.
I would like to use the system variable in functions to shorten some templating. For instance I have this function defined.
for conciseness in the template files and I use it in the
gitegg like this:but this throws
Error: × Error evaluating rhai ╰─▶ Variable not found: global::SYSTEM (line 2, position 5) in call to function 'hostuser_match' (line 1, position 1) ╭─[/home/kunzaatko/.config/yolk/eggs/git/config:4:41] 3 │ name = Martin Kunz 4 │ signingkey = FF79D9C5AB73C014 # {< if hostuser_match("TPad", "kunzaatko") >} · ┬ · ╰── here 5 │ [core] ╰────This should work according to my understanding of docs of
globalinrhai.Why doesn't it work? Is the
SYSTEMtable not a constant?