blash/commands/pwd.json
2010-12-22 02:28:45 +01:00

23 lines
347 B
JSON

{
"name" : "pwd",
"info" : {
"syntax" : "pwd",
"brief" : "Print name of current/working directory",
},
"action" : function ( arg ) {
if ( arg )
{
if ( arg.length > 0 )
{
return this.name + ": Too many arguments<br/>";
} else {
return shell.path + '<br/>';
}
} else {
return shell.path + '<br/>';
}
},
}