Skip to content

Commit

Permalink
feat: add log to show the version status of cli (#1393)
Browse files Browse the repository at this point in the history
  • Loading branch information
AayushSaini101 authored May 2, 2024
1 parent a4d95fd commit 8b81880
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@
"oclif": {
"commands": "./lib/commands",
"bin": "asyncapi",
"plugins": [],
"hooks": {
"command_not_found": [
"./lib/hooks/command_not_found/myhook"
Expand All @@ -128,6 +127,12 @@
"generate": {
"description": "Generate models and template"
}
},
"plugins": ["@oclif/plugin-warn-if-update-available"],
"warn-if-update-available": {
"frequency": 24,
"message": "\n<%= chalk.yellow('╭────────────────────────────────────────────────────────────────╮') %>\n<%= chalk.yellow('│ │') %>\n<%= chalk.yellow('│') %> Update available! <%= chalk.red(config.version) %> → <%= chalk.greenBright(latest) %>. <%= chalk.yellow('│') %>\n<%= chalk.yellow('│') %> <%= chalk.magentaBright('Changelog:') %> https://github.com/asyncapi/cli/releases/tag/v<%= latest %> <%= chalk.yellow('│') %>\n<%= chalk.yellow('│') %> Run \"<%= chalk.magentaBright('npm install -g @asyncapi/cli@latest') %>\" to update. <%= chalk.yellow('│') %>\n<%= chalk.yellow('│') %> <%= chalk.yellow('│') %>\n<%= chalk.yellow('╰────────────────────────────────────────────────────────────────╯') %>",
"frequencyUnit": "hours"
}
},
"publishConfig": {
Expand Down

0 comments on commit 8b81880

Please sign in to comment.