This commit is contained in:
@@ -160,11 +160,11 @@ func init() {
|
|||||||
},
|
},
|
||||||
"x-direktiv-examples": [
|
"x-direktiv-examples": [
|
||||||
{
|
{
|
||||||
"content": "- id: export-xlsx\n type: action\n action:\n function: export-xlsx\n input: \n out-filename: example.xlsx\n sheets:\n - sheet:\n worksheet-name: \"TestSpreadsheet\"\n input-file:\n - name: input.json\n data: |\n jq(.input)",
|
"content": "- id: export-xlsx\n type: action\n action:\n function: export-xlsx\n input: \n out-filename: example.xlsx\n sheets:\n - sheet:\n worksheet-name: \"TestSpreadsheet\"\n input-file:\n - name: input.json\n data: |\n jq(.input)",
|
||||||
"title": "Basic"
|
"title": "Basic"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"content": "- id: export-xlsx\n type: action\n action:\n function: export-xlsx\n input: \n out-filename: example.xlsx \n sheets:\n - sheet:\n worksheet-name: \"TestSpreadsheet\"\n input-file:\n - name: input.json\n data: |\n jq(.array | {input: . } | tostring ) ",
|
"content": "- id: export-xlsx\n type: action\n action:\n function: export-xlsx\n input: \n out-filename: example.xlsx \n sheets:\n - sheet:\n worksheet-name: \"TestSpreadsheet\"\n input-file:\n - name: input.json\n data: |\n jq(.array | {input: . } | tostring ) ",
|
||||||
"title": "Use jq to add a parent key 'input' containing array of objects"
|
"title": "Use jq to add a parent key 'input' containing array of objects"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -324,11 +324,11 @@ func init() {
|
|||||||
},
|
},
|
||||||
"x-direktiv-examples": [
|
"x-direktiv-examples": [
|
||||||
{
|
{
|
||||||
"content": "- id: export-xlsx\n type: action\n action:\n function: export-xlsx\n input: \n out-filename: example.xlsx\n sheets:\n - sheet:\n worksheet-name: \"TestSpreadsheet\"\n input-file:\n - name: input.json\n data: |\n jq(.input)",
|
"content": "- id: export-xlsx\n type: action\n action:\n function: export-xlsx\n input: \n out-filename: example.xlsx\n sheets:\n - sheet:\n worksheet-name: \"TestSpreadsheet\"\n input-file:\n - name: input.json\n data: |\n jq(.input)",
|
||||||
"title": "Basic"
|
"title": "Basic"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"content": "- id: export-xlsx\n type: action\n action:\n function: export-xlsx\n input: \n out-filename: example.xlsx \n sheets:\n - sheet:\n worksheet-name: \"TestSpreadsheet\"\n input-file:\n - name: input.json\n data: |\n jq(.array | {input: . } | tostring ) ",
|
"content": "- id: export-xlsx\n type: action\n action:\n function: export-xlsx\n input: \n out-filename: example.xlsx \n sheets:\n - sheet:\n worksheet-name: \"TestSpreadsheet\"\n input-file:\n - name: input.json\n data: |\n jq(.array | {input: . } | tostring ) ",
|
||||||
"title": "Use jq to add a parent key 'input' containing array of objects"
|
"title": "Use jq to add a parent key 'input' containing array of objects"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
24
readme.md
24
readme.md
@@ -33,12 +33,12 @@ functions:
|
|||||||
input:
|
input:
|
||||||
out-filename: example.xlsx
|
out-filename: example.xlsx
|
||||||
sheets:
|
sheets:
|
||||||
- sheet:
|
- sheet:
|
||||||
worksheet-name: "TestSpreadsheet"
|
worksheet-name: "TestSpreadsheet"
|
||||||
input-file:
|
input-file:
|
||||||
- name: input.json
|
- name: input.json
|
||||||
data: |
|
data: |
|
||||||
jq(.input)
|
jq(.input)
|
||||||
```
|
```
|
||||||
#### Use jq to add a parent key 'input' containing array of objects
|
#### Use jq to add a parent key 'input' containing array of objects
|
||||||
```yaml
|
```yaml
|
||||||
@@ -49,12 +49,12 @@ functions:
|
|||||||
input:
|
input:
|
||||||
out-filename: example.xlsx
|
out-filename: example.xlsx
|
||||||
sheets:
|
sheets:
|
||||||
- sheet:
|
- sheet:
|
||||||
worksheet-name: "TestSpreadsheet"
|
worksheet-name: "TestSpreadsheet"
|
||||||
input-file:
|
input-file:
|
||||||
- name: input.json
|
- name: input.json
|
||||||
data: |
|
data: |
|
||||||
jq(.array | {input: . } | tostring )
|
jq(.array | {input: . } | tostring )
|
||||||
```
|
```
|
||||||
|
|
||||||
### Secrets
|
### Secrets
|
||||||
|
24
swagger.yaml
24
swagger.yaml
@@ -98,12 +98,12 @@ paths:
|
|||||||
input:
|
input:
|
||||||
out-filename: example.xlsx
|
out-filename: example.xlsx
|
||||||
sheets:
|
sheets:
|
||||||
- sheet:
|
- sheet:
|
||||||
worksheet-name: "TestSpreadsheet"
|
worksheet-name: "TestSpreadsheet"
|
||||||
input-file:
|
input-file:
|
||||||
- name: input.json
|
- name: input.json
|
||||||
data: |
|
data: |
|
||||||
jq(.input)
|
jq(.input)
|
||||||
- title: Use jq to add a parent key 'input' containing array of objects
|
- title: Use jq to add a parent key 'input' containing array of objects
|
||||||
content: |-
|
content: |-
|
||||||
- id: export-xlsx
|
- id: export-xlsx
|
||||||
@@ -113,12 +113,12 @@ paths:
|
|||||||
input:
|
input:
|
||||||
out-filename: example.xlsx
|
out-filename: example.xlsx
|
||||||
sheets:
|
sheets:
|
||||||
- sheet:
|
- sheet:
|
||||||
worksheet-name: "TestSpreadsheet"
|
worksheet-name: "TestSpreadsheet"
|
||||||
input-file:
|
input-file:
|
||||||
- name: input.json
|
- name: input.json
|
||||||
data: |
|
data: |
|
||||||
jq(.array | {input: . } | tostring )
|
jq(.array | {input: . } | tostring )
|
||||||
x-direktiv-secrets:
|
x-direktiv-secrets:
|
||||||
- name: export-xlsxSecret
|
- name: export-xlsxSecret
|
||||||
description: This is a secret value
|
description: This is a secret value
|
||||||
|
Reference in New Issue
Block a user