const { terminal } = require('javascript-simple-terminal')
terminal('git clone https://github.com/MichaelDimmitt/simp-js_term.git')
https://github.com/TylerGlisson/getRepos/blob/javascript-simple-terminal/getRepos.js
git clone https://github.com/MichaelDimmitt/javascript-simple-terminal.git; cd javascript-simple-terminal; brew install npm; npm install; npm test; # The test suite takes 2 minutes to run please be patient. # This is because it scaffolds an angular application in the background.
Running the terminal: (usage)
-
node run_terminal.js 'ls;' ls pwd // result: executes the command
ls; ls; pwd;
-
node run_terminal.js ls pwd ls // result: executes the command
ls; pwd; ls;
-
node run_terminal.js 'ls; echo "hi"; pwd' // result: executes the command `ls; echo "hi"; pwd"