mirror of
https://github.com/sigmasternchen/webcli
synced 2025-03-15 06:08:54 +00:00
whoami... all such simple programs... next will be ls or cd...
This commit is contained in:
parent
c628da5309
commit
83b1a37acd
1 changed files with 12 additions and 0 deletions
12
data/scripts/programs/Whoami.js
Normal file
12
data/scripts/programs/Whoami.js
Normal 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
|
||||
})
|
Loading…
Reference in a new issue