This commit is contained in:
@@ -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",
|
||||
|
Reference in New Issue
Block a user