Open maxandersen opened 2 years ago
How about jbang template list --catalogs
to list templates from local catalogs?
jbang template list
jbang template list --catalogs
I can add a checkbox to list more templates from catalogs, then developers can choose more templates to create app.
Not following what you want here? You don't want to show user configured templates by default?
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.
I'm ok for input, and it's easy. For dropbox style, JBang should supply template list from local catalogs.
I will use JList with input support, and developers can input the template template too. :)
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 whatjbang 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.