Skip to content

Conversation

@kindermoumoute
Copy link
Contributor

No description provided.

@kindermoumoute kindermoumoute changed the title feat(core): check version of the CLI feat(core): print a warning when new release is available Jan 31, 2020
// Check CLI new version
if interactive.IsInteractive {
defer func() {
config.BuildInfo.checkVersion()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The warning should be print before result not after.

@kindermoumoute kindermoumoute force-pushed the check-version branch 5 times, most recently from b0639bd to 4c03994 Compare February 5, 2020 16:29
loicbourgois
loicbourgois previously approved these changes Feb 6, 2020
Copy link
Contributor

@loicbourgois loicbourgois left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@jerome-quere jerome-quere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kindermoumoute kindermoumoute merged commit ecca72e into scaleway:v2 Feb 6, 2020
@kindermoumoute kindermoumoute deleted the check-version branch February 6, 2020 10:22
logger.Debugf("skipping telemetry report")
return
}
matomoErr := matomo.SendCommandTelemetry(&matomo.SendCommandTelemetryRequest{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: add a newline

}

const (
scwDisableCheckVersionEnv = "SCW_DISABLE_CHECK_VERSION"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to document it somewhere

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants