runtimejs / runtime

[not maintained] Lightweight JavaScript library operating system for the cloud
http://runtimejs.org
Apache License 2.0
1.93k stars 128 forks source link

Built-In Commands #48

Closed facekapow closed 9 years ago

facekapow commented 9 years ago

How about some built-in, necessary shell commands? help (extremely needed), echo (really easy to impl.), ping (like the default 1, but customizable), clear, exit/shutdown/reboot etc...

I've already been able to implement all of these except for clear.

I think they would be useful.

iefserge commented 9 years ago

@ArielAbreu yes, that would be a great idea to support some basic commands. There is no filesystem at the moment though (all code and files need to be bundled up using runtimeify), right now it's more like a network-only system (TCPSocket/UDPSocket are available).

facekapow commented 9 years ago

@iefserge So, as of now, would storing files in the cloud be suitable? For ex. Google Drive mounting? Is there any way of mounting a remote FS?

iefserge commented 9 years ago

@ArielAbreu Should be possible to use FTP/HTTP to download or upload files. Other than that there is no local filesystem (might be added in a future though).

piranna commented 9 years ago

This could be a good use case for the VFS, here is not needed a block device and all the fs operations would be implemented as HTTP requests :-)

facekapow commented 9 years ago

I'll try to work on this a bit, see what can be done as of now, and what could be done with some hacking, err, tweaking 😄.

facekapow commented 9 years ago

PR #69 adds poweroff and reboot, the rest (except for help) are in runtime-shell. Closing this...