Skip to content

Commit e36dea7

Browse files
Add upper and lower helper methods for bundle templates (#3242)
## Why Resolves #3237 Implements the feature requested in #3237. ## Tests Acceptance test
1 parent 3c55fdd commit e36dea7

File tree

11 files changed

+34
-0
lines changed

11 files changed

+34
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"properties": {
3+
"s": {
4+
"type": "string",
5+
"description": "An input string",
6+
"default": "AbCd0123😀"
7+
}
8+
}
9+
}

acceptance/bundle/templates-machinery/helpers/out.test.toml renamed to acceptance/bundle/templates-machinery/helper_upper_lower/out.test.toml

File renamed without changes.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
>>> [CLI] bundle init .
3+
✨ Successfully initialized template
4+
5+
>>> cat hello.txt
6+
abcd0123😀
7+
ABCD0123😀
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
trace $CLI bundle init .
2+
3+
trace cat hello.txt
4+
rm hello.txt
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
{{ .s | lower }}
2+
{{ .s | upper }}

acceptance/bundle/templates-machinery/helpers/databricks_template_schema.json renamed to acceptance/bundle/templates-machinery/helper_username/databricks_template_schema.json

File renamed without changes.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Local = true
2+
Cloud = false
3+
4+
[EnvMatrix]
5+
DATABRICKS_CLI_DEPLOYMENT = ["terraform", "direct-exp"]

acceptance/bundle/templates-machinery/helpers/output.txt renamed to acceptance/bundle/templates-machinery/helper_username/output.txt

File renamed without changes.

acceptance/bundle/templates-machinery/helpers/script renamed to acceptance/bundle/templates-machinery/helper_username/script

File renamed without changes.

acceptance/bundle/templates-machinery/helpers/template/helpers.txt.tmpl renamed to acceptance/bundle/templates-machinery/helper_username/template/helpers.txt.tmpl

File renamed without changes.

0 commit comments

Comments
 (0)