jbangdev / jbang-idea

IntelliJ IDEA plugin for JBang
https://plugins.jetbrains.com/plugin/18257-jbang
MIT License
20 stars 9 forks source link

create jbang should let user specify template #17

Open maxandersen opened 2 years ago

maxandersen commented 2 years ago

currently jbang create action takes out put of jbang template list and show to user (which is great) but should also be possible to enter in template name to allow to mimick what jbang init -t junit@jbangdev file would do.

i.e. here jbang will go and look up junit@jbangdev outside templates that jbang template list will show.

linux-china commented 2 years ago

How about jbang template list --catalogs to list templates from local catalogs?

I can add a checkbox to list more templates from catalogs, then developers can choose more templates to create app.

maxandersen commented 2 years ago

Not following what you want here? You don't want to show user configured templates by default?

linux-china commented 2 years ago

Which one is better to you? Input or Dropbox? Almost most developers don't like to input because it's easy to make mistake when template name is some long, for example RocketmqSender@linux-china/jbang-alibaba-spring-cloud. If they choose to copy template name, and almost they will choose CLI because instructions to create app from template are almost there.

image

I'm ok for input, and it's easy. For dropbox style, JBang should supply template list from local catalogs.

linux-china commented 2 years ago

I will use JList with input support, and developers can input the template template too. :)