duckscript
duckscript copied to clipboard
load_commands command
Will load native library and extract+load all commands from there.
Does this add support for removing standard library commands before running a script? For example, removing the std::env, std::fs, std::net and std::process parts of the stdlib?
didn't think it should. if we want to remove commands, it should be a command on its own, like unalias removes aliases. but... i wonder what is the use case. i mean, why would i remove commands? if for example its because i don't want to give someone env/fs access, i would probably when i embed duckscript, i would not loads those commands. but i am not sure what the use case exactly is to give a knowledgeable answer.