Skip to content

Commit

Permalink
added git clone demo back in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
RIAEvangelist committed Nov 12, 2020
1 parent fe2c5ca commit 3869d50
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ ls`,

var cmd=require('node-cmd');

//Windows multiline commands are not guaranteed to work
//Windows multiline commands are not guaranteed to work try condensing to a single line.

const syncData=cmd.runSync('cd ./example');
const syncData=cmd.runSync('cd ./example & dir');

console.log(`
Expand All @@ -77,12 +77,25 @@ ls`,

cmd.run(`dir`,
function(err, data, stderr){
console.log('the example dir contains : ',data)
console.log('the node-cmd dir contains : ',data)
}
);

```

```javascript

//clone this repo!

var cmd=require('node-cmd');

const syncClone=cmd.runSync('git clone https://github.com/RIAEvangelist/node-cmd.git');

console.log(syncClone);

```


### Getting the CMD Process ID

```javascript
Expand Down

0 comments on commit 3869d50

Please sign in to comment.