doc and other commands

This commit is contained in:
Gabriel Pastori
2023-11-19 16:31:24 -03:00
parent f28fbfcea0
commit c66cd1ad7a
14 changed files with 289 additions and 77 deletions

View File

@@ -0,0 +1,14 @@
const { exec } = require('child_process')
module.exports = (version) => {
return new Promise((resolve) => {
exec(`git fetch --all && git reset --hard ${version}`, (err, stdout) => {
if (err) {
console.error(err)
return resolve(false)
}
console.log(stdout)
resolve(true)
})
})
}