Skip to content

Commit

Permalink
Merge pull request #15 from freemany/master
Browse files Browse the repository at this point in the history
return exec() result in object making pid available
  • Loading branch information
RIAEvangelist authored Feb 18, 2017
2 parents 3705672 + 7fcaef0 commit 012b8e9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ var commandline={
};

function runCommand(command){
exec(
//return object with pid as one of keys, pid = cmd.run()['pid'];
return exec(
command
);
}

function getString(command,callback){
exec(
//return object with pid as one of keys, pid = cmd.get()['pid'];
return exec(
command,
(
function(){
Expand Down

0 comments on commit 012b8e9

Please sign in to comment.