-
Notifications
You must be signed in to change notification settings - Fork 76
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
Zero questions mode #39
Comments
uhm this is hard, @adtac is this doable within a week so it works? Doesn't have to be perfect. |
Yeah, for the questions thing - the type is the only data we have about a particular setting (bool, int, string, ...). If we have a set of possible values (like aspects currently do) for each setting, it's pretty easy. So I'm wondering if we should put more resources into completing aspects or do this first. |
In tbis mode, if a bear needs a user answer, dont enable that bear. |
A little analysis shows this is easy, and is effectively: relevant_bears = filter_relevant_bears(used_languages)
+ if zeroconf_mode:
+ relevant_bears = [bear for bear in relevant_bears
+ if not bear.get_non_optional_settings()]
print_relevant_bears(printer, relevant_bears) Some arg parsing is also needed. |
I'm not 100% locked into It would be easier to use the |
@jayvdb While we have this mode already for |
Disables all bears that require console interaction before they can be used. Fixes coala#39
A new command line option --non-interactive may be used to prevent prompts, using defaults, and generating a .coafile that is safe to use in non-interactive mode, as it disables all bears needing values for non-optional settings. The introduction of a command line parser requires that the parser is given to coalib.settings functions, otherwise it would instantiate the default coala command line parser which has many arguments that are either not appropropriate or not implemented in coala-quickstart. Closes coala#39
A new command line option --non-interactive may be used to prevent prompts, using defaults, and generating a .coafile that is safe to use in non-interactive mode, as it disables all bears needing values for non-optional settings. The introduction of a command line parser requires that the parser is given to coalib.settings functions, otherwise it would instantiate the default coala command line parser which has many arguments that are either not appropropriate or not implemented in coala-quickstart. Closes coala#39
It should be possible to run this without any questions being asked.
It should make sensible decisions, and the user can edit the
.coafile
later when they better understand what the config options all mean.This will allow https://github.com/coala/coala/wiki/Google-Code-In-Task-Use-coala to be an extremely easy task.
The text was updated successfully, but these errors were encountered: