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