lang: funcs: Add deploy package with readfile related functions
This adds a readfile function to actually access files from our deploy. A fun side effect is that we can even access our own code! In general, it's a good reminder that you should only run trusted code on your own infrastructure. This also includes a fancy new test case.
This commit is contained in:
3
lang/interpret_test/TestAstFunc2/deploy-readfile1.output
Normal file
3
lang/interpret_test/TestAstFunc2/deploy-readfile1.output
Normal file
@@ -0,0 +1,3 @@
|
||||
Vertex: test[This is a different file1 in the files/ folder.]
|
||||
Vertex: test[This is a different file2 in the files/ folder.]
|
||||
Vertex: test[This is a different file3 in the files/ folder inside of the mod1/ module.]
|
||||
Reference in New Issue
Block a user