Skip to content

Commit 94aa29d

Browse files
authored
Merge pull request #111 from parthlambdatest/Dot-3170
add additional description with latest release
2 parents ae67bfd + 50ef2f3 commit 94aa29d

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/index.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,17 @@ import pkgJSON from './../package.json'
1212
let log = logger;
1313

1414
try {
15+
let { data: { latestVersion, deprecated, additionalDescription, additionalDescriptionLatest } } = await client.checkUpdate(log);
1516
log.info(`\nLambdaTest SmartUI CLI v${pkgJSON.version}`);
16-
let { data: { latestVersion, deprecated } } = await client.checkUpdate(log);
17-
if (deprecated) log.warn(`This version is deprecated. A new version ${latestVersion} is available!\n`);
18-
else if (pkgJSON.version !== latestVersion) log.info(chalk.gray(`A new version ${latestVersion} is available!\n`));
17+
log.info(`${additionalDescription}`);
18+
if (deprecated){
19+
log.warn(`This version is deprecated. A new version ${latestVersion} is available!`);
20+
log.warn(`${additionalDescriptionLatest}\n`);
21+
}
22+
else if (pkgJSON.version !== latestVersion){
23+
log.info(chalk.gray(`A new version ${latestVersion} is available!`));
24+
log.info(`${additionalDescriptionLatest}\n`);
25+
}
1926
else log.info(chalk.gray('https://www.npmjs.com/package/@lambdatest/smartui-cli\n'));
2027
} catch (error) {
2128
log.debug(error);

0 commit comments

Comments
 (0)