From 3cdb2afdd842c33bf07799d7ba63d5e9c288199b Mon Sep 17 00:00:00 2001 From: nathan Date: Fri, 10 Feb 2023 16:13:37 +1100 Subject: [PATCH] Update 'swagger.yaml' add some debugging commands in there --- swagger.yaml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/swagger.yaml b/swagger.yaml index 6b26206..036e425 100644 --- a/swagger.yaml +++ b/swagger.yaml @@ -97,6 +97,18 @@ paths: description: This is a secret value x-direktiv: cmds: + - action: exec + exec: ls -la + silent: false + print: true + - action: exec + exec: pwd + silent: false + print: true + - action: exec + exec: ls -la /tmp + silent: false + print: true - action: exec exec: /bin/json2excel -inputJson {{- if eq (deref .Infile) "" }} "/tmp/input.json" {{- else }} {{ .Infile }} {{- end }} input.json -worksheetName "{{ .WorksheetName }}" -outputFilename '{{ .OutFilename }}' silent: false @@ -105,7 +117,7 @@ paths: exec: base64 -w 0 /tmp/{{ .OutFilename }} output: | { - "export-excel": {{ (index . 1).result | toJson }} + "export-excel": {{ (index . 4).result | toJson }} } x-direktiv-errors: io.direktiv.command.error: Command execution failed