whoami... all such simple programs... next will be ls or cd...

This commit is contained in:
overflowerror 2014-08-08 14:24:31 +02:00
parent c628da5309
commit 83b1a37acd

View file

@ -0,0 +1,12 @@
var Whoami = function() {
}
Whoami.prototype = new Program();
Whoami.prototype.main = function(args) {
this.output(shell.username + "\n");
this.exit(0);
}
ProgramManager.programs.push({
command: "whoami",
code: Whoami
})