functionbuilder again
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-11-21 14:36:15 +11:00
parent 8a65fcf6ef
commit b50c6993ad
5 changed files with 25 additions and 29 deletions

View File

@@ -33,12 +33,11 @@ functions:
input:
out-filename: example.xlsx
sheets:
- sheet:
worksheet-name: "TestSpreadsheet"
input-file:
- name: input.json
data: |
jq(.input)
- name: "TestSpreadsheet"
input-file:
- name: input.json
data: |
jq(.input)
```
#### Use jq to add a parent key 'input' containing array of objects
```yaml
@@ -49,8 +48,7 @@ functions:
input:
out-filename: example.xlsx
sheets:
- sheet:
worksheet-name: "TestSpreadsheet"
- name: "TestSpreadsheet"
input-file:
- name: input.json
data: |
@@ -135,6 +133,6 @@ functions:
|------|------|---------|:--------:| ------- |-------------|---------|
| infile | string| `string` | | | Name of the json input file to utilise | |
| input-file | [][DirektivFile](#direktiv-file)| `[]apps.DirektivFile` | | | File to create before running commands | |
| worksheet-name | string| `string` | | `"Sheet1"`| Label for the worksheet created in the spreadsheet | |
| name | string| `string` | | `"Sheet1"`| Label for the worksheet created in the spreadsheet | |