File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -8,16 +8,22 @@ const handleError = require('node-cli-handle-error');
88
99 // changes directory and then run the shell command inside that directory
1010 await execAsync ( {
11- path : `/Users/saadirfan/GitHub ` ,
11+ path : `/Users/saadirfan/Desktop ` ,
1212 cmd : `touch example.md`
1313 } ) ;
1414
1515 // change directory and run a bunch of commands
16- const commands = [ `touch example.js` , `touch example.md` ] ;
16+ const commands = [
17+ `mkdir saad` ,
18+ `npm install` ,
19+ `npm install --only=dev`
20+ ] ;
1721 await execAsync ( {
18- path : `/Users/saadirfan/GitHub ` ,
22+ path : `/Users/saadirfan/Desktop/example ` ,
1923 cmd : commands
2024 } ) ;
25+
26+ console . log ( `Will execute after commands...` ) ;
2127 } catch ( err ) {
2228 handleError ( err ) ;
2329 }
You canβt perform that action at this time.
0 commit comments