-
-
Notifications
You must be signed in to change notification settings - Fork 183
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
Allow multiline input #260
Conversation
This PoC uses prompt-toolkit, and it looks quite nice until now, because it lets us to have live validation, multiline input and syntax highlighting. Implementing choices, however, will be quite hard at least until prompt-toolkit/python-prompt-toolkit#1071 is fixed. Bool quiestions shouldn't be a problem, as bools are one simple kind of choices after all... There are other simpler prompt toolkits which are all missing the multiline input feature. I opened a bunch of feature requests, and I will wait some time. If one of them implements it, it should be our toolkit of choice:
If none does, then we'll have to choose one of those for all things except multiline inputs, and use prompt-toolkit just for those. But I'd rather prefer to stick with a single prompt toolkit if possible. |
b609c95
to
78bcd76
Compare
78bcd76
to
de95399
Compare
4e1430e
to
ccfe4b2
Compare
ccfe4b2
to
5fe0683
Compare
Well... I don't understand why the pip install fails either... Maybe try to restart the job 😕 Or could it be a cache issue? I've tried that command on Windows: 'C:\Program Files\Git\bin\bash.EXE' --noprofile --norc -e -o pipefail -c 'python -m pip install poetry poetry-dynamic-versioning poethepoet' ...and it went fine, even when the requirements were already satisfied. |
Oh well, it seems you skipped some steps: copier/.github/workflows/ci.yml Lines 74 to 76 in 546ec8d
The failure actually happens on the |
Damn you're right! I'll try again. |
I had some KeyError:
...fixed with Then I got:
...fixed with Then I got:
...that I can't fix unfortunately. It seems |
…d remove poetry-dynamic-versioning from test workflow
Congrats on this @yajo, it looked like hell to get it to work on Windows 😅 Sorry I couldn't help more! |
Haha it really was! At the end I had to skip a lot of tests, but it seems to work fine. |
Fix #210.
TODO:
placeholder
, templated.when
, templated.multiline
, templated and with str, json and yaml types.Upstream PRs done by the way:
@Tecnativa TT23705