23 lines
347 B
JSON
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/>';
|
|
}
|
|
},
|
|
}
|
|
|