PoC/WIP: Extension to provide an "editable" interface to putup (in opposition to "interactive")#333
PoC/WIP: Extension to provide an "editable" interface to putup (in opposition to "interactive")#333abravalheri wants to merge 9 commits into
Conversation
5ec330e to
2796fa4
Compare
70637dd to
fd48c47
Compare
… to ignore or comment options when generating examples for `--edit`
fd48c47 to
deed783
Compare
|
Hi @abravalheri, an editable mode is really an out-of-the-box idea. I tried it out and it works good. What are the pros/cons of an editable mode vs. interactive? editable
interactive
I have no strong preference but still feel that for our users an interactive mode would be more suitable. There's got to be a way to implement it :-) |
|
Hi @FlorianWilhelm thank you for having a look 😄 I agree that the "interactive mode" is something much more users are familiar with, and that using Something that I would add as a con for the "interactive mode" though is that PyScaffold have a lot of options and that asking one at the time might be a problem for impatient people like me 😅 (I counted 20 questions in my dev environment, where I have the external extensions like django, markdown and cookiecutter installed). Maybe if we go for interactive we should curate them? Another con is that if you by mistake input a wrong option (e.g. when you make a typo and just realise after you press enter, or when another flag helps you to realise the meaning of a previous one), you basically have to do a CTRL+C and start all over (if you are in question number 10 or later, that might be annoying). A pro for Overall I have the impression the interactive mode is something new comers will instantly feel familiar, but after learning the basics of PyScaffold, they will stop using (20 questions might be a lot). The |
|
@abravalheri, you do have a point about git interactive and also your points about the config. Maybe we should just try it? So we could have this "editable" feature in version 4.0 if it is so much easier to implement and let's see how users react to it. But I think we should call it Still, there would be some points to think about. First wouldn't it be good to have a what I find quite counterintuitive. I have to comment something to make it work. Or am I missing something? |
… see discussion in pyscaffold#333 for description
|
Hi @FlorianWilhelm thank you very much for the feedback. I fixed the problem with In the current implementation I am adding some metadata attributes to the extension classes themselves instead of overloading/extending the My idea was try to avoid as much as possible inheritance with I am fine with any naming to be sincere ( My final remark is that I am currently using 2 protected methods from |
|
Hi @abravalheri, thanks, I think it's good to keep the coupling with Regarding the short text, would do you think about: interactively choose and configure PyScaffold's parameters? |
|
The PR got automatically closed when I merged the v4 branch on master and deleted the branch, but it is still valid 😅 I will open a new one |
… see discussion in pyscaffold#333 for description
… see discussion in pyscaffold#333 for description
… see discussion in pyscaffold#333 for description
… see discussion in pyscaffold#333 for description
… see discussion in #333 for description
… see discussion in pyscaffold#333 for description
In #325 I mentioned that an alternative to "interactive" could be done via a simple text file + an editor:
This PR is a proof of concept in that direction... (more improvement can be done if the extension brings interest)