show version when running

This commit is contained in:
cupcakearmy 2020-11-07 13:22:31 +01:00
parent f4db5d2512
commit 5fe4d2b195
No known key found for this signature in database
GPG Key ID: D28129AE5654D9D9
2 changed files with 6 additions and 2 deletions

View File

@ -2,9 +2,10 @@
const cp = require('child_process')
const chalk = require('chalk')
const inquirer = require('inquirer')
const { version } = require('../package.json')
function checkIfBrewIsInstalled() {
try {
cp.execSync('brew --version')
@ -28,6 +29,9 @@ async function main() {
console.log(chalk.red.underline('Brew not installed'))
return
}
console.log(
`${chalk.bold.blue('UnBrew')} - Brew cleanup utility\nVersion: ${version}\n`
)
let leaves
let loosers

View File

@ -1,6 +1,6 @@
{
"name": "unbrew",
"version": "1.1.0",
"version": "1.1.1",
"author": {
"name": "Niccolo Borgioli",
"email": "hi@nicco.io",