blash/commands/whoami.json
2010-12-23 15:45:53 +01:00

21 lines
275 B
JSON

{
"name" : "whoami",
"info" : {
"syntax" : "whoami",
"brief" : "Print effective userid",
},
"action" : function ( arg )
{
var out = '';
if ( arg )
{
return "whoami: extra operand `" + arg + "'<br/>\n";
}
return shell.json.user + "<br/>\n";
},
}