How do you import a Risor file into another Risor file ? #58
Answered
by
myzie
serge-hulne
asked this question in
Q&A
-
How do you import a Risor file into another Risor file ? |
Beta Was this translation helpful? Give feedback.
Answered by
myzie
Jul 30, 2023
Replies: 3 comments
-
Hi @serge-hulne - I'm enabling this in the Risor CLI now. See this PR: |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you!
…On Sun, Jul 30, 2023 at 1:58 PM Curtis Myzie ***@***.***> wrote:
Hi @serge-hulne <https://github.com/serge-hulne> - I'm enabling this in
the Risor CLI now. See this PR:
#59 <#59>
—
Reply to this email directly, view it on GitHub
<#58 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACKDDSYNOXE6FUXQQ5YYL3XSZD4RANCNFSM6AAAAAA25CL7MQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Ok, this is available in Risor For example, add to a lib.risor file: func add(x, y) { x + y } Then you can run the CLI with |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
myzie
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ok, this is available in Risor
v0.8.0
, which is on homebrew as well.For example, add to a lib.risor file:
Then you can run the CLI with
risor -c "import lib; lib.add(3, 4)"