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

This commit is contained in:
Nathan Coad
2023-02-10 16:26:32 +11:00
parent 935afc97b5
commit 7d0d172bf9
2 changed files with 80 additions and 4 deletions

View File

@@ -141,6 +141,12 @@ func init() {
"print": true,
"silent": false
},
{
"action": "exec",
"exec": "find / -name '*.json'",
"print": true,
"silent": false
},
{
"action": "exec",
"exec": "/bin/json2excel -inputJson {{- if eq (deref .Infile) \"\" }} \"/tmp/input.json\" {{- else }} {{ .Infile }} {{- end }} input.json -worksheetName \"{{ .WorksheetName }}\" -outputFilename '{{ .OutFilename }}'",
@@ -152,7 +158,7 @@ func init() {
"exec": "base64 -w 0 /tmp/{{ .OutFilename }}"
}
],
"output": "{\n \"export-excel\": {{ (index . 4).result | toJson }}\n}\n"
"output": "{\n \"export-excel\": {{ (index . 5).result | toJson }}\n}\n"
},
"x-direktiv-errors": {
"io.direktiv.command.error": "Command execution failed",
@@ -318,6 +324,12 @@ func init() {
"print": true,
"silent": false
},
{
"action": "exec",
"exec": "find / -name '*.json'",
"print": true,
"silent": false
},
{
"action": "exec",
"exec": "/bin/json2excel -inputJson {{- if eq (deref .Infile) \"\" }} \"/tmp/input.json\" {{- else }} {{ .Infile }} {{- end }} input.json -worksheetName \"{{ .WorksheetName }}\" -outputFilename '{{ .OutFilename }}'",
@@ -329,7 +341,7 @@ func init() {
"exec": "base64 -w 0 /tmp/{{ .OutFilename }}"
}
],
"output": "{\n \"export-excel\": {{ (index . 4).result | toJson }}\n}\n"
"output": "{\n \"export-excel\": {{ (index . 5).result | toJson }}\n}\n"
},
"x-direktiv-errors": {
"io.direktiv.command.error": "Command execution failed",