You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(toolkit): show when new version is available (#2484)
Check, once a day, if a newer CDK version available in npm and announce
it's availability at the end of a significant command.
TESTING:
* New unit tests for version.ts
* Downgraded version number in package.json and verified that the
expected message is printed.
* Verified that the file cache throttles the check to run only once per
day.
Closes#297
@@ -76,7 +76,7 @@ async function parseCommandLineArguments() {
76
76
.option('language',{type: 'string',alias: 'l',desc: 'the language to be used for the new project (default can be configured in ~/.cdk.json)',choices: initTemplateLanuages})
77
77
.option('list',{type: 'boolean',desc: 'list the available templates'}))
78
78
.commandDir('../lib/commands',{exclude: /^_.*/})
79
-
.version(VERSION)
79
+
.version(version.DISPLAY_VERSION)
80
80
.demandCommand(1,'')// just print help
81
81
.help()
82
82
.alias('h','help')
@@ -96,8 +96,7 @@ async function initCommandLine() {
0 commit comments