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

Add version check on every command #231

Merged
merged 9 commits into from
Jun 2, 2021
Merged

Add version check on every command #231

merged 9 commits into from
Jun 2, 2021

Conversation

J-Thompson12
Copy link
Contributor

Added a version check that runs after every command and adds flux version to version command. https://app.zenhub.com/workspaces/weaveworks-foss-603cb6b1d4dff9000e242dc4/issues/weaveworks/weave-gitops/189

cmd/wego/main.go Outdated Show resolved Hide resolved
cmd/wego/version/cmd.go Outdated Show resolved Hide resolved
Copy link
Contributor

@josecordaz josecordaz left a comment

Choose a reason for hiding this comment

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

LGTM

}

if err == nil && checkResponse.Outdated {
Copy link
Contributor

Choose a reason for hiding this comment

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

Not need to check err==nil here as it is inferred for the previous if statement.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Whoops forgot about that after changing things up. Good catch.

@J-Thompson12 J-Thompson12 merged commit e3bf801 into main Jun 2, 2021
@J-Thompson12 J-Thompson12 deleted the 189-wego-version branch July 6, 2021 16:52
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.

2 participants