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

Adds a "provider" flag to update a install commands #49

Merged
merged 2 commits into from
Mar 16, 2021

Conversation

marcosnils
Copy link
Owner

This flags allows installing binaries from providers that doesn't follow
our initial URL resolution scheme.

This flags allows installing binaries from providers that doesn't follow
our initial URL resolution scheme.
@marcosnils marcosnils requested a review from sirlatrom March 15, 2021 04:06
SilenceUsage: true,
SilenceErrors: true,
Args: cobra.MaximumNArgs(2),
Args: cobra.MinimumNArgs(1),
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't believe this change is strictly necessary, as the number of Args is not the same as the number of flags. However, if it is needed to make something else work, I don't see a problem with keeping it.

Copy link
Owner Author

Choose a reason for hiding this comment

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

Oh, this change is unrelated to this PR. I just realized that we didn't configure that correctly and I'm fixing that here since bin install always requires a minimum of a 1 argument to work :D

Copy link
Collaborator

@sirlatrom sirlatrom left a comment

Choose a reason for hiding this comment

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

A minor typo, otherwise looks good!

pkg/config/config.go Outdated Show resolved Hide resolved
Co-authored-by: Sune Keller <sune.keller+github@gmail.com>
@marcosnils
Copy link
Owner Author

Thx for reviewing @sirlatrom . I believe it's ready for a second review and merge if approved. 🙏

Copy link
Collaborator

@sirlatrom sirlatrom left a comment

Choose a reason for hiding this comment

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

LGTM!

@sirlatrom sirlatrom merged commit 755c209 into master Mar 16, 2021
@sirlatrom sirlatrom deleted the feat/provider_flag branch March 16, 2021 07:23
@sirlatrom sirlatrom restored the feat/provider_flag branch March 16, 2021 07:23
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