1
0
mirror of https://github.com/Adorable-Catgirl/Zorya-NEO.git synced 2024-12-23 17:38:07 +11:00

Create Microruntime_API.md

This commit is contained in:
Adorable-Catgirl 2019-08-29 13:59:07 -05:00 committed by GitHub
parent dbacdaef13
commit 8227baf768
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

5
docs/Microruntime_API.md Normal file
View File

@ -0,0 +1,5 @@
# Microruntime API
Microruntimes should provide a standard enviroment for loading modules and running opperating systems, be it from disk or network.
The microruntime should provide two methods: loadmodule and entry.
* envs:loadmodule(string) - String is the name of the module, this should be able to load modules for use in a boot config
* envs:entry(string, function(envs)) - String is the display name of the entry, and the function is the function executed by the entry, passing the enviroment to the function as the first argument.