mirror of https://github.com/abpframework/abp.git
3 changed files with 18 additions and 2 deletions
@ -0,0 +1,15 @@ |
|||
const Confirm = require('prompt-confirm'); |
|||
const execa = require('execa'); |
|||
|
|||
(async () => { |
|||
const answer = await new Confirm('Would you like to push?').run().then(answer => answer); |
|||
|
|||
if (answer) { |
|||
try { |
|||
await execa('git', ['push'], { stdout: 'inherit' }); |
|||
console.log('Successfully!'); |
|||
} catch (error) { |
|||
console.log('An error occured.' + error); |
|||
} |
|||
} |
|||
})(); |
|||
Loading…
Reference in new issue