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

#2572 - Add defaults to common::question_* #2605

Merged
merged 2 commits into from
Dec 14, 2020

Conversation

londospark
Copy link
Contributor

Hopefully this is cleaner than specifying the default as a string in each use of the common::question_{str|bool} functions.

@londospark
Copy link
Contributor Author

Fixes #2572

@kinnison
Copy link
Contributor

This covers the last of four questions - is there other work you have planned for the other questions hilighted in the issue you're fixing?

@kinnison
Copy link
Contributor

Also I wonder if we might get a cli-exact test to cover this perhaps?

@londospark
Copy link
Contributor Author

I'll have a look at how to write those, this covers all 4 of the questions by adding the default to the end.

@kinnison
Copy link
Contributor

So it does, I missed the effect of the first hunk. If we don't have any cli-exact tests doing prompted configuration then it ought to be fairly easy to add. If you want any help with that, ping me on Discord and if I'm around I'll do my best.

@londospark
Copy link
Contributor Author

Would it make more sense to do those tests in cli-inst-interactive.rs as it seems to be about testing the installation process? That, and it has the work done already for taking inputs.

Copy link
Contributor

@kinnison kinnison left a comment

Choose a reason for hiding this comment

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

The tests look good. Thank you for that.

This does indeed seem to do exactly what it says on the tin. It should indeed resolve the issue you set out to fix.

Before I can merge it I would like the commits cleanly rebased. A commit for the tests and a commit for the functionality would be best. Your choice which order to put them in.

If you need help doing that, ping me. Also if you're having difficulty with vscode formatting stuff, check that 'Editor: Format On Save' is set and that 'Editor: Format On Save Mode' is set to 'file'.

Copy link
Contributor

@kinnison kinnison left a comment

Choose a reason for hiding this comment

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

👍 thank you

@kinnison kinnison merged commit f5bbda8 into rust-lang:master Dec 14, 2020
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