add verbose to cli

This commit is contained in:
Gabriel Pastori
2023-11-30 15:40:52 -03:00
parent fc85a4bce8
commit 3e003725d9
7 changed files with 44 additions and 4 deletions

View File

@@ -1,6 +1,8 @@
const { exec } = require('child_process');
const { verbose } = require('./verbose.js')
module.exports = async (install = false) => {
verbose('🗣️ Verifying PM2 installation')
return new Promise((resolve, reject) => {
exec('pm2 -v', async (err) => {
if (err) {