coala-quickstart icon indicating copy to clipboard operation
coala-quickstart copied to clipboard

Switch to use coala-utils.Question

Open yzgyyang opened this issue 6 years ago • 4 comments

IMO we should switch to use components in coala-utils like this one:

https://github.com/coala/coala-quickstart/blob/master/coala_quickstart/generation/SettingsFilling.py#L215

Use this instead: https://gitlab.com/coala/coala-utils/blob/master/coala_utils/Question.py

(Note that it's currently blocked by https://gitlab.com/coala/coala-utils/issues/63)

yzgyyang avatar Jun 23 '18 04:06 yzgyyang

GitMate.io thinks the contributor most likely able to help you is @satwikkansal.

gitmate-bot avatar Jun 23 '18 04:06 gitmate-bot

To do this, the repo will need to install coala-utils, coala & coala-bears from git, not pypi

Something like https://github.com/coala/coala-bears/commit/6906e5465123ecd46e41b603b725bb4d188a23c6

However this will create a version conflict with coala-utils, as coala doesnt use coala-utils master. That needs to be done first. And that depends on https://github.com/di/pytest-reqs/issues/16 :P

jayvdb avatar Jul 09 '18 23:07 jayvdb

Did a bunch of PRs to get that moving https://github.com/di/pytest-reqs/pulls

jayvdb avatar Jul 10 '18 01:07 jayvdb

https://pypi.org/project/argparse-prompt/ looks very interesting.

It looks like that might be very suitable for quickstart, allowing lots of options to be exposed to the CLI, or be deferred to the user as prompts.

It may not work for all of the prompts currently in quickstart, but even moving a few of the custom prompts to become argparse-prompt would be a big win for usability.

jayvdb avatar Oct 18 '18 09:10 jayvdb