NativeScript / nativescript-cli

Command-line interface for building NativeScript apps
https://www.npmjs.com/package/nativescript
Apache License 2.0
1.04k stars 195 forks source link

tns doctor to provide component update instructions #4091

Open rakeshgirase opened 5 years ago

rakeshgirase commented 5 years ago

Is your feature request related to a problem? Please describe.

When tns doctor command is executed and some components needs an update, it prints following information

‼ Update available for component nativescript. Your current version is 4.2.3 and the latest available version is 5.0.0.
√ Component tns-core-modules has 5.0.1 version and is up to date.
‼ Update available for component tns-android. Your current version is 4.2.0 and the latest available version is 5.0.0.

Describe the solution you'd like It would be great if tns doctor also tells how to update the component. Describe alternatives you've considered Search net for update instructions https://docs.nativescript.org/releases/upgrade-instructions

Additional context None

rafaeelaudibert commented 3 years ago

@NickIliev @rosen-vladimirov Hey, might I work on this? What about a quick message at the end of it with a link to the upgrade instructions in case any of the components needs to be updated?

Also, I think that the link is now https://v7.docs.nativescript.org/releases/upgrade-instructions. Is there an easy way to verify NativeScript's last available version to make a better effort to point to the correct URL (using the correct v6, v7, v8... domain)? I ask that because if I point simply to https://docs.nativescript.org/releases/upgrade-instructions it doesn't work correctly.