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

Don't ask about metrics for completion command #1208

Merged
merged 1 commit into from
Dec 13, 2023
Merged

Conversation

Mouradif
Copy link
Contributor

Fix #1206

The undocumented completion command is used in the installation script in order to output shell completion for the current shell. At that stage, in general, we're in a fresh installation and the user hasn't decided yet about metrics opt-in. In the current version, the command will ask about metrics opt-in making the step completions() of the installation process always fail.

This PR fixes this by adding a check using the existing CheckCommandIsNotCompletion function (made public) before deciding that it's time to ask the user about metrics opt-in

Copy link
Collaborator

@sukantoraymond sukantoraymond left a comment

Choose a reason for hiding this comment

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

LGTM!

@Mouradif
Copy link
Contributor Author

Mouradif commented Dec 9, 2023

@sukantoraymond My commit wasn't GPG signed, I've just amended that commit to sign it, I believe the PR needs to be approved again

@arturrez arturrez merged commit ead2bb7 into ava-labs:main Dec 13, 2023
30 of 31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Problem with installing shell completion on first install
3 participants