Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

execute CheckForNewVersion after parsing flags #1

Merged
merged 1 commit into from
Dec 12, 2018

Conversation

faja
Copy link
Contributor

@faja faja commented Dec 12, 2018

function version.CheckForNewVersion() is executed before global flags are
parsed, because of that config.GlobalConfig.Verbose is always false
(default) and the check is actually never invoked (i know it is disabled atm,
but still;)

i've also:

  • sorted imports in cmd/cli.go
  • added new lines to avoid such outputs:
    '...version temporarily disabledVersion: 1.0.0'

function version.CheckForNewVersion() is executed before global flags are
parsed, because of that config.GlobalConfig.Verbose is always false
(default) and the check is actually never invoked (i know it is disabled atm,
but still;)

i've also:
- sorted imports in cmd/cli.go
- added new lines to avoid such outputs:
  '...version temporarily disabledVersion: 1.0.0'
@emate emate added the bug Something isn't working label Dec 12, 2018
@emate
Copy link
Contributor

emate commented Dec 12, 2018

Thanks @faja for the contribution!

@emate emate merged commit b078c72 into zendesk:master Dec 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants