From 5fe4d2b1952ae0ef8cad881f1f426a50eb9c6015 Mon Sep 17 00:00:00 2001 From: cupcakearmy Date: Sat, 7 Nov 2020 13:22:31 +0100 Subject: [PATCH] show version when running --- bin/unbrew.js | 6 +++++- package.json | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/bin/unbrew.js b/bin/unbrew.js index f3f417a..5c4c2a2 100755 --- a/bin/unbrew.js +++ b/bin/unbrew.js @@ -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 diff --git a/package.json b/package.json index 3f0c61b..e1e7b31 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "unbrew", - "version": "1.1.0", + "version": "1.1.1", "author": { "name": "Niccolo Borgioli", "email": "hi@nicco.io",