|
|
|
|
|
by lotwxyz
2306 days ago
|
|
In my web-based shell implementation [0], I use a library concept, such that you have to "import" commands into the current execution environment. You can either do this kind of thing: $ import fs
This imports all the commands in the 'fs' library, without any concern for namespaces, and if there are any already existing commands with the same name, they are not overwritten (the new ones are not imported).But if you do this: $ import fs as myfs
Then, all the commands in the 'fs' library are invoked like this: $ myfs.vim
[0] https://dev.lotw.xyz/shell.os |
|