aws-greengrass / aws-greengrass-gdk-cli

The Greengrass Development Kit - Command Line Interface (GDK CLI) is a tool that helps you create Greengrass V2 components either using templates or community repositories.
https://docs.aws.amazon.com/greengrass/v2/developerguide/greengrass-development-kit-cli.html
Apache License 2.0
28 stars 19 forks source link

feat: add a suggestion to update GTF version if provided version is n… #270

Closed patrzhan closed 11 months ago

patrzhan commented 11 months ago

…ot latest

Issue #, if available:

Description of changes: Adds a friendly suggestion to use the latest GTF version if a version provided in configuration is not the latest. Also provides a suggestion to use latest GTF if a version provided in command args is not the latest. However, the user will only see one of these suggestions and never see both.

Why is this change necessary: Users may have old values in their configuration and not know when a new version is available. Similar if they are used to using a command with an older argument. This suggestion should help them use our latest versions.

How was this change tested: Manually tested to see that the log appears correctly.

Any additional information or context required to review the change:

Checklist:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

codecov[bot] commented 11 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (2877cfb) 97.80% compared to head (7e4336a) 97.81%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## development #270 +/- ## =============================================== + Coverage 97.80% 97.81% +0.01% =============================================== Files 49 49 Lines 1910 1926 +16 =============================================== + Hits 1868 1884 +16 Misses 42 42 ``` | [Flag](https://app.codecov.io/gh/aws-greengrass/aws-greengrass-gdk-cli/pull/270/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aws-greengrass) | Coverage Δ | | |---|---|---| | [integ](https://app.codecov.io/gh/aws-greengrass/aws-greengrass-gdk-cli/pull/270/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aws-greengrass) | `80.94% <89.47%> (+0.05%)` | :arrow_up: | | [uat](https://app.codecov.io/gh/aws-greengrass/aws-greengrass-gdk-cli/pull/270/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aws-greengrass) | `71.23% <89.47%> (+0.34%)` | :arrow_up: | | [unit](https://app.codecov.io/gh/aws-greengrass/aws-greengrass-gdk-cli/pull/270/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aws-greengrass) | `93.82% <89.47%> (-0.06%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aws-greengrass#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.