mirror of
https://github.com/bvanroll/rpiRadio.git
synced 2025-08-30 12:32:47 +00:00
29 lines
523 B
JavaScript
29 lines
523 B
JavaScript
var cmd=require('../cmd.js');
|
|
|
|
cmd.get(
|
|
'pwd',
|
|
function(data){
|
|
console.log('the current working dir is : ',data)
|
|
}
|
|
);
|
|
|
|
cmd.run('touch example.created.file');
|
|
|
|
cmd.get(
|
|
'ls',
|
|
function(data){
|
|
console.log('the current dir contains these files :\n\n',data)
|
|
}
|
|
);
|
|
|
|
cmd.get(
|
|
`
|
|
git clone https://github.com/RIAEvangelist/node-cmd.git
|
|
cd node-cmd
|
|
ls
|
|
`,
|
|
function(data){
|
|
console.log('the node-cmd clone dir contains these files :\n\n',data)
|
|
}
|
|
);
|