cli: fix ppman install output

This commit is contained in:
Thomas Hobson 2021-02-28 01:16:33 +13:00
parent 55f481e465
commit 7d3777aef8
No known key found for this signature in database
GPG Key ID: 9F1FD9D87950DB6F
1 changed files with 2 additions and 2 deletions

View File

@ -7,8 +7,8 @@ exports.describe = 'Installs the named package'
const msg_format = { const msg_format = {
'color': p => `${p.success ? chalk.green.bold('✓') : chalk.red.bold('❌')} Installation ${p.success ? "succeeded" : "failed: " + p.message}`, 'color': p => `${p.language ? chalk.green.bold('✓') : chalk.red.bold('❌')} Installation ${p.language ? "succeeded" : "failed: " + p.message}`,
'monochrome': p => `Installation ${p.success ? "succeeded" : "failed: " + p.message}`, 'monochrome': p => `Installation ${p.language ? "succeeded" : "failed: " + p.message}`,
'json': JSON.stringify 'json': JSON.stringify
} }