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

This commit is contained in:
Nathan Coad
2023-02-10 15:50:01 +11:00
parent f3e19a8937
commit 359361b645
2 changed files with 3 additions and 3 deletions

View File

@@ -117,7 +117,7 @@ func init() {
"cmds": [
{
"action": "exec",
"exec": "/bin/json2excel -worksheetName \"{{ .WorksheetName }}\" -outputFilename '{{ .OutFilename }}'",
"exec": "/bin/json2excel -inputJson input.json -worksheetName \"{{ .WorksheetName }}\" -outputFilename '{{ .OutFilename }}'",
"print": true,
"silent": false
},
@@ -276,7 +276,7 @@ func init() {
"cmds": [
{
"action": "exec",
"exec": "/bin/json2excel -worksheetName \"{{ .WorksheetName }}\" -outputFilename '{{ .OutFilename }}'",
"exec": "/bin/json2excel -inputJson input.json -worksheetName \"{{ .WorksheetName }}\" -outputFilename '{{ .OutFilename }}'",
"print": true,
"silent": false
},

View File

@@ -176,7 +176,7 @@ func runCommand0(ctx context.Context,
params.DirektivDir,
}
cmd, err := templateString(`/bin/json2excel -worksheetName "{{ .WorksheetName }}" -outputFilename '{{ .OutFilename }}'`, at)
cmd, err := templateString(`/bin/json2excel -inputJson input.json -worksheetName "{{ .WorksheetName }}" -outputFilename '{{ .OutFilename }}'`, at)
if err != nil {
ri.Logger().Infof("error executing command: %v", err)
ir[resultKey] = err.Error()