duckscript icon indicating copy to clipboard operation
duckscript copied to clipboard

load_commands command

Open sagiegurari opened this issue 5 years ago • 3 comments

Will load native library and extract+load all commands from there.

sagiegurari avatar Dec 31 '19 07:12 sagiegurari

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?

CaptObvious avatar Feb 23 '20 12:02 CaptObvious

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.

sagiegurari avatar Feb 23 '20 13:02 sagiegurari