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