You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
It is not a problem in my opinion, an idea, addition to the JBang toolset.
Describe the solution you'd like
In the current implementation of JBang the templates in the catalog are not describing, listing the available properties related to the templates and the description field is probably not enough if a JBang template is having a lot of property.
My proposal for this problem would be the following:
In the jbang-catalog.json under the templates key each element could have the following new property: properties.
So for example, lets take a look on this template file:
It has the following properties that can be parameterised when you it is being used during the initialization of a new script:
tf-providers
tf-provider.aws.version
tf-provider.archive.version
tf-provider.null.version
tf-provider.aws.region
native-function
If the maintainer would like to make sure that their jbang-catalog.json is the most well documented then a new section could help them.
How about this format in the jbang-catalog.json:
..."templates": {
"q-aws-lambda-tf": {
"file-refs": {
"{filename}": "aws/aws-lambda.java.qute",
"generate-jar.sh": "aws/generate-jar.sh",
"generate-native-image.sh": "aws/generate-native-image.sh",
"application.properties": "aws/application.properties",
"lambda-aws.tf": "aws/lambda-aws.tf.qute"
},
"description": "Quarkus AWS Lambda template with Terraform template. Use the -Dnative-function flag to have native image based Terraform resources....",
"properties": {
"tf-providers": {
"description": "If enabled extra Terraform related providers will be generated",
"defaultValue": false
},
"tf-provider.aws.version": {
"description": "Version of the AWS Terraform provider",
"defaultValue": "3.71.0"
},
"tf-provider.archive.version": {
"description": "Version of the Archive Terraform provider",
"defaultValue": "2.2.0"
},
"tf-provider.null.version": {
"description": "Version of the NULL Terraform provider",
"defaultValue": "3.1.0"
},
"tf-provider.aws.region": {
"description": "AWS Region",
"defaultValue": "eu-central-1"
},
"native-function": {
"description": "Generate native executable based lambda function or not",
"defaultValue": false
}
}
},
...
If this new addition would get applied and implemented then with the "Catalog documentation" generator this feature could be a really nice way to show off what your JBang catalog repository is capable: #1202
And I think the JBang IDEA plugin could relay on it to make sure when you are initialising a script from a template you can change its properties. https://github.com/jbangdev/jbang-idea
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
It is not a problem in my opinion, an idea, addition to the JBang toolset.
Describe the solution you'd like
In the current implementation of JBang the templates in the catalog are not describing, listing the available properties related to the templates and the description field is probably not enough if a JBang template is having a lot of property.
My proposal for this problem would be the following:
In the
jbang-catalog.json
under thetemplates
key each element could have the following new property:properties
.So for example, lets take a look on this template file:
It has the following properties that can be parameterised when you it is being used during the initialization of a new script:
If the maintainer would like to make sure that their jbang-catalog.json is the most well documented then a new section could help them.
How about this format in the
jbang-catalog.json
:If this new addition would get applied and implemented then with the "Catalog documentation" generator this feature could be a really nice way to show off what your JBang catalog repository is capable: #1202
And I think the JBang IDEA plugin could relay on it to make sure when you are initialising a script from a template you can change its properties.
https://github.com/jbangdev/jbang-idea
The text was updated successfully, but these errors were encountered: