mirror of
https://github.com/cupcakearmy/unbrew.git
synced 2024-12-22 16:16:26 +00:00
show version when running
This commit is contained in:
parent
f4db5d2512
commit
5fe4d2b195
@ -2,9 +2,10 @@
|
|||||||
|
|
||||||
const cp = require('child_process')
|
const cp = require('child_process')
|
||||||
const chalk = require('chalk')
|
const chalk = require('chalk')
|
||||||
|
|
||||||
const inquirer = require('inquirer')
|
const inquirer = require('inquirer')
|
||||||
|
|
||||||
|
const { version } = require('../package.json')
|
||||||
|
|
||||||
function checkIfBrewIsInstalled() {
|
function checkIfBrewIsInstalled() {
|
||||||
try {
|
try {
|
||||||
cp.execSync('brew --version')
|
cp.execSync('brew --version')
|
||||||
@ -28,6 +29,9 @@ async function main() {
|
|||||||
console.log(chalk.red.underline('Brew not installed'))
|
console.log(chalk.red.underline('Brew not installed'))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
console.log(
|
||||||
|
`${chalk.bold.blue('UnBrew')} - Brew cleanup utility\nVersion: ${version}\n`
|
||||||
|
)
|
||||||
|
|
||||||
let leaves
|
let leaves
|
||||||
let loosers
|
let loosers
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "unbrew",
|
"name": "unbrew",
|
||||||
"version": "1.1.0",
|
"version": "1.1.1",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Niccolo Borgioli",
|
"name": "Niccolo Borgioli",
|
||||||
"email": "hi@nicco.io",
|
"email": "hi@nicco.io",
|
||||||
|
Loading…
Reference in New Issue
Block a user