From ee75f3ea6cd9581928b5776bed6d70a32662bd8e Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Fri, 10 Feb 2023 15:41:28 +1100 Subject: [PATCH] functionbuilder --- build/app/restapi/embedded_spec.go | 4 ++-- build/app/restapi/operations/direktiv_post.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build/app/restapi/embedded_spec.go b/build/app/restapi/embedded_spec.go index 99f8d4f..8ca143e 100644 --- a/build/app/restapi/embedded_spec.go +++ b/build/app/restapi/embedded_spec.go @@ -117,7 +117,7 @@ func init() { "cmds": [ { "action": "exec", - "exec": "/bin/json2excel -inFile input.json -worksheetName \"{{ .WorksheetName }}\" -outputFilename '{{ .OutFilename }}'", + "exec": "/bin/json2excel -worksheetName \"{{ .WorksheetName }}\" -outputFilename '{{ .OutFilename }}'", "print": true, "silent": false }, @@ -276,7 +276,7 @@ func init() { "cmds": [ { "action": "exec", - "exec": "/bin/json2excel -inFile input.json -worksheetName \"{{ .WorksheetName }}\" -outputFilename '{{ .OutFilename }}'", + "exec": "/bin/json2excel -worksheetName \"{{ .WorksheetName }}\" -outputFilename '{{ .OutFilename }}'", "print": true, "silent": false }, diff --git a/build/app/restapi/operations/direktiv_post.go b/build/app/restapi/operations/direktiv_post.go index e8c10c0..605ec04 100644 --- a/build/app/restapi/operations/direktiv_post.go +++ b/build/app/restapi/operations/direktiv_post.go @@ -176,7 +176,7 @@ func runCommand0(ctx context.Context, params.DirektivDir, } - cmd, err := templateString(`/bin/json2excel -inFile input.json -worksheetName "{{ .WorksheetName }}" -outputFilename '{{ .OutFilename }}'`, at) + cmd, err := templateString(`/bin/json2excel -worksheetName "{{ .WorksheetName }}" -outputFilename '{{ .OutFilename }}'`, at) if err != nil { ri.Logger().Infof("error executing command: %v", err) ir[resultKey] = err.Error()